93 float left,
float right,
float bottom,
float top,
float near,
float far);
115 const float model[4][4],
116 const float proj[4][4],
120 const float model[4][4],
121 const float proj[4][4],
126 const float model[4][4],
127 const float proj[4][4],
132 const float model_inverted[4][4],
133 const float proj[4][4],
167#ifdef USE_GPU_PY_MATRIX_API
171# define GPU_PY_MATRIX_STACK_LEN 31
174#ifndef SUPPRESS_GENERIC_MATRIX_API
176# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
177# define _GPU_MAT3_CONST_CAST(x) \
179 void *: (const float(*)[3])(x), \
180 float *: (const float(*)[3])(x), \
181 float(*)[4]: (const float(*)[3])(x), \
182 const void *: (const float(*)[3])(x), \
183 const float *: (const float(*)[3])(x), \
184 const float(*)[3]: (const float(*)[3])(x)))
185# define _GPU_MAT3_CAST(x) \
187 void *: (float(*)[3])(x), \
188 float *: (float(*)[3])(x), \
189 float(*)[3]: (float(*)[3])(x)))
190# define _GPU_MAT4_CONST_CAST(x) \
192 void *: (const float(*)[4])(x), \
193 float *: (const float(*)[4])(x), \
194 float(*)[4]: (const float(*)[4])(x), \
195 const void *: (const float(*)[4])(x), \
196 const float *: (const float(*)[4])(x), \
197 const float(*)[4]: (const float(*)[4])(x)))
198# define _GPU_MAT4_CAST(x) \
200 void *: (float(*)[4])(x), \
201 float *: (float(*)[4])(x), \
202 float(*)[4]: (float(*)[4])(x)))
204# define _GPU_MAT3_CONST_CAST(x) (const float(*)[3])(x)
205# define _GPU_MAT3_CAST(x) (float(*)[3])(x)
206# define _GPU_MAT4_CONST_CAST(x) (const float(*)[4])(x)
207# define _GPU_MAT4_CAST(x) (float(*)[4])(x)
211# define GPU_matrix_mul(x) GPU_matrix_mul(_GPU_MAT4_CONST_CAST(x))
212# define GPU_matrix_set(x) GPU_matrix_set(_GPU_MAT4_CONST_CAST(x))
213# define GPU_matrix_projection_set(x) GPU_matrix_projection_set(_GPU_MAT4_CONST_CAST(x))
214# define GPU_matrix_model_view_get(x) GPU_matrix_model_view_get(_GPU_MAT4_CAST(x))
215# define GPU_matrix_projection_get(x) GPU_matrix_projection_get(_GPU_MAT4_CAST(x))
216# define GPU_matrix_model_view_projection_get(x) \
217 GPU_matrix_model_view_projection_get(_GPU_MAT4_CAST(x))
218# define GPU_matrix_normal_get(x) GPU_matrix_normal_get(_GPU_MAT3_CAST(x))
219# define GPU_matrix_normal_inverse_get(x) GPU_matrix_normal_inverse_get(_GPU_MAT3_CAST(x))
void GPU_matrix_look_at(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)
#define GPU_matrix_normal_get(x)
void GPU_matrix_translate_2fv(const float vec[2])
void GPU_matrix_rotate_axis(float deg, char axis)
float GPU_polygon_offset_calc(const float(*winmat)[4], float viewdist, float dist)
void GPU_matrix_identity_projection_set()
#define GPU_matrix_model_view_get(x)
void GPU_matrix_project_2fv(const float world[3], const float model[4][4], const float proj[4][4], const int view[4], float r_win[2])
void GPU_matrix_ortho_set(float left, float right, float bottom, float top, float near, float far)
void GPU_matrix_identity_set()
void GPU_matrix_scale_2f(float x, float y)
void GPU_matrix_bind(GPUShader *shader)
void GPU_matrix_perspective_set(float fovy, float aspect, float near, float far)
void GPU_matrix_scale_2fv(const float vec[2])
#define GPU_matrix_set(x)
void GPU_matrix_frustum_set(float left, float right, float bottom, float top, float near, float far)
void GPU_matrix_ortho_set_z(float near, float far)
void GPU_matrix_ortho_2d_set(float left, float right, float bottom, float top)
void GPU_matrix_push_projection()
#define GPU_matrix_mul(x)
void GPU_matrix_scale_3fv(const float vec[3])
void GPU_matrix_scale_3f(float x, float y, float z)
#define GPU_matrix_normal_inverse_get(x)
void GPU_matrix_scale_1f(float factor)
void GPU_matrix_rotate_3fv(float deg, const float axis[3])
void GPU_matrix_rotate_2d(float deg)
void GPU_matrix_pop_projection()
#define GPU_matrix_projection_get(x)
#define GPU_matrix_projection_set(x)
bool GPU_matrix_dirty_get()
bool GPU_matrix_unproject_3fv(const float win[3], const float model_inverted[4][4], const float proj[4][4], const int view[4], float r_world[3])
bool GPU_matrix_unproject_precalc(GPUMatrixUnproject_Precalc *unproj_precalc, const float model[4][4], const float proj[4][4], const int view[4])
#define GPU_matrix_model_view_projection_get(x)
void GPU_matrix_translate_3fv(const float vec[3])
void GPU_matrix_translate_3f(float x, float y, float z)
void GPU_polygon_offset(float viewdist, float dist)
void GPU_matrix_rotate_3f(float deg, float x, float y, float z)
static constexpr int GPU_MATRIX_ORTHO_CLIP_FAR_DEFAULT
void GPU_matrix_project_3fv(const float world[3], const float model[4][4], const float proj[4][4], const int view[4], float r_win[3])
static constexpr int GPU_MATRIX_ORTHO_CLIP_NEAR_DEFAULT
void GPU_matrix_translate_2f(float x, float y)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
int GPU_matrix_stack_level_get_projection()
int GPU_matrix_stack_level_get_model_view()
struct GPUMatrixUnproject_Precalc::@075212243006211337061015367232055171325021111214 dims
float model_inverted[4][4]