|
Converts an Allegro fixed-point matrix to an array of floats suitable for OpenGL's matrix operations. Example: MATRIX m = identity_matrix; GLfloat gl_m[16]; get_vector_rotation_matrix(&m, itofix(1), 0, itofix(1), ftofix(43.83)); allegro_gl_MATRIX_to_GLfloat(&m, &gl_m); glLoadMatrixf(&gl_m);
|
|
Converts an Allegro fixed-point matrix to an array of doubles suitable for OpenGL's matrix operations.
|
|
Converts an Allegro floating-point matrix to an array of floats suitable for OpenGL's matrix operations.
|
|
Converts an Allegro floating-point matrix to an array of doubles suitable for OpenGL's matrix operations.
|
|
Converts an OpenGL floating-point matrix issued from the matrix stack to an Allegro fixed-point matrix.
|
|
Converts an OpenGL double precision floating-point matrix issued from the matrix stack to an Allegro fixed-point matrix.
|
|
Converts an OpenGL floating-point matrix issued from the matrix stack to an Allegro floating-point matrix.
|
|
Converts an OpenGL double precision floating-point matrix issued from the matrix stack to an Allegro single-precision floating-point matrix.
|
|
Multiplies the Quaternion to the current transformation matrix, by converting it to a call to glRotatef(). Example: QUAT q = identity_quat; get_vector_rotation_quat(&q, itofix(1), 0, itofix(1), ftofix(43.83)); glLoadIdentity(); allegro_gl_apply_quat(&q);
Definition at line 219 of file math.c. References __allegro_gl_valid_context, and RAD_2_DEG. |
|
Converts a quaternion to a vector/angle, which can be used with glRotate*(). Values are returned in the parameters. Example: QUAT q = identity_quat; float x, y, z, angle; allegro_gl_quat_to_glrotatef(&q, &angle, &x, &y, &z); glRotatef(angle, x, y, z);
Definition at line 255 of file math.c. References RAD_2_DEG. |
|
Converts a quaternion to a vector/angle, which can be used with glRotate*(). Values are returned in the parameters. See allegro_gl_quat_to_rotatef() for an example.
Definition at line 287 of file math.c. References RAD_2_DEG. |