OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Typedefs

typedef enum
OSVR_MatrixOrderingFlags 
OSVR_MatrixOrderingFlags
 Flag bit controlling output memory order.
 
typedef enum OSVR_MatrixVectorFlags OSVR_MatrixVectorFlags
 Flag bit controlling expected input to matrices. (Related to OSVR_MatrixOrderingFlags - setting one to non-default results in an output change, but setting both to non-default results in effectively no change in the output. If this blows your mind, just ignore this aside and carry on.)
 
typedef enum
OSVR_ProjectionMatrixInputFlags 
OSVR_ProjectionMatrixInputFlags
 Flag bit to indicate coordinate system input to projection matrix.
 
typedef enum
OSVR_ProjectionMatrixZFlags 
OSVR_ProjectionMatrixZFlags
 Flag bit to indicate the desired post-projection Z value convention.
 

Enumerations

enum  OSVR_MatrixOrderingFlags { OSVR_MATRIX_COLMAJOR = 0x0, OSVR_MATRIX_ROWMAJOR = OSVR_MATRIX_MASK_ROWMAJOR }
 Flag bit controlling output memory order. More...
 
enum  OSVR_MatrixVectorFlags { OSVR_MATRIX_COLVECTORS = 0x0, OSVR_MATRIX_ROWVECTORS = OSVR_MATRIX_MASK_ROWVECTORS }
 Flag bit controlling expected input to matrices. (Related to OSVR_MatrixOrderingFlags - setting one to non-default results in an output change, but setting both to non-default results in effectively no change in the output. If this blows your mind, just ignore this aside and carry on.) More...
 
enum  OSVR_ProjectionMatrixInputFlags { OSVR_MATRIX_RHINPUT = 0x0, OSVR_MATRIX_LHINPUT = OSVR_MATRIX_MASK_LHINPUT }
 Flag bit to indicate coordinate system input to projection matrix. More...
 
enum  OSVR_ProjectionMatrixZFlags { OSVR_MATRIX_SIGNEDZ = 0x0, OSVR_MATRIX_UNSIGNEDZ = OSVR_MATRIX_MASK_UNSIGNEDZ }
 Flag bit to indicate the desired post-projection Z value convention. More...
 

Detailed Description

Bit flags for specifying matrix options. Only one option may be specified per enum, with all the specified options combined with bitwise-or |.

Most methods that take matrix flags only obey OSVR_MatrixOrderingFlags and OSVR_MatrixVectorFlags - the flags that affect memory order. The remaining flags are for use with projection matrix generation API methods.

Enumeration Type Documentation

#include <osvr/Util/MatrixConventionsC.h>

Flag bit controlling output memory order.

Enumerator
OSVR_MATRIX_COLMAJOR 

Column-major memory order (default)

OSVR_MATRIX_ROWMAJOR 

Row-major memory order.

Definition at line 81 of file MatrixConventionsC.h.

#include <osvr/Util/MatrixConventionsC.h>

Flag bit controlling expected input to matrices. (Related to OSVR_MatrixOrderingFlags - setting one to non-default results in an output change, but setting both to non-default results in effectively no change in the output. If this blows your mind, just ignore this aside and carry on.)

Enumerator
OSVR_MATRIX_COLVECTORS 

Matrix transforms column vectors (default)

OSVR_MATRIX_ROWVECTORS 

Matrix transforms row vectors.

Definition at line 94 of file MatrixConventionsC.h.

#include <osvr/Util/MatrixConventionsC.h>

Flag bit to indicate coordinate system input to projection matrix.

Enumerator
OSVR_MATRIX_RHINPUT 

Matrix takes vectors from a right-handed coordinate system (default)

OSVR_MATRIX_LHINPUT 

Matrix takes vectors from a left-handed coordinate system.

Definition at line 102 of file MatrixConventionsC.h.

#include <osvr/Util/MatrixConventionsC.h>

Flag bit to indicate the desired post-projection Z value convention.

Enumerator
OSVR_MATRIX_SIGNEDZ 

Matrix maps the near and far planes to signed Z values (in the range [-1, 1]) (default)

OSVR_MATRIX_UNSIGNEDZ 

Matrix maps the near and far planes to unsigned Z values (in the range [0, 1])

Definition at line 113 of file MatrixConventionsC.h.