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

Function rend_DrawSimpleBitmap

legacy/renderer/renderer.cpp:1908–1917  ·  view source on GitHub ↗

Draws a simple bitmap at the specified x,y location

Source from the content-addressed store, hash-verified

1906}
1907// Draws a simple bitmap at the specified x,y location
1908void rend_DrawSimpleBitmap(int bm_handle, int x, int y) {
1909 rend_SetAlphaType(AT_CONSTANT_TEXTURE);
1910 rend_SetAlphaValue(255);
1911 rend_SetLighting(LS_NONE);
1912 rend_SetColorModel(CM_MONO);
1913 rend_SetOverlayType(OT_NONE);
1914 rend_SetFiltering(0);
1915 rend_DrawScaledBitmap(x, y, x + bm_w(bm_handle, 0), y + bm_h(bm_handle, 0), bm_handle, 0, 0, 1, 1);
1916 rend_SetFiltering(1);
1917}
1918// Fills in the passed in pointer with the current rendering state
1919void rend_GetRenderState(rendering_state *rstate) {
1920 switch (Renderer_type) {

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