MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / SetOffset

Method SetOffset

GTE/Graphics/Resource.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void Resource::SetOffset(uint32_t offset)
89{
90 if (offset < mNumElements)
91 {
92 mOffset = offset;
93 }
94 else
95 {
96 mOffset = 0;
97 std::string message = "Invalid offset (" + std::to_string(offset) + ") for " +
98 mName + "; total elements = " + std::to_string(mNumElements) + ".";
99 LogError(message);
100 }
101}
102
103void Resource::SetNumActiveElements(uint32_t numActiveElements)
104{

Callers 1

OnIdleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected