mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Changed plotpixels to use DrawPixels() instead of GL_POINTS primitives.
git-svn-id: https://svn.eduke32.com/eduke32@778 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8fbe6b54b6
commit
9dd9ccfa46
3 changed files with 15 additions and 4 deletions
|
@ -108,6 +108,8 @@ extern void (APIENTRY * bglShadeModel)( GLenum mode );
|
||||||
|
|
||||||
// Raster funcs
|
// Raster funcs
|
||||||
extern void (APIENTRY * bglReadPixels)( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels );
|
extern void (APIENTRY * bglReadPixels)( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels );
|
||||||
|
extern void (APIENTRY * bglRasterPos4i)( GLint x, GLint y, GLint z, GLint w );
|
||||||
|
extern void (APIENTRY * bglDrawPixels)( GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels );
|
||||||
|
|
||||||
// Texture mapping
|
// Texture mapping
|
||||||
extern void (APIENTRY * bglTexEnvf)( GLenum target, GLenum pname, GLfloat param );
|
extern void (APIENTRY * bglTexEnvf)( GLenum target, GLenum pname, GLfloat param );
|
||||||
|
|
|
@ -10172,10 +10172,13 @@ void plotpixel(int x, int y, char col)
|
||||||
|
|
||||||
setpolymost2dview(); // JBF 20040205: more efficient setup
|
setpolymost2dview(); // JBF 20040205: more efficient setup
|
||||||
|
|
||||||
bglBegin(GL_POINTS);
|
// bglBegin(GL_POINTS);
|
||||||
bglColor4ub(p.r,p.g,p.b,255);
|
// bglColor4ub(p.r,p.g,p.b,255);
|
||||||
bglVertex2i(x,y);
|
// bglVertex2i(x,y);
|
||||||
bglEnd();
|
// bglEnd();
|
||||||
|
bglRasterPos4i(x, y, 0, 1);
|
||||||
|
bglDrawPixels(1, 1, GL_RGB, GL_UNSIGNED_BYTE, &p);
|
||||||
|
bglRasterPos4i(0, 0, 0, 1);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,8 @@ void (APIENTRY * bglShadeModel)(GLenum mode);
|
||||||
|
|
||||||
// Raster funcs
|
// Raster funcs
|
||||||
void (APIENTRY * bglReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
void (APIENTRY * bglReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
||||||
|
void (APIENTRY * bglRasterPos4i)( GLint x, GLint y, GLint z, GLint w );
|
||||||
|
void (APIENTRY * bglDrawPixels)( GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels );
|
||||||
|
|
||||||
// Texture mapping
|
// Texture mapping
|
||||||
void (APIENTRY * bglTexEnvf)(GLenum target, GLenum pname, GLfloat param);
|
void (APIENTRY * bglTexEnvf)(GLenum target, GLenum pname, GLfloat param);
|
||||||
|
@ -324,6 +326,8 @@ int loadgldriver(const char *driver)
|
||||||
|
|
||||||
// Raster funcs
|
// Raster funcs
|
||||||
bglReadPixels = GETPROC("glReadPixels");
|
bglReadPixels = GETPROC("glReadPixels");
|
||||||
|
bglRasterPos4i = GETPROC("glRasterPos4i");
|
||||||
|
bglDrawPixels = GETPROC("glDrawPixels");
|
||||||
|
|
||||||
// Texture mapping
|
// Texture mapping
|
||||||
bglTexEnvf = GETPROC("glTexEnvf");
|
bglTexEnvf = GETPROC("glTexEnvf");
|
||||||
|
@ -501,6 +505,8 @@ int unloadgldriver(void)
|
||||||
|
|
||||||
// Raster funcs
|
// Raster funcs
|
||||||
bglReadPixels = NULL;
|
bglReadPixels = NULL;
|
||||||
|
bglRasterPos4i = NULL;
|
||||||
|
bglDrawPixels = NULL;
|
||||||
|
|
||||||
// Texture mapping
|
// Texture mapping
|
||||||
bglTexEnvf = NULL;
|
bglTexEnvf = NULL;
|
||||||
|
|
Loading…
Reference in a new issue