MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / setColor4bArray

Function setColor4bArray

src/Renderer_draw_gl.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 std::stack<Eigen::Vector4i> clipStack;
12
13 void setColor4bArray(GLubyte* array, unsigned int color)
14 {
15 array[0] = (color & 0xff000000) >> 24;
16 array[1] = (color & 0x00ff0000) >> 16;
17 array[2] = (color & 0x0000ff00) >> 8;
18 array[3] = (color & 0x000000ff);
19 }
20
21 void buildGLColorArray(GLubyte* ptr, unsigned int color, unsigned int vertCount)
22 {

Callers 1

buildGLColorArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected