MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ActiveUnit

Function ActiveUnit

engine/PoseidonGL33/GL33BindCache.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void ActiveUnit(int unit)
37{
38 if (unit == g_activeUnit)
39 return;
40 glActiveTexture(GL_TEXTURE0 + unit);
41 g_activeUnit = unit;
42}
43
44void Tex2D(int unit, unsigned int tex)
45{

Callers 10

AUTO_STATIC_ARRAYFunction · 0.85
InitFromRGBAMethod · 0.85
UpdateRGBAMethod · 0.85
Tex2DFunction · 0.85
RenderCascadeArrayFunction · 0.85
UploadToGPUMethod · 0.85
EmitDrawMethod · 0.85
SetMultiTexturingMethod · 0.85
InitGLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected