36 #include "../api_core.h"
37 #include "../System/cl_platform.h"
42 template<
typename Type>
45 template<
typename Type>
48 template<
typename Type>
51 template<
typename Type>
60 template<
typename Type>
70 for (
int i=0; i<16; i++)
77 for (
int i=0; i<16; i++)
90 for (
int i=0; i<16; i++)
91 matrix[i] = (Type) init_matrix[i];
97 for (
int i=0; i<16; i++)
98 matrix[i] = (Type) init_matrix[i];
104 for (
int i=0; i<16; i++)
105 matrix[i] = (Type) init_matrix[i];
111 for (
int i=0; i<16; i++)
112 matrix[i] = (Type) init_matrix[i];
118 for (
int i=0; i<16; i++)
119 matrix[i] = (Type) init_matrix[i];
125 for (
int i=0; i<16; i++)
126 matrix[i] = (Type) init_matrix[i];
142 static CL_Mat4<Type> frustum(Type left, Type right, Type bottom, Type top, Type z_near, Type z_far);
149 Type field_of_view_y_degrees,
158 static CL_Mat4<Type> ortho(Type left, Type right, Type bottom, Type top, Type z_near, Type z_far);
215 Type eye_x, Type eye_y, Type eye_z,
216 Type center_x, Type center_y, Type center_z,
217 Type up_x, Type up_y, Type up_z);
374 operator Type
const*()
const {
return matrix; }
412 for (
int i=0; i<16; i++)