core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

polygon.c File Reference

Polygon operations. More...

#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "image.h"
#include "enums.h"
#include "macros.h"
#include "polygon.h"
#include "mtypes.h"

State Management

void _mesa_update_polygon (GLcontext *ctx)

Initialization

void _mesa_init_polygon (GLcontext *ctx)
 Initialize the context polygon state. More...


Functions

void GLAPIENTRY _mesa_CullFace (GLenum mode)
 Specify whether to cull front- or back-facing facets. More...

void GLAPIENTRY _mesa_FrontFace (GLenum mode)
 Define front- and back-facing. More...

void GLAPIENTRY _mesa_PolygonMode (GLenum face, GLenum mode)
 Set the polygon rasterization mode. More...

void GLAPIENTRY _mesa_PolygonStipple (const GLubyte *pattern)
void GLAPIENTRY _mesa_GetPolygonStipple (GLubyte *dest)
void GLAPIENTRY _mesa_PolygonOffset (GLfloat factor, GLfloat units)
void GLAPIENTRY _mesa_PolygonOffsetEXT (GLfloat factor, GLfloat bias)


Detailed Description

Polygon operations.


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
 

void _mesa_init_polygon GLcontext   ctx
 

Initialize the context polygon state.

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

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
 

void _mesa_update_polygon GLcontext   ctx
 


Generated on Sun May 16 15:55:12 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001