inline void tglLoadMatrix(const math::Matrix4& matrix) { #if defined(TAU_SCALAR_DOUBLE) glLoadTransposeMatrixd((const double*)matrix.getData()); #else glLoadTransposeMatrixf((const float*)matrix.getData()); #endif }
static int lua_glLoadTransposeMatrixd(lua_State *L) { CHECK_ARG_COUNT(L, 1); Array1D<Double> m(L, 1); if (m.size() != 16) { luaL_error(L, "gl.LoadTransposeMatrixd: invalid matrix data"); } glLoadTransposeMatrixd(m); return 0; }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixd(JNIEnv *env, jclass clazz, jlong m, jlong function_pointer) { const GLdouble *m_address = (const GLdouble *)(intptr_t)m; glLoadTransposeMatrixdPROC glLoadTransposeMatrixd = (glLoadTransposeMatrixdPROC)((intptr_t)function_pointer); glLoadTransposeMatrixd(m_address); }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixd(JNIEnv *__env, jclass clazz, jlong mAddress, jlong __functionAddress) { const GLdouble *m = (const GLdouble *)(intptr_t)mAddress; glLoadTransposeMatrixdPROC glLoadTransposeMatrixd = (glLoadTransposeMatrixdPROC)(intptr_t)__functionAddress; UNUSED_PARAMS(__env, clazz) glLoadTransposeMatrixd(m); }
void gl4es_glMatrixLoadTransposed(GLenum matrixMode, const GLdouble *m) { mat(glLoadTransposeMatrixd(m)); }
///////////////////////////////////////////////////////// // Render // void GEMglLoadTransposeMatrixd :: render(GemState *state) { glLoadTransposeMatrixd (m_matrix); }