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

Function rend_DrawSimpleBitmap

renderer/HardwareBaseGPU.cpp:402–411  ·  view source on GitHub ↗

Draws a simple bitmap at the specified x,y location

Source from the content-addressed store, hash-verified

400
401// Draws a simple bitmap at the specified x,y location
402void rend_DrawSimpleBitmap(int bm_handle, int x, int y) {
403 rend_SetAlphaType(AT_CONSTANT_TEXTURE);
404 rend_SetAlphaValue(255);
405 rend_SetLighting(LS_NONE);
406 rend_SetColorModel(CM_MONO);
407 rend_SetOverlayType(OT_NONE);
408 rend_SetFiltering(0);
409 rend_DrawScaledBitmap(x, y, x + bm_w(bm_handle, 0), y + bm_h(bm_handle, 0), bm_handle, 0, 0, 1, 1);
410 rend_SetFiltering(1);
411}
412
413// Fills in the passed in pointer with the current rendering state
414void rend_GetRenderState(rendering_state *rstate) { memcpy(rstate, &gpu_state, sizeof(rendering_state)); }

Callers 1

rend_DrawChunkedBitmapFunction · 0.70

Calls 9

bm_wFunction · 0.85
bm_hFunction · 0.85
rend_SetAlphaTypeFunction · 0.70
rend_SetAlphaValueFunction · 0.70
rend_SetLightingFunction · 0.70
rend_SetColorModelFunction · 0.70
rend_SetOverlayTypeFunction · 0.70
rend_SetFilteringFunction · 0.70
rend_DrawScaledBitmapFunction · 0.70

Tested by

no test coverage detected