void glRasterPos3f(GLfloat x, GLfloat y, GLfloat z) { ERROR_IN_BLOCK(); PUSH_IF_COMPILING(glRasterPos3f); PROXY_GLES(glRasterPos3f); GLfloat v[3] = {x, y, z}; gl_transform_vertex(v, v); init_raster(); viewport_state_t *vs = &state.viewport; v[0] = (((v[0] + 1.0f) * 0.5f) * vs->width) + vs->x; v[1] = (((-v[1] + 1.0f) * 0.5f) * vs->height) + vs->y; // TODO: deal with Z glWindowPos3f(v[0], v[1], v[2]); }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos3f(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jfloat z, jlong function_pointer) { glWindowPos3fPROC glWindowPos3f = (glWindowPos3fPROC)((intptr_t)function_pointer); glWindowPos3f(x, y, z); }