/[gzz]/gzz/gfx/jni/GzzGL-jni.cxx
ViewVC logotype

Diff of /gzz/gfx/jni/GzzGL-jni.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.72 by tjl, Fri Dec 13 12:16:06 2002 UTC revision 1.73 by tjl, Sat Dec 14 08:11:34 2002 UTC
# Line 1166  JNIEXPORT jfloatArray JNICALL Java_gzz_g Line 1166  JNIEXPORT jfloatArray JNICALL Java_gzz_g
1166        return result;        return result;
1167  }  }
1168    
1169    JNIEXPORT jfloatArray JNICALL Java_gzz_gfx_gl_GL_getGLProgram
1170      (JNIEnv *env, jclass, jstring j_target, jstring j_name) {
1171          std::string target = jstr2stdstr(env, j_target);
1172          std::string name = jstr2stdstr(env, j_name);
1173          vector<float> vec = CallGL::getProgram(target.c_str(), name.c_str()) ;
1174          jfloatArray result = env->NewFloatArray(vec.size());
1175          env->SetFloatArrayRegion(result, 0, vec.size(), &vec[0]);
1176          return result;
1177    }
1178    
1179  JNIEXPORT jfloatArray JNICALL Java_gzz_gfx_gl_GL_getGLTexParameterFloat  JNIEXPORT jfloatArray JNICALL Java_gzz_gfx_gl_GL_getGLTexParameterFloat
1180    (JNIEnv *env, jclass, jstring target, jint tex, jstring name) {    (JNIEnv *env, jclass, jstring target, jint tex, jstring name) {
1181        std::string utf_target = jstr2stdstr(env, target);        std::string utf_target = jstr2stdstr(env, target);

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26