MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / create_texture

Function create_texture

tests/mesh/test-texture-manager.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void create_texture(
54 geode::AttributeManager& attributes, geode::TextureStorage2D& storage )
55{
56 geode::TextureManager2D manager{ attributes, storage };
57 auto& texture = manager.find_or_create_texture( "texture" );
58 for( const auto i : geode::Range{ 42 } )
59 {
60 texture.set_texture_coordinates(
61 { i, 0 }, geode::Point2D{ { i * 2., i * 3. } } );
62 }
63 texture.set_image( create_raster() );
64}
65
66void check_texture(
67 geode::AttributeManager& attributes, geode::TextureStorage2D& storage )

Callers 1

testFunction · 0.85

Calls 3

create_rasterFunction · 0.85
set_imageMethod · 0.45

Tested by

no test coverage detected