diff options
Diffstat (limited to 'source/blender/editors/include/BIF_glutil.h')
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 46 |
1 files changed, 5 insertions, 41 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index 577113927d1..6ba6209414e 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -33,13 +33,9 @@ struct rcti; struct rctf; -void fdrawbezier(float vec[4][3]); -void fdrawline(float x1, float y1, float x2, float y2); -void fdrawbox(float x1, float y1, float x2, float y2); -void sdrawline(short x1, short y1, short x2, short y2); +//void fdrawbezier(float vec[4][3]); void sdrawtri(short x1, short y1, short x2, short y2); void sdrawtrifill(short x1, short y1, short x2, short y2); -void sdrawbox(short x1, short y1, short x2, short y2); void sdrawXORline(int x0, int y0, int x1, int y1); void sdrawXORline4(int nr, int x0, int y0, int x1, int y1); @@ -56,31 +52,6 @@ extern unsigned char stipple_quarttone[128]; extern unsigned char stipple_diag_stripes_pos[128]; extern unsigned char stipple_diag_stripes_neg[128]; -/** - * Draw a lined (non-looping) arc with the given - * \a radius, starting at angle \a start and arcing - * through \a angle. The arc is centered at the origin - * and drawn in the XY plane. - * - * \param start The initial angle (in radians). - * \param angle The length of the arc (in radians). - * \param radius The arc radius. - * \param nsegments The number of segments to use in drawing the arc. - */ -void glutil_draw_lined_arc(float start, float angle, float radius, int nsegments); - -/** - * Draw a filled arc with the given \a radius, - * starting at angle \a start and arcing through - * \a angle. The arc is centered at the origin - * and drawn in the XY plane. - * - * \param start The initial angle (in radians). - * \param angle The length of the arc (in radians). - * \param radius The arc radius. - * \param nsegments The number of segments to use in drawing the arc. - */ -void glutil_draw_filled_arc(float start, float angle, float radius, int nsegments); /** * Routines an integer value as obtained by glGetIntegerv. @@ -192,15 +163,6 @@ void gla2DGetMap(gla2DDrawInfo *di, struct rctf *rect); void gla2DSetMap(gla2DDrawInfo *di, struct rctf *rect); -/* use this for platform hacks. glPointSize is solved here */ -void bglBegin(int mode); -void bglEnd(void); -// int bglPointHack(void); /* UNUSED */ -void bglVertex3fv(const float vec[3]); -void bglVertex3f(float x, float y, float z); -void bglVertex2fv(const float vec[2]); -/* intel gfx cards frontbuffer problem */ -// void bglFlush(void); /* UNUSED */ void set_inverted_drawing(int enable); void setlinestyle(int nr); @@ -209,11 +171,13 @@ void bglPolygonOffset(float viewdist, float dist); /* For caching opengl matrices (gluProject/gluUnProject) */ typedef struct bglMats { - double modelview[16]; - double projection[16]; + float modelview[16]; + float projection[16]; int viewport[4]; } bglMats; void bgl_get_mats(bglMats *mats); +#define GLA_PIXEL_OFS 0.375f + #endif /* __BIF_GLUTIL_H__ */ |