Changeset 3598 for trunk/src/opengl/mesa/rect.c
- Timestamp:
- May 23, 2000, 10:41:28 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/rect.c
r2962 r3598 1 /* $Id: rect.c,v 1. 2 2000-03-01 18:49:35jeroen Exp $ */1 /* $Id: rect.c,v 1.3 2000-05-23 20:40:52 jeroen Exp $ */ 2 2 3 3 /* … … 33 33 #include "all.h" 34 34 #else 35 #ifndef XFree86Server 36 #else 37 #include "GL/xf86glx.h" 38 #endif 35 #include "glheader.h" 39 36 #include "types.h" 40 37 #include "context.h" … … 49 46 * Execute a glRect*() function. 50 47 */ 51 void gl_Rectf( GLcontext *ctx, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) 48 void 49 _mesa_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) 52 50 { 53 51 /* … … 58 56 * KW: What happens to cull mode here? 59 57 */ 58 GET_CURRENT_CONTEXT(ctx); 60 59 ASSERT_OUTSIDE_BEGIN_END(ctx, "glRect"); 61 60 RESET_IMMEDIATE(ctx); … … 67 66 gl_End( ctx ); 68 67 } 68 69 70 void 71 _mesa_Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) 72 { 73 _mesa_Rectf(x1, y1, x2, y2); 74 } 75 76 void 77 _mesa_Rectdv(const GLdouble *v1, const GLdouble *v2) 78 { 79 _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]); 80 } 81 82 void 83 _mesa_Rectfv(const GLfloat *v1, const GLfloat *v2) 84 { 85 _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]); 86 } 87 88 void 89 _mesa_Recti(GLint x1, GLint y1, GLint x2, GLint y2) 90 { 91 _mesa_Rectf(x1, y1, x2, y2); 92 } 93 94 void 95 _mesa_Rectiv(const GLint *v1, const GLint *v2) 96 { 97 _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]); 98 } 99 100 void 101 _mesa_Rects(GLshort x1, GLshort y1, GLshort x2, GLshort y2) 102 { 103 _mesa_Rectf(x1, y1, x2, y2); 104 } 105 106 void 107 _mesa_Rectsv(const GLshort *v1, const GLshort *v2) 108 { 109 _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]); 110 } 111
Note:
See TracChangeset
for help on using the changeset viewer.