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

lines.h File Reference

Line operations. More...

#include "mtypes.h"

Functions

void GLAPIENTRY _mesa_LineWidth (GLfloat width)
 Set the line width. More...

void GLAPIENTRY _mesa_LineStipple (GLint factor, GLushort pattern)
 Set the line stipple pattern. More...

void GLAPIENTRY _mesa_init_line (GLcontext *ctx)
 Initialize the context line state. More...


Detailed Description

Line operations.


Function Documentation

void GLAPIENTRY _mesa_init_line GLcontext   ctx
 

Initialize the context line state.

Parameters:
ctx  GL context.
Initializes __GLcontextRec::Line and line related constants in __GLcontextRec::Const.

void GLAPIENTRY _mesa_LineStipple GLint    factor,
GLushort    pattern
 

Set the line stipple pattern.

Parameters:
factor  pattern scale factor.
pattern  bit pattern.
See also:
glLineStipple().
Updates gl_line_attrib::StippleFactor and gl_line_attrib::StipplePattern. On change flushes the vertices and notifies the driver via the dd_function_table::LineStipple callback.

void GLAPIENTRY _mesa_LineWidth GLfloat    width
 

Set the line width.

Parameters:
width  line width in pixels.
See also:
glLineWidth().
Verifies the parameter and updates gl_line_attrib::Width. On a change, flushes the vertices, updates the clamped line width and marks the DD_LINE_WIDTH flag in __GLcontextRec::_TriangleCaps for the drivers if the width is different from one. Notifies the driver via the dd_function_table::LineWidth callback.


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