MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / ShareVbo

Method ShareVbo

Sources/nCine/Graphics/Geometry.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 void Geometry::ShareVbo(const Geometry* geometry)
100 {
101 if (geometry == nullptr) {
102 sharedVboParams_ = nullptr;
103 } else if (geometry != this) {
104 vbo_.reset(nullptr);
105 sharedVboParams_ = &geometry->vboParams_;
106 }
107 }
108
109 void Geometry::CreateCustomIbo(std::uint32_t numIndices, GLenum usage)
110 {

Callers 1

DrawMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected