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

Function buildGLColorArray

src/Renderer_draw_gl.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 void buildGLColorArray(GLubyte* ptr, unsigned int color, unsigned int vertCount)
22 {
23 //convert color from ???? to RGBA?
24 unsigned int colorRGBA;
25 setColor4bArray((GLubyte *)&colorRGBA, color);
26 //write color to unsigned int array
27 GLuint * uiPtr = (GLuint *)ptr;
28 for(unsigned int i = 0; i < vertCount; i++)
29 {
30 uiPtr[i] = colorRGBA;
31 }
32 }
33
34 void pushClipRect(Eigen::Vector2i pos, Eigen::Vector2i dim)
35 {

Callers 3

setColorMethod · 0.85
drawRectFunction · 0.85
renderMethod · 0.85

Calls 1

setColor4bArrayFunction · 0.85

Tested by

no test coverage detected