ReactOS  0.4.12-dev-75-g00dd17e
MAT_FLAG_XXX-flags

Macros

#define MAT_FLAG_IDENTITY   0
 
#define MAT_FLAG_GENERAL   0x1
 
#define MAT_FLAG_ROTATION   0x2
 
#define MAT_FLAG_TRANSLATION   0x4
 
#define MAT_FLAG_UNIFORM_SCALE   0x8
 
#define MAT_FLAG_GENERAL_SCALE   0x10
 
#define MAT_FLAG_GENERAL_3D   0x20
 
#define MAT_FLAG_PERSPECTIVE   0x40
 
#define MAT_FLAG_SINGULAR   0x80
 
#define MAT_DIRTY_TYPE   0x100
 
#define MAT_DIRTY_FLAGS   0x200
 
#define MAT_DIRTY_INVERSE   0x400
 
#define MAT_FLAGS_ANGLE_PRESERVING
 
#define MAT_FLAGS_GEOMETRY
 
#define MAT_FLAGS_LENGTH_PRESERVING
 
#define MAT_FLAGS_3D
 
#define MAT_DIRTY
 

Detailed Description

Bitmasks to indicate different kinds of 4x4 matrices in GLmatrix::flags It would be nice to make all these flags private to m_matrix.c

Macro Definition Documentation

◆ MAT_DIRTY

#define MAT_DIRTY
Value:
MAT_DIRTY_FLAGS | \
MAT_DIRTY_INVERSE)
#define MAT_DIRTY_TYPE
Definition: m_matrix.c:62

dirty matrix flags mask

Definition at line 94 of file m_matrix.c.

Referenced by _math_matrix_copy(), and _math_matrix_is_general_scale().

◆ MAT_DIRTY_FLAGS

#define MAT_DIRTY_FLAGS   0x200

matrix flags are dirty

Definition at line 63 of file m_matrix.c.

Referenced by analyse_from_flags().

◆ MAT_DIRTY_INVERSE

#define MAT_DIRTY_INVERSE   0x400

matrix inverse is dirty

Definition at line 64 of file m_matrix.c.

◆ MAT_DIRTY_TYPE

#define MAT_DIRTY_TYPE   0x100

matrix type is dirty

Definition at line 62 of file m_matrix.c.

Referenced by analyse_from_flags().

◆ MAT_FLAG_GENERAL

#define MAT_FLAG_GENERAL   0x1

is a general matrix flag

Definition at line 54 of file m_matrix.c.

Referenced by _math_matrix_copy(), _math_matrix_is_length_preserving(), and analyse_from_scratch().

◆ MAT_FLAG_GENERAL_3D

#define MAT_FLAG_GENERAL_3D   0x20

general 3D matrix flag

Definition at line 59 of file m_matrix.c.

Referenced by analyse_from_scratch().

◆ MAT_FLAG_GENERAL_SCALE

#define MAT_FLAG_GENERAL_SCALE   0x10

is a general scaling matrix flag

Definition at line 58 of file m_matrix.c.

Referenced by _math_matrix_has_rotation(), _math_matrix_ortho(), analyse_from_flags(), and analyse_from_scratch().

◆ MAT_FLAG_IDENTITY

#define MAT_FLAG_IDENTITY   0

is an identity matrix flag. (Not actually used - the identity matrix is identified by the absense of all other flags.)

Definition at line 45 of file m_matrix.c.

◆ MAT_FLAG_PERSPECTIVE

#define MAT_FLAG_PERSPECTIVE   0x40

is a perspective proj matrix flag

Definition at line 60 of file m_matrix.c.

Referenced by _math_matrix_frustum().

◆ MAT_FLAG_ROTATION

#define MAT_FLAG_ROTATION   0x2

is a rotation matrix flag

Definition at line 55 of file m_matrix.c.

Referenced by _math_matrix_is_length_preserving(), analyse_from_scratch(), and invert_matrix_3d().

◆ MAT_FLAG_SINGULAR

#define MAT_FLAG_SINGULAR   0x80

is a singular matrix flag

Definition at line 61 of file m_matrix.c.

Referenced by matrix_invert().

◆ MAT_FLAG_TRANSLATION

#define MAT_FLAG_TRANSLATION   0x4

is a translation matrix flag

Definition at line 56 of file m_matrix.c.

Referenced by _math_matrix_ortho(), analyse_from_flags(), analyse_from_scratch(), and invert_matrix_3d().

◆ MAT_FLAG_UNIFORM_SCALE

#define MAT_FLAG_UNIFORM_SCALE   0x8

is an uniform scaling matrix flag

Definition at line 57 of file m_matrix.c.

Referenced by analyse_from_flags(), analyse_from_scratch(), and invert_matrix_3d().

◆ MAT_FLAGS_3D

#define MAT_FLAGS_3D
Value:
MAT_FLAG_TRANSLATION | \
MAT_FLAG_UNIFORM_SCALE | \
MAT_FLAG_GENERAL_SCALE | \
MAT_FLAG_GENERAL_3D)
#define MAT_FLAG_ROTATION
Definition: m_matrix.c:55

3D (non-perspective) matrix flags mask

Definition at line 87 of file m_matrix.c.

Referenced by analyse_from_flags().

◆ MAT_FLAGS_ANGLE_PRESERVING

#define MAT_FLAGS_ANGLE_PRESERVING
Value:
MAT_FLAG_TRANSLATION | \
MAT_FLAG_UNIFORM_SCALE)
#define MAT_FLAG_ROTATION
Definition: m_matrix.c:55

angle preserving matrix flags mask

Definition at line 67 of file m_matrix.c.

◆ MAT_FLAGS_GEOMETRY

#define MAT_FLAGS_GEOMETRY
Value:
MAT_FLAG_ROTATION | \
MAT_FLAG_TRANSLATION | \
MAT_FLAG_UNIFORM_SCALE | \
MAT_FLAG_GENERAL_SCALE | \
MAT_FLAG_GENERAL_3D | \
MAT_FLAG_PERSPECTIVE | \
MAT_FLAG_SINGULAR)
#define MAT_FLAG_GENERAL
Definition: m_matrix.c:54

geometry related matrix flags mask

Definition at line 72 of file m_matrix.c.

Referenced by analyse_from_scratch().

◆ MAT_FLAGS_LENGTH_PRESERVING

#define MAT_FLAGS_LENGTH_PRESERVING
Value:
MAT_FLAG_TRANSLATION)
#define MAT_FLAG_ROTATION
Definition: m_matrix.c:55

length preserving matrix flags mask

Definition at line 82 of file m_matrix.c.