mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 20:30:25 +01:00
Add PolygonOffset driver callback.
This commit is contained in:
parent
8ac1f97e9e
commit
d2733fa196
2 changed files with 13 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: dd.h,v 1.59 2001/03/19 02:25:35 keithw Exp $ */
|
||||
/* $Id: dd.h,v 1.60 2001/03/22 00:36:27 gareth Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -439,7 +439,7 @@ struct dd_function_table {
|
|||
/***
|
||||
*** Imaging functionality:
|
||||
***/
|
||||
void (*CopyColorTable)( GLcontext *ctx,
|
||||
void (*CopyColorTable)( GLcontext *ctx,
|
||||
GLenum target, GLenum internalformat,
|
||||
GLint x, GLint y, GLsizei width );
|
||||
|
||||
|
|
@ -447,13 +447,13 @@ struct dd_function_table {
|
|||
GLenum target, GLsizei start,
|
||||
GLint x, GLint y, GLsizei width );
|
||||
|
||||
void (*CopyConvolutionFilter1D)( GLcontext *ctx, GLenum target,
|
||||
GLenum internalFormat,
|
||||
void (*CopyConvolutionFilter1D)( GLcontext *ctx, GLenum target,
|
||||
GLenum internalFormat,
|
||||
GLint x, GLint y, GLsizei width );
|
||||
|
||||
void (*CopyConvolutionFilter2D)( GLcontext *ctx, GLenum target,
|
||||
GLenum internalFormat,
|
||||
GLint x, GLint y,
|
||||
|
||||
void (*CopyConvolutionFilter2D)( GLcontext *ctx, GLenum target,
|
||||
GLenum internalFormat,
|
||||
GLint x, GLint y,
|
||||
GLsizei width, GLsizei height );
|
||||
|
||||
|
||||
|
|
@ -498,6 +498,7 @@ struct dd_function_table {
|
|||
const GLfloat *params);
|
||||
void (*PointSize)(GLcontext *ctx, GLfloat size);
|
||||
void (*PolygonMode)(GLcontext *ctx, GLenum face, GLenum mode);
|
||||
void (*PolygonOffset)(GLcontext *ctx, GLfloat factor, GLfloat units);
|
||||
void (*PolygonStipple)(GLcontext *ctx, const GLubyte *mask );
|
||||
void (*RenderMode)(GLcontext *ctx, GLenum mode );
|
||||
void (*Scissor)(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: polygon.c,v 1.20 2001/03/12 00:48:38 gareth Exp $ */
|
||||
/* $Id: polygon.c,v 1.21 2001/03/22 00:36:27 gareth Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -196,6 +196,9 @@ _mesa_PolygonOffset( GLfloat factor, GLfloat units )
|
|||
ctx->Polygon.OffsetFactor = factor;
|
||||
ctx->Polygon.OffsetUnits = units;
|
||||
ctx->Polygon.OffsetMRD = units * ctx->MRD;
|
||||
|
||||
if (ctx->Driver.PolygonOffset)
|
||||
ctx->Driver.PolygonOffset( ctx, factor, units );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue