2005-02-15 06:05:36 -05:00
|
|
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
|
|
|
|
|
|
|
#include <jni.h>
|
2004-09-09 19:51:16 -04:00
|
|
|
#include "extgl.h"
|
2005-02-15 06:05:36 -05:00
|
|
|
|
2005-03-16 06:47:24 -05:00
|
|
|
typedef void (APIENTRY *glShaderSourcePROC) (GLuint shader, GLsizei count, const GLchar ** string, const GLint* length);
|
2005-06-29 03:39:28 -04:00
|
|
|
typedef GLint (APIENTRY *glCreateShaderPROC) (GLuint type);
|
|
|
|
typedef GLboolean (APIENTRY *glIsShaderPROC) (GLuint shader);
|
|
|
|
typedef void (APIENTRY *glCompileShaderPROC) (GLuint shader);
|
|
|
|
typedef void (APIENTRY *glDeleteShaderPROC) (GLuint shader);
|
|
|
|
typedef GLint (APIENTRY *glCreateProgramPROC) ();
|
|
|
|
typedef GLboolean (APIENTRY *glIsProgramPROC) (GLint program);
|
|
|
|
typedef void (APIENTRY *glAttachShaderPROC) (GLuint program, GLuint shader);
|
|
|
|
typedef void (APIENTRY *glDetachShaderPROC) (GLuint program, GLuint shader);
|
|
|
|
typedef void (APIENTRY *glLinkProgramPROC) (GLuint program);
|
|
|
|
typedef void (APIENTRY *glUseProgramPROC) (GLuint program);
|
|
|
|
typedef void (APIENTRY *glValidateProgramPROC) (GLuint program);
|
|
|
|
typedef void (APIENTRY *glDeleteProgramPROC) (GLuint program);
|
|
|
|
typedef void (APIENTRY *glUniform1fPROC) (GLint location, GLfloat v0);
|
|
|
|
typedef void (APIENTRY *glUniform2fPROC) (GLint location, GLfloat v0, GLfloat v1);
|
|
|
|
typedef void (APIENTRY *glUniform3fPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
|
|
|
typedef void (APIENTRY *glUniform4fPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
|
|
|
typedef void (APIENTRY *glUniform1iPROC) (GLint location, GLint v0);
|
|
|
|
typedef void (APIENTRY *glUniform2iPROC) (GLint location, GLint v0, GLint v1);
|
|
|
|
typedef void (APIENTRY *glUniform3iPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
|
|
|
typedef void (APIENTRY *glUniform4iPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
|
|
|
typedef void (APIENTRY *glUniform1fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
|
|
|
typedef void (APIENTRY *glUniform2fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
|
|
|
typedef void (APIENTRY *glUniform3fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
|
|
|
typedef void (APIENTRY *glUniform4fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
|
|
|
typedef void (APIENTRY *glUniform1ivPROC) (GLint location, GLsizei count, GLint * values);
|
|
|
|
typedef void (APIENTRY *glUniform2ivPROC) (GLint location, GLsizei count, GLint * values);
|
|
|
|
typedef void (APIENTRY *glUniform3ivPROC) (GLint location, GLsizei count, GLint * values);
|
|
|
|
typedef void (APIENTRY *glUniform4ivPROC) (GLint location, GLsizei count, GLint * values);
|
|
|
|
typedef void (APIENTRY *glUniformMatrix2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
|
|
|
typedef void (APIENTRY *glUniformMatrix3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
|
|
|
typedef void (APIENTRY *glUniformMatrix4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
|
|
|
typedef void (APIENTRY *glGetShaderivPROC) (GLuint shader, GLenum pname, GLint * params);
|
|
|
|
typedef void (APIENTRY *glGetProgramivPROC) (GLuint program, GLenum pname, GLint * params);
|
|
|
|
typedef void (APIENTRY *glGetShaderInfoLogPROC) (GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * infoLog);
|
|
|
|
typedef void (APIENTRY *glGetProgramInfoLogPROC) (GLuint program, GLsizei maxLength, GLsizei * length, GLchar * infoLog);
|
|
|
|
typedef void (APIENTRY *glGetAttachedShadersPROC) (GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders);
|
|
|
|
typedef GLint (APIENTRY *glGetUniformLocationPROC) (GLuint program, const GLchar * name);
|
|
|
|
typedef void (APIENTRY *glGetActiveUniformPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
|
|
|
|
typedef void (APIENTRY *glGetUniformfvPROC) (GLuint program, GLint location, GLfloat * params);
|
|
|
|
typedef void (APIENTRY *glGetUniformivPROC) (GLuint program, GLint location, GLint * params);
|
|
|
|
typedef void (APIENTRY *glGetShaderSourcePROC) (GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * source);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib1sPROC) (GLuint index, GLshort x);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib1fPROC) (GLuint index, GLfloat x);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib2sPROC) (GLuint index, GLshort x, GLshort y);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib2fPROC) (GLuint index, GLfloat x, GLfloat y);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib3sPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib3fPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib4sPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib4fPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
|
|
|
typedef void (APIENTRY *glVertexAttrib4NubPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
|
|
|
typedef void (APIENTRY *glVertexAttribPointerPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * buffer);
|
|
|
|
typedef void (APIENTRY *glEnableVertexAttribArrayPROC) (GLuint index);
|
|
|
|
typedef void (APIENTRY *glDisableVertexAttribArrayPROC) (GLuint index);
|
|
|
|
typedef void (APIENTRY *glGetVertexAttribfvPROC) (GLuint index, GLenum pname, GLfloat * params);
|
|
|
|
typedef void (APIENTRY *glGetVertexAttribivPROC) (GLuint index, GLenum pname, GLint * params);
|
|
|
|
typedef void (APIENTRY *glGetVertexAttribPointervPROC) (GLuint index, GLenum pname, GLvoid ** pointer);
|
|
|
|
typedef void (APIENTRY *glBindAttribLocationPROC) (GLuint program, GLuint index, const GLchar * name);
|
|
|
|
typedef void (APIENTRY *glGetActiveAttribPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, const GLchar * name);
|
|
|
|
typedef GLint (APIENTRY *glGetAttribLocationPROC) (GLuint program, const GLchar * name);
|
|
|
|
typedef void (APIENTRY *glDrawBuffersPROC) (GLsizei size, const GLenum * buffers);
|
|
|
|
typedef void (APIENTRY *glStencilOpSeparatePROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
|
|
|
typedef void (APIENTRY *glStencilFuncSeparatePROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
|
|
|
|
typedef void (APIENTRY *glStencilMaskSeparatePROC) (GLenum face, GLuint mask);
|
|
|
|
typedef void (APIENTRY *glBlendEquationSeparatePROC) (GLenum modeRGB, GLenum modeAlpha);
|
2005-02-15 06:05:36 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglShaderSource(JNIEnv *env, jclass clazz, jint shader, jint count, jobject string, jint string_position, jint length, jlong function_pointer) {
|
|
|
|
const GLchar *string_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, string)) + string_position;
|
|
|
|
glShaderSourcePROC glShaderSource = (glShaderSourcePROC)((intptr_t)function_pointer);
|
|
|
|
glShaderSource(shader, count, &string_address, &length);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglCreateShader(JNIEnv *env, jclass clazz, jint type, jlong function_pointer) {
|
|
|
|
glCreateShaderPROC glCreateShader = (glCreateShaderPROC)((intptr_t)function_pointer);
|
|
|
|
GLint __result = glCreateShader(type);
|
|
|
|
return __result;
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL20_nglIsShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
|
|
|
glIsShaderPROC glIsShader = (glIsShaderPROC)((intptr_t)function_pointer);
|
|
|
|
GLboolean __result = glIsShader(shader);
|
|
|
|
return __result;
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglCompileShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
|
|
|
glCompileShaderPROC glCompileShader = (glCompileShaderPROC)((intptr_t)function_pointer);
|
|
|
|
glCompileShader(shader);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDeleteShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
|
|
|
glDeleteShaderPROC glDeleteShader = (glDeleteShaderPROC)((intptr_t)function_pointer);
|
|
|
|
glDeleteShader(shader);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglCreateProgram(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
|
|
|
glCreateProgramPROC glCreateProgram = (glCreateProgramPROC)((intptr_t)function_pointer);
|
|
|
|
GLint __result = glCreateProgram();
|
2005-03-11 11:19:02 -05:00
|
|
|
return __result;
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL20_nglIsProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
|
|
|
glIsProgramPROC glIsProgram = (glIsProgramPROC)((intptr_t)function_pointer);
|
|
|
|
GLboolean __result = glIsProgram(program);
|
|
|
|
return __result;
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglAttachShader(JNIEnv *env, jclass clazz, jint program, jint shader, jlong function_pointer) {
|
|
|
|
glAttachShaderPROC glAttachShader = (glAttachShaderPROC)((intptr_t)function_pointer);
|
|
|
|
glAttachShader(program, shader);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDetachShader(JNIEnv *env, jclass clazz, jint program, jint shader, jlong function_pointer) {
|
|
|
|
glDetachShaderPROC glDetachShader = (glDetachShaderPROC)((intptr_t)function_pointer);
|
|
|
|
glDetachShader(program, shader);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglLinkProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
|
|
|
glLinkProgramPROC glLinkProgram = (glLinkProgramPROC)((intptr_t)function_pointer);
|
|
|
|
glLinkProgram(program);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUseProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
|
|
|
glUseProgramPROC glUseProgram = (glUseProgramPROC)((intptr_t)function_pointer);
|
|
|
|
glUseProgram(program);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglValidateProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
|
|
|
glValidateProgramPROC glValidateProgram = (glValidateProgramPROC)((intptr_t)function_pointer);
|
|
|
|
glValidateProgram(program);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDeleteProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
|
|
|
glDeleteProgramPROC glDeleteProgram = (glDeleteProgramPROC)((intptr_t)function_pointer);
|
|
|
|
glDeleteProgram(program);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jlong function_pointer) {
|
|
|
|
glUniform1fPROC glUniform1f = (glUniform1fPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform1f(location, v0);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jlong function_pointer) {
|
|
|
|
glUniform2fPROC glUniform2f = (glUniform2fPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform2f(location, v0, v1);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jlong function_pointer) {
|
|
|
|
glUniform3fPROC glUniform3f = (glUniform3fPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform3f(location, v0, v1, v2);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jfloat v3, jlong function_pointer) {
|
|
|
|
glUniform4fPROC glUniform4f = (glUniform4fPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform4f(location, v0, v1, v2, v3);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1i(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) {
|
|
|
|
glUniform1iPROC glUniform1i = (glUniform1iPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform1i(location, v0);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) {
|
|
|
|
glUniform2iPROC glUniform2i = (glUniform2iPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform2i(location, v0, v1);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) {
|
|
|
|
glUniform3iPROC glUniform3i = (glUniform3iPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform3i(location, v0, v1, v2);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) {
|
|
|
|
glUniform4iPROC glUniform4i = (glUniform4iPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform4i(location, v0, v1, v2, v3);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform1fvPROC glUniform1fv = (glUniform1fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform1fv(location, count, values_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform2fvPROC glUniform2fv = (glUniform2fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform2fv(location, count, values_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform3fvPROC glUniform3fv = (glUniform3fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform3fv(location, count, values_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform4fvPROC glUniform4fv = (glUniform4fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform4fv(location, count, values_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform1ivPROC glUniform1iv = (glUniform1ivPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform1iv(location, count, values_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform2ivPROC glUniform2iv = (glUniform2ivPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform2iv(location, count, values_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform3ivPROC glUniform3iv = (glUniform3ivPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform3iv(location, count, values_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
|
|
|
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
|
|
|
glUniform4ivPROC glUniform4iv = (glUniform4ivPROC)((intptr_t)function_pointer);
|
|
|
|
glUniform4iv(location, count, values_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
|
|
|
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
|
|
|
glUniformMatrix2fvPROC glUniformMatrix2fv = (glUniformMatrix2fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniformMatrix2fv(location, count, transpose, matrices_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
|
|
|
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
|
|
|
glUniformMatrix3fvPROC glUniformMatrix3fv = (glUniformMatrix3fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniformMatrix3fv(location, count, transpose, matrices_address);
|
|
|
|
}
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
|
|
|
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
|
|
|
glUniformMatrix4fvPROC glUniformMatrix4fv = (glUniformMatrix4fvPROC)((intptr_t)function_pointer);
|
|
|
|
glUniformMatrix4fv(location, count, transpose, matrices_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-03-16 06:47:24 -05:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderiv(JNIEnv *env, jclass clazz, jint shader, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
|
|
|
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
|
|
|
glGetShaderivPROC glGetShaderiv = (glGetShaderivPROC)((intptr_t)function_pointer);
|
|
|
|
glGetShaderiv(shader, pname, params_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetProgramiv(JNIEnv *env, jclass clazz, jint program, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
|
|
|
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
|
|
|
glGetProgramivPROC glGetProgramiv = (glGetProgramivPROC)((intptr_t)function_pointer);
|
|
|
|
glGetProgramiv(program, pname, params_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderInfoLog(JNIEnv *env, jclass clazz, jint shader, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
|
|
|
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
|
|
|
GLchar *infoLog_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
|
|
|
glGetShaderInfoLogPROC glGetShaderInfoLog = (glGetShaderInfoLogPROC)((intptr_t)function_pointer);
|
|
|
|
glGetShaderInfoLog(shader, maxLength, length_address, infoLog_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetProgramInfoLog(JNIEnv *env, jclass clazz, jint program, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
|
|
|
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
|
|
|
GLchar *infoLog_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
|
|
|
glGetProgramInfoLogPROC glGetProgramInfoLog = (glGetProgramInfoLogPROC)((intptr_t)function_pointer);
|
|
|
|
glGetProgramInfoLog(program, maxLength, length_address, infoLog_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetAttachedShaders(JNIEnv *env, jclass clazz, jint program, jint maxCount, jobject count, jint count_position, jobject shaders, jint shaders_position, jlong function_pointer) {
|
|
|
|
GLsizei *count_address = ((GLsizei *)safeGetBufferAddress(env, count)) + count_position;
|
|
|
|
GLuint *shaders_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, shaders)) + shaders_position;
|
|
|
|
glGetAttachedShadersPROC glGetAttachedShaders = (glGetAttachedShadersPROC)((intptr_t)function_pointer);
|
|
|
|
glGetAttachedShaders(program, maxCount, count_address, shaders_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformLocation(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
|
|
|
|
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
|
|
|
glGetUniformLocationPROC glGetUniformLocation = (glGetUniformLocationPROC)((intptr_t)function_pointer);
|
|
|
|
GLint __result = glGetUniformLocation(program, name_address);
|
|
|
|
return __result;
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetActiveUniform(JNIEnv *env, jclass clazz, jint program, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
|
|
|
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
|
|
|
GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
|
|
|
|
GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
|
|
|
|
GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
|
|
|
glGetActiveUniformPROC glGetActiveUniform = (glGetActiveUniformPROC)((intptr_t)function_pointer);
|
|
|
|
glGetActiveUniform(program, index, maxLength, length_address, size_address, type_address, name_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformfv(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) {
|
|
|
|
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
|
|
|
glGetUniformfvPROC glGetUniformfv = (glGetUniformfvPROC)((intptr_t)function_pointer);
|
|
|
|
glGetUniformfv(program, location, params_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformiv(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) {
|
|
|
|
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
|
|
|
glGetUniformivPROC glGetUniformiv = (glGetUniformivPROC)((intptr_t)function_pointer);
|
|
|
|
glGetUniformiv(program, location, params_address);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderSource(JNIEnv *env, jclass clazz, jint shader, jint maxLength, jobject length, jint length_position, jobject source, jint source_position, jlong function_pointer) {
|
|
|
|
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
|
|
|
GLchar *source_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, source)) + source_position;
|
|
|
|
glGetShaderSourcePROC glGetShaderSource = (glGetShaderSourcePROC)((intptr_t)function_pointer);
|
|
|
|
glGetShaderSource(shader, maxLength, length_address, source_address);
|
2005-01-15 18:50:55 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib1s(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
|
|
|
glVertexAttrib1sPROC glVertexAttrib1s = (glVertexAttrib1sPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib1s(index, x);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
2005-01-15 18:50:55 -05:00
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib1f(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
|
|
|
glVertexAttrib1fPROC glVertexAttrib1f = (glVertexAttrib1fPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib1f(index, x);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
|
|
|
glVertexAttrib2sPROC glVertexAttrib2s = (glVertexAttrib2sPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib2s(index, x, y);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
|
|
|
glVertexAttrib2fPROC glVertexAttrib2f = (glVertexAttrib2fPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib2f(index, x, y);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib3s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
|
|
|
glVertexAttrib3sPROC glVertexAttrib3s = (glVertexAttrib3sPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib3s(index, x, y, z);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib3f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
|
|
|
glVertexAttrib3fPROC glVertexAttrib3f = (glVertexAttrib3fPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib3f(index, x, y, z);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
|
|
|
glVertexAttrib4sPROC glVertexAttrib4s = (glVertexAttrib4sPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib4s(index, x, y, z, w);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
|
|
|
glVertexAttrib4fPROC glVertexAttrib4f = (glVertexAttrib4fPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib4f(index, x, y, z, w);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4Nub(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
|
|
|
glVertexAttrib4NubPROC glVertexAttrib4Nub = (glVertexAttrib4NubPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttrib4Nub(index, x, y, z, w);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttribPointer(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jobject buffer, jint buffer_position, jlong function_pointer) {
|
|
|
|
const GLvoid *buffer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, buffer)) + buffer_position));
|
|
|
|
glVertexAttribPointerPROC glVertexAttribPointer = (glVertexAttribPointerPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttribPointer(index, size, type, normalized, stride, buffer_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttribPointerBO(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer_buffer_offset, jlong function_pointer) {
|
|
|
|
const GLvoid *buffer_address = ((const GLvoid *)offsetToPointer(buffer_buffer_offset));
|
|
|
|
glVertexAttribPointerPROC glVertexAttribPointer = (glVertexAttribPointerPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexAttribPointer(index, size, type, normalized, stride, buffer_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglEnableVertexAttribArray(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
|
|
|
glEnableVertexAttribArrayPROC glEnableVertexAttribArray = (glEnableVertexAttribArrayPROC)((intptr_t)function_pointer);
|
|
|
|
glEnableVertexAttribArray(index);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDisableVertexAttribArray(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
|
|
|
glDisableVertexAttribArrayPROC glDisableVertexAttribArray = (glDisableVertexAttribArrayPROC)((intptr_t)function_pointer);
|
|
|
|
glDisableVertexAttribArray(index);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribfv(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
|
|
|
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
|
|
|
glGetVertexAttribfvPROC glGetVertexAttribfv = (glGetVertexAttribfvPROC)((intptr_t)function_pointer);
|
|
|
|
glGetVertexAttribfv(index, pname, params_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribiv(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
|
|
|
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
|
|
|
glGetVertexAttribivPROC glGetVertexAttribiv = (glGetVertexAttribivPROC)((intptr_t)function_pointer);
|
|
|
|
glGetVertexAttribiv(index, pname, params_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribPointerv(JNIEnv *env, jclass clazz, jint index, jint pname, jint result_size, jlong function_pointer) {
|
|
|
|
glGetVertexAttribPointervPROC glGetVertexAttribPointerv = (glGetVertexAttribPointervPROC)((intptr_t)function_pointer);
|
|
|
|
GLvoid * __result;
|
|
|
|
glGetVertexAttribPointerv(index, pname, &__result);
|
|
|
|
return safeNewBuffer(env, __result, result_size);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglBindAttribLocation(JNIEnv *env, jclass clazz, jint program, jint index, jobject name, jint name_position, jlong function_pointer) {
|
|
|
|
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
|
|
|
glBindAttribLocationPROC glBindAttribLocation = (glBindAttribLocationPROC)((intptr_t)function_pointer);
|
|
|
|
glBindAttribLocation(program, index, name_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetActiveAttrib(JNIEnv *env, jclass clazz, jint program, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
|
|
|
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
|
|
|
GLint *size_address = ((GLint *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
|
|
|
|
GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
|
|
|
|
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
|
|
|
glGetActiveAttribPROC glGetActiveAttrib = (glGetActiveAttribPROC)((intptr_t)function_pointer);
|
|
|
|
glGetActiveAttrib(program, index, maxLength, length_address, size_address, type_address, name_address);
|
|
|
|
}
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglGetAttribLocation(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
|
|
|
|
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
|
|
|
glGetAttribLocationPROC glGetAttribLocation = (glGetAttribLocationPROC)((intptr_t)function_pointer);
|
|
|
|
GLint __result = glGetAttribLocation(program, name_address);
|
2005-03-16 06:47:24 -05:00
|
|
|
return __result;
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDrawBuffers(JNIEnv *env, jclass clazz, jint size, jobject buffers, jint buffers_position, jlong function_pointer) {
|
|
|
|
const GLenum *buffers_address = ((const GLenum *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
|
|
|
glDrawBuffersPROC glDrawBuffers = (glDrawBuffersPROC)((intptr_t)function_pointer);
|
|
|
|
glDrawBuffers(size, buffers_address);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilOpSeparate(JNIEnv *env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass, jlong function_pointer) {
|
|
|
|
glStencilOpSeparatePROC glStencilOpSeparate = (glStencilOpSeparatePROC)((intptr_t)function_pointer);
|
|
|
|
glStencilOpSeparate(face, sfail, dpfail, dppass);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilFuncSeparate(JNIEnv *env, jclass clazz, jint face, jint func, jint ref, jint mask, jlong function_pointer) {
|
|
|
|
glStencilFuncSeparatePROC glStencilFuncSeparate = (glStencilFuncSeparatePROC)((intptr_t)function_pointer);
|
|
|
|
glStencilFuncSeparate(face, func, ref, mask);
|
2005-02-15 06:05:36 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilMaskSeparate(JNIEnv *env, jclass clazz, jint face, jint mask, jlong function_pointer) {
|
|
|
|
glStencilMaskSeparatePROC glStencilMaskSeparate = (glStencilMaskSeparatePROC)((intptr_t)function_pointer);
|
|
|
|
glStencilMaskSeparate(face, mask);
|
2005-03-16 06:47:24 -05:00
|
|
|
}
|
|
|
|
|
2005-06-29 03:39:28 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglBlendEquationSeparate(JNIEnv *env, jclass clazz, jint modeRGB, jint modeAlpha, jlong function_pointer) {
|
|
|
|
glBlendEquationSeparatePROC glBlendEquationSeparate = (glBlendEquationSeparatePROC)((intptr_t)function_pointer);
|
|
|
|
glBlendEquationSeparate(modeRGB, modeAlpha);
|
2004-09-09 19:51:16 -04:00
|
|
|
}
|
|
|
|
|