MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / rend_SetCharacterParameters

Function rend_SetCharacterParameters

renderer/HardwareBaseGPU.cpp:103–120  ·  view source on GitHub ↗

FIXME: Unused Sets the argb characteristics of the font characters. color1 is the upper left and proceeds clockwise

Source from the content-addressed store, hash-verified

101// FIXME: Unused
102// Sets the argb characteristics of the font characters. color1 is the upper left and proceeds clockwise
103void rend_SetCharacterParameters(ddgr_color color1, ddgr_color color2, ddgr_color color3, ddgr_color color4) {
104 rend_FontRed[0] = (float)(GR_COLOR_RED(color1) / 255.0f);
105 rend_FontRed[1] = (float)(GR_COLOR_RED(color2) / 255.0f);
106 rend_FontRed[2] = (float)(GR_COLOR_RED(color3) / 255.0f);
107 rend_FontRed[3] = (float)(GR_COLOR_RED(color4) / 255.0f);
108 rend_FontGreen[0] = (float)(GR_COLOR_GREEN(color1) / 255.0f);
109 rend_FontGreen[1] = (float)(GR_COLOR_GREEN(color2) / 255.0f);
110 rend_FontGreen[2] = (float)(GR_COLOR_GREEN(color3) / 255.0f);
111 rend_FontGreen[3] = (float)(GR_COLOR_GREEN(color4) / 255.0f);
112 rend_FontBlue[0] = (float)(GR_COLOR_BLUE(color1) / 255.0f);
113 rend_FontBlue[1] = (float)(GR_COLOR_BLUE(color2) / 255.0f);
114 rend_FontBlue[2] = (float)(GR_COLOR_BLUE(color3) / 255.0f);
115 rend_FontBlue[3] = (float)(GR_COLOR_BLUE(color4) / 255.0f);
116 rend_FontAlpha[0] = (color1 >> 24) / 255.0f;
117 rend_FontAlpha[1] = (color2 >> 24) / 255.0f;
118 rend_FontAlpha[2] = (color3 >> 24) / 255.0f;
119 rend_FontAlpha[3] = (color4 >> 24) / 255.0f;
120}
121
122// Sets where the software renderer should write to
123void rend_SetSoftwareParameters(float aspect, int width, int height, int pitch, uint8_t *framebuffer) {}

Callers 1

draw_charMethod · 0.50

Calls 3

GR_COLOR_REDFunction · 0.85
GR_COLOR_GREENFunction · 0.85
GR_COLOR_BLUEFunction · 0.85

Tested by

no test coverage detected