mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30: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
|
||||
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
|
||||
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
|
||||
|
||||
bglBegin(GL_POINTS);
|
||||
bglColor4ub(p.r,p.g,p.b,255);
|
||||
bglVertex2i(x,y);
|
||||
bglEnd();
|
||||
// bglBegin(GL_POINTS);
|
||||
// bglColor4ub(p.r,p.g,p.b,255);
|
||||
// bglVertex2i(x,y);
|
||||
// bglEnd();
|
||||
bglRasterPos4i(x, y, 0, 1);
|
||||
bglDrawPixels(1, 1, GL_RGB, GL_UNSIGNED_BYTE, &p);
|
||||
bglRasterPos4i(0, 0, 0, 1);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -75,6 +75,8 @@ void (APIENTRY * bglShadeModel)(GLenum mode);
|
|||
|
||||
// Raster funcs
|
||||
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
|
||||
void (APIENTRY * bglTexEnvf)(GLenum target, GLenum pname, GLfloat param);
|
||||
|
@ -324,6 +326,8 @@ int loadgldriver(const char *driver)
|
|||
|
||||
// Raster funcs
|
||||
bglReadPixels = GETPROC("glReadPixels");
|
||||
bglRasterPos4i = GETPROC("glRasterPos4i");
|
||||
bglDrawPixels = GETPROC("glDrawPixels");
|
||||
|
||||
// Texture mapping
|
||||
bglTexEnvf = GETPROC("glTexEnvf");
|
||||
|
@ -501,6 +505,8 @@ int unloadgldriver(void)
|
|||
|
||||
// Raster funcs
|
||||
bglReadPixels = NULL;
|
||||
bglRasterPos4i = NULL;
|
||||
bglDrawPixels = NULL;
|
||||
|
||||
// Texture mapping
|
||||
bglTexEnvf = NULL;
|
||||
|
|
Loading…
Reference in a new issue