mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Implement RE_DrawBackground_DrawPixels
This commit is contained in:
parent
844a72e0f3
commit
6fb9ab078e
1 changed files with 16 additions and 1 deletions
|
@ -331,7 +331,22 @@ RE_DrawBackground_DrawPixels
|
|||
================
|
||||
*/
|
||||
void RE_DrawBackground_DrawPixels(int cols, int rows, int bgr, byte* data) {
|
||||
// FIXME: stub
|
||||
R_SyncRenderThread();
|
||||
|
||||
GL_State(0);
|
||||
qglDisable(GL_TEXTURE_2D);
|
||||
|
||||
qglPixelZoom(glConfig.vidWidth / rows, glConfig.vidHeight / cols);
|
||||
|
||||
if (bgr) {
|
||||
qglDrawPixels(cols, rows, GL_BGR, GL_UNSIGNED_BYTE, data);
|
||||
} else {
|
||||
qglDrawPixels(cols, rows, GL_RGB, GL_UNSIGNED_BYTE, data);
|
||||
}
|
||||
|
||||
qglPixelZoom(1.0, 1.0);
|
||||
|
||||
qglEnable(GL_TEXTURE_2D);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue