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

enable.h File Reference


Detailed Description

Enable/disable/query GL capabilities.

#include "mtypes.h"

Functions

void _mesa_set_enable (GLcontext *ctx, GLenum cap, GLboolean state)
 Helper function to enable or disable state.
void GLAPIENTRY _mesa_Disable (GLenum cap)
 Disable GL capability.
void GLAPIENTRY _mesa_Enable (GLenum cap)
 Enable GL capability.
GLboolean GLAPIENTRY _mesa_IsEnabled (GLenum cap)
 Return simple enable/disable state.
void GLAPIENTRY _mesa_EnableClientState (GLenum cap)
 Enable GL capability.
void GLAPIENTRY _mesa_DisableClientState (GLenum cap)
 Disable GL capability.


Function Documentation

void GLAPIENTRY _mesa_Disable ( GLenum  cap  ) 

Disable GL capability.

Called by glDisable()

Parameters:
cap state to disable.

void GLAPIENTRY _mesa_DisableClientState ( GLenum  cap  ) 

Disable GL capability.

Parameters:
cap state to enable/disable.
Get's the current context, assures that we're outside glBegin()/glEnd() and calls client_state().

void GLAPIENTRY _mesa_Enable ( GLenum  cap  ) 

Enable GL capability.

Called by glEnable()

Parameters:
cap state to enable.

void GLAPIENTRY _mesa_EnableClientState ( GLenum  cap  ) 

Enable GL capability.

Parameters:
cap state to enable/disable.
Get's the current context, assures that we're outside glBegin()/glEnd() and calls client_state().

GLboolean GLAPIENTRY _mesa_IsEnabled ( GLenum  cap  ) 

Return simple enable/disable state.

Parameters:
cap state variable to query.
Returns the state of the specified capability from the current GL context. For the capabilities associated with extensions verifies that those extensions are effectively present before reporting.

void _mesa_set_enable ( GLcontext ctx,
GLenum  cap,
GLboolean  state 
)

Helper function to enable or disable state.

Parameters:
ctx GL context.
cap the state to enable/disable
state whether to enable or disable the specified capability.
Updates the current context and flushes the vertices as needed. For capabilities associated with extensions it verifies that those extensions are effectivly present before updating. Notifies the driver via dd_function_table::Enable.


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