AllegroGL 0.4.4
|
Routines to convert between OpenGL and Allegro math types. More...
Routines to convert between OpenGL and Allegro math types.
void allegro_gl_MATRIX_to_GLfloat | ( | MATRIX * | m, |
GLfloat | gl[16] | ||
) |
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);
void allegro_gl_MATRIX_to_GLdouble | ( | MATRIX * | m, |
GLdouble | gl[16] | ||
) |
Converts an Allegro fixed-point matrix to an array of doubles suitable for OpenGL's matrix operations.
void allegro_gl_MATRIX_f_to_GLfloat | ( | MATRIX_f * | m, |
GLfloat | gl[16] | ||
) |
Converts an Allegro floating-point matrix to an array of floats suitable for OpenGL's matrix operations.
void allegro_gl_MATRIX_f_to_GLdouble | ( | MATRIX_f * | m, |
GLdouble | gl[16] | ||
) |
Converts an Allegro floating-point matrix to an array of doubles suitable for OpenGL's matrix operations.
void allegro_gl_GLfloat_to_MATRIX | ( | GLfloat | gl[16], |
MATRIX * | m | ||
) |
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);
void allegro_gl_GLdouble_to_MATRIX | ( | GLdouble | gl[16], |
MATRIX * | m | ||
) |
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);
void allegro_gl_GLfloat_to_MATRIX_f | ( | GLfloat | gl[16], |
MATRIX_f * | m | ||
) |
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);
void allegro_gl_GLdouble_to_MATRIX_f | ( | GLdouble | gl[16], |
MATRIX_f * | m | ||
) |
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);