GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLMATRIXMODE

GLMATRIXMODE

Index
 

NAME

glMatrixMode - specify which matrix is the current matrix

 

C SPECIFICATION

void f3glMatrixModefP( GLenum fImodefP )


 

PARAMETERS

f2modefP
Specifies which matrix stack is the target for subsequent matrix operations. Three values are accepted: %f3GL_MODELVIEWfP, %f3GL_PROJECTIONfP, and %f3GL_TEXTUREfP. The initial value is %f3GL_MODELVIEWfP.

Additionally, if the %f3GL_ARB_imagingfP extension is supported, %f3GL_COLORfP is also accepted.

 

DESCRIPTION

%f3glMatrixModefP sets the current matrix mode. f2modefP can assume one of four values:
%f3GL_MODELVIEWfP
Applies subsequent matrix operations to the modelview matrix stack.
%f3GL_PROJECTIONfP
Applies subsequent matrix operations to the projection matrix stack.
%f3GL_TEXTUREfP
Applies subsequent matrix operations to the texture matrix stack.
%f3GL_COLORfP
Applies subsequent matrix operations to the color matrix stack. To find out which matrix stack is currently the target of all matrix operations, call %f3glGetfP with argument %f3GL_MATRIX_MODEfP. The initial value is %f3GL_MODELVIEWfP.
 

ERRORS

%f3GL_INVALID_ENUMfP is generated if f2modefP is not an accepted value. %f3GL_INVALID_OPERATIONfP is generated if %f3glMatrixModefP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.  

ASSOCIATED GETS

%f3glGetfP with argument %f3GL_MATRIX_MODEfP  

SEE ALSO

%f3glLoadMatrix(3G)fP, %f3glPushMatrix(3G)fP


 

Index

NAME
C SPECIFICATION
PARAMETERS
DESCRIPTION
ERRORS
ASSOCIATED GETS
SEE ALSO