MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / uniform

Method uniform

framework/render/gl20/ogl_2_0_renderer.cpp:101–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 void uniform(GLuint loc, Colour c)
102 {
103 gl20::Uniform4f(loc, c.r / 255.0f, c.g / 255.0f, c.b / 255.0f, c.a / 255.0f);
104 }
105
106 void uniform(GLuint loc, Vec2<float> v) { gl20::Uniform2f(loc, v.x, v.y); }
107 void uniform(GLuint loc, Vec2<int> v)

Callers 3

setUniformsMethod · 0.80
setUniformsMethod · 0.80
setUniformsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected