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

Method SetIntVector

Sources/nCine/Graphics/GL/GLUniformCache.cpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 bool GLUniformCache::SetIntVector(const GLint* vec)
136 {
137 DEATH_ASSERT(uniform_ == nullptr || dataPointer_ != nullptr);
138 if (uniform_ == nullptr || dataPointer_ == nullptr || !CheckInt()) {
139 return false;
140 }
141
142 isDirty_ = true;
143 std::memcpy(dataPointer_, vec, sizeof(GLint) * uniform_->GetComponentCount());
144 return true;
145 }
146
147 bool GLUniformCache::SetIntValue(GLint v0)
148 {

Callers 1

SetUniformIntMethod · 0.80

Calls 2

DEATH_ASSERTFunction · 0.85
GetComponentCountMethod · 0.45

Tested by

no test coverage detected