Ignore:
Timestamp:
May 23, 2000, 10:41:28 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

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:35 jeroen Exp $ */
     1/* $Id: rect.c,v 1.3 2000-05-23 20:40:52 jeroen Exp $ */
    22
    33/*
     
    3333#include "all.h"
    3434#else
    35 #ifndef XFree86Server
    36 #else
    37 #include "GL/xf86glx.h"
    38 #endif
     35#include "glheader.h"
    3936#include "types.h"
    4037#include "context.h"
     
    4946 * Execute a glRect*() function.
    5047 */
    51 void gl_Rectf( GLcontext *ctx, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 )
     48void
     49_mesa_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 )
    5250{
    5351   /*
     
    5856    * KW: What happens to cull mode here?
    5957    */
     58   GET_CURRENT_CONTEXT(ctx);
    6059   ASSERT_OUTSIDE_BEGIN_END(ctx, "glRect");
    6160   RESET_IMMEDIATE(ctx);
     
    6766   gl_End( ctx );
    6867}
     68
     69
     70void
     71_mesa_Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
     72{
     73   _mesa_Rectf(x1, y1, x2, y2);
     74}
     75
     76void
     77_mesa_Rectdv(const GLdouble *v1, const GLdouble *v2)
     78{
     79   _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]);
     80}
     81
     82void
     83_mesa_Rectfv(const GLfloat *v1, const GLfloat *v2)
     84{
     85   _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]);
     86}
     87
     88void
     89_mesa_Recti(GLint x1, GLint y1, GLint x2, GLint y2)
     90{
     91   _mesa_Rectf(x1, y1, x2, y2);
     92}
     93
     94void
     95_mesa_Rectiv(const GLint *v1, const GLint *v2)
     96{
     97   _mesa_Rectf(v1[0], v1[1], v2[0], v2[1]);
     98}
     99
     100void
     101_mesa_Rects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
     102{
     103   _mesa_Rectf(x1, y1, x2, y2);
     104}
     105
     106void
     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.