JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeedback_nglGetActiveVaryingNV__IIIJJJJ(JNIEnv *__env, jclass clazz, jint program, jint index, jint bufSize, jlong lengthAddress, jlong sizeAddress, jlong typeAddress, jlong nameAddress) { glGetActiveVaryingNVPROC glGetActiveVaryingNV = (glGetActiveVaryingNVPROC)tlsGetFunction(2153); intptr_t length = (intptr_t)lengthAddress; intptr_t size = (intptr_t)sizeAddress; intptr_t type = (intptr_t)typeAddress; intptr_t name = (intptr_t)nameAddress; UNUSED_PARAM(clazz) glGetActiveVaryingNV(program, index, bufSize, length, size, type, name); }
//##ModelId=4C32B3E6038A fluid::glExtension::btGLVaryingInfo fluid::glExtension::btGLTransformFeedback::getVaryingInfo(btGLShaderModel_4_0 *program, GLuint index) { if(varyingInfo.name != NULL) free(varyingInfo.name); GLint maxLen; glGetProgramiv(cgGLGetProgramID(program->vertexShader),GL_ACTIVE_VARYING_MAX_LENGTH_NV,&maxLen); varyingInfo.name=(char*)malloc(maxLen+1); glGetActiveVaryingNV(cgGLGetProgramID(program->vertexShader), index, maxLen, &(varyingInfo.length), &(varyingInfo.size), &(varyingInfo.type), (varyingInfo.name)); return varyingInfo; }