MCPcopy Create free account
hub / github.com/axmolengine/axmol / setTexture

Method setTexture

core/renderer/backend/ProgramState.cpp:339–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void ProgramState::setTexture(backend::TextureBackend* texture)
340{
341 for (int slot = 0; slot < texture->getCount() && slot < AX_META_TEXTURES; ++slot)
342 {
343 auto location = getUniformLocation((backend::Uniform)(backend::Uniform::TEXTURE + slot));
344 setTexture(location, slot, slot, texture);
345 }
346}
347
348void ProgramState::setTexture(const backend::UniformLocation& uniformLocation,
349 int slot,

Callers

nothing calls this directly

Calls 2

getCountMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected