diff options
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r-- | source/blender/editors/screen/glutil.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index 66abbaecbe7..5b73645abde 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -690,6 +690,8 @@ void glaDefine2DArea(rcti *screen_rect) glLoadIdentity(); } +#if 0 /* UNUSED */ + struct gla2DDrawInfo { int orig_vp[4], orig_sc[4]; float orig_projmat[16], orig_viewmat[16]; @@ -721,7 +723,6 @@ void gla2DSetMap(gla2DDrawInfo *di, rctf *rect) di->wo_to_sc[1]= sc_h/wo_h; } - gla2DDrawInfo *glaBegin2DDraw(rcti *screen_rect, rctf *world_rect) { gla2DDrawInfo *di= MEM_mallocN(sizeof(*di), "gla2DDrawInfo"); @@ -779,6 +780,7 @@ void glaEnd2DDraw(gla2DDrawInfo *di) MEM_freeN(di); } +#endif /* **************** glPoint hack ************************ */ @@ -805,6 +807,7 @@ void bglBegin(int mode) } } +#if 0 /* UNUSED */ int bglPointHack(void) { float value[4]; @@ -818,10 +821,11 @@ int bglPointHack(void) } return 0; } +#endif void bglVertex3fv(const float vec[3]) { - switch(curmode) { + switch (curmode) { case GL_POINTS: if (pointhack) { glRasterPos3fv(vec); @@ -834,7 +838,7 @@ void bglVertex3fv(const float vec[3]) void bglVertex3f(float x, float y, float z) { - switch(curmode) { + switch (curmode) { case GL_POINTS: if (pointhack) { glRasterPos3f(x, y, z); @@ -847,7 +851,7 @@ void bglVertex3f(float x, float y, float z) void bglVertex2fv(const float vec[2]) { - switch(curmode) { + switch (curmode) { case GL_POINTS: if (pointhack) { glRasterPos2fv(vec); @@ -878,11 +882,15 @@ void bgl_get_mats(bglMats *mats) /* Very strange code here - it seems that certain bad values in the * modelview matrix can cause gluUnProject to give bad results. */ if (mats->modelview[0] < badvalue && - mats->modelview[0] > -badvalue) - mats->modelview[0]= 0; + mats->modelview[0] > -badvalue) + { + mats->modelview[0] = 0; + } if (mats->modelview[5] < badvalue && - mats->modelview[5] > -badvalue) - mats->modelview[5]= 0; + mats->modelview[5] > -badvalue) + { + mats->modelview[5] = 0; + } /* Set up viewport so that gluUnProject will give correct values */ mats->viewport[0] = 0; @@ -927,6 +935,7 @@ void bglPolygonOffset(float viewdist, float dist) } } +#if 0 /* UNUSED */ void bglFlush(void) { glFlush(); @@ -935,4 +944,4 @@ void bglFlush(void) // XXX myswapbuffers(); //hack to get mac intel graphics to show frontbuffer #endif } - +#endif |