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

Function create_raster

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

Source from the content-addressed store, hash-verified

41#include <geode/tests/common.hpp>
42
43geode::RasterImage2D create_raster()
44{
45 geode::RasterImage2D raster{ { 10, 10 } };
46 for( const auto i : geode::LRange{ 100 } )
47 {
48 raster.set_color( i, { i, i, i } );
49 }
50 return raster;
51}
52
53void create_texture(
54 geode::AttributeManager& attributes, geode::TextureStorage2D& storage )

Callers 1

create_textureFunction · 0.85

Calls 1

set_colorMethod · 0.45

Tested by

no test coverage detected