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

SWvertex Struct Reference

Data-structure to handle vertices in the software rasterizer. More...

#include <swrast.h>


Data Fields

GLfloat win [4]
 win[0], win[1] are the screen-coords of SWvertex. More...

GLfloat texcoord [MAX_TEXTURE_COORD_UNITS][4]
GLchan color [4]
GLchan specular [4]
GLfloat fog
GLfloat index
GLfloat pointSize


Detailed Description

Data-structure to handle vertices in the software rasterizer.

The software rasterizer now uses this format for vertices. Thus a 'RasterSetup' stage or other translation is required between the tnl module and the swrast rasterization functions. This serves to isolate the swrast module from the internals of the tnl module, and improve its usefulness as a fallback mechanism for hardware drivers.

Full software drivers:

Rasterization hardware drivers:


Field Documentation

GLchan SWvertex::color[4]
 

GLfloat SWvertex::fog
 

GLfloat SWvertex::index
 

GLfloat SWvertex::pointSize
 

GLchan SWvertex::specular[4]
 

GLfloat SWvertex::texcoord[MAX_TEXTURE_COORD_UNITS][4]
 

GLfloat SWvertex::win[4]
 

win[0], win[1] are the screen-coords of SWvertex.

win[2] is the z-coord. what is win[3]?


The documentation for this struct was generated from the following file:
Generated on Sun May 16 15:55:22 2004 for Mesa Software Rasterization (swrast) by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001