OSVR-Core
|
Header. More...
#include <osvr/Util/Export.h>
#include <osvr/Util/APIBaseC.h>
#include <osvr/Util/StdInt.h>
#include <osvr/Util/Pose3C.h>
#include <osvr/Util/ReturnCodesC.h>
Go to the source code of this file.
Typedefs | |
typedef uint16_t | OSVR_MatrixConventions |
Type for passing matrix convention flags. | |
typedef enum OSVR_MatrixMasks | OSVR_MatrixMasks |
Bitmasks for testing matrix conventions. | |
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. More... | |
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_MatrixMasks { OSVR_MATRIX_MASK_ROWMAJOR = 0x1, OSVR_MATRIX_MASK_ROWVECTORS = 0x2, OSVR_MATRIX_MASK_LHINPUT = 0x4, OSVR_MATRIX_MASK_UNSIGNEDZ = 0x8 } |
Bitmasks for testing matrix conventions. | |
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. 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... | |
enum | { OSVR_MATRIX_SIZE = 16 } |
Functions | |
OSVR_UTIL_EXPORT OSVR_ReturnCode | osvrPose3ToMatrixd (OSVR_Pose3 const *pose, OSVR_MatrixConventions flags, double *mat) |
Set a matrix of doubles based on a Pose3. More... | |
OSVR_UTIL_EXPORT OSVR_ReturnCode | osvrPose3ToMatrixf (OSVR_Pose3 const *pose, OSVR_MatrixConventions flags, float *mat) |
Set a matrix of floats based on a Pose3. More... | |
Header.
Must be c-safe!