core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

polygon.h File Reference


Detailed Description

Polygon operations.

#include "mtypes.h"

Functions

void _mesa_polygon_stipple (GLcontext *ctx, const GLubyte *pattern)
 This routine updates the ctx->Polygon.Stipple state.
void GLAPIENTRY _mesa_CullFace (GLenum mode)
 Specify whether to cull front- or back-facing facets.
void GLAPIENTRY _mesa_FrontFace (GLenum mode)
 Define front- and back-facing.
void GLAPIENTRY _mesa_PolygonMode (GLenum face, GLenum mode)
 Set the polygon rasterization mode.
void GLAPIENTRY _mesa_PolygonOffset (GLfloat factor, GLfloat units)
void GLAPIENTRY _mesa_PolygonOffsetEXT (GLfloat factor, GLfloat bias)
void GLAPIENTRY _mesa_PolygonStipple (const GLubyte *mask)
 Called by glPolygonStipple.
void GLAPIENTRY _mesa_GetPolygonStipple (GLubyte *mask)
 Called by glPolygonStipple.
void _mesa_init_polygon (GLcontext *ctx)
 Initialize the context polygon state.


Function Documentation

void GLAPIENTRY _mesa_CullFace ( GLenum  mode  ) 

Specify whether to cull front- or back-facing facets.

Parameters:
mode culling mode.
See also:
glCullFace().
Verifies the parameter and updates gl_polygon_attrib::CullFaceMode. On change, flushes the vertices and notifies the driver via the dd_function_table::CullFace callback.

void GLAPIENTRY _mesa_FrontFace ( GLenum  mode  ) 

Define front- and back-facing.

Parameters:
mode orientation of front-facing polygons.
See also:
glFrontFace().
Verifies the parameter and updates gl_polygon_attrib::FrontFace. On change flushes the vertices and notifies the driver via the dd_function_table::FrontFace callback.

void GLAPIENTRY _mesa_GetPolygonStipple ( GLubyte *  mask  ) 

Called by glPolygonStipple.

void _mesa_init_polygon ( GLcontext ctx  ) 

Initialize the context polygon state.

Parameters:
ctx GL context.
Initializes __GLcontextRec::Polygon and __GLcontextRec::PolygonStipple attribute groups.

void _mesa_polygon_stipple ( GLcontext ctx,
const GLubyte *  pattern 
)

This routine updates the ctx->Polygon.Stipple state.

If we're getting the stipple data from a PBO, we map the buffer in order to access the data. In any case, we obey the current pixel unpacking parameters when fetching the stipple data.

In the future, this routine should be used as a fallback, called via ctx->Driver.PolygonStipple(). We'll have to update all the DRI drivers too.

void GLAPIENTRY _mesa_PolygonMode ( GLenum  face,
GLenum  mode 
)

Set the polygon rasterization mode.

Parameters:
face the polygons which mode applies to.
mode how polygons should be rasterized.
See also:
glPolygonMode().
Verifies the parameters and updates gl_polygon_attrib::FrontMode and gl_polygon_attrib::BackMode. On change flushes the vertices and notifies the driver via the dd_function_table::PolygonMode callback.

void GLAPIENTRY _mesa_PolygonOffset ( GLfloat  factor,
GLfloat  units 
)

void GLAPIENTRY _mesa_PolygonOffsetEXT ( GLfloat  factor,
GLfloat  bias 
)

void GLAPIENTRY _mesa_PolygonStipple ( const GLubyte *  mask  ) 

Called by glPolygonStipple.


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4