/[libvob]/libvob/src/jni/Main.cxx
ViewVC logotype

Diff of /libvob/src/jni/Main.cxx

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

revision 1.17 by tjl, Mon Jun 16 16:16:30 2003 UTC revision 1.18 by tjl, Sat Jun 28 14:35:39 2003 UTC
# Line 418  bool hasGenMipmaps() { Line 418  bool hasGenMipmaps() {
418  }  }
419    
420  jf(void, impl_1Texture_1loadNull2D)  jf(void, impl_1Texture_1loadNull2D)
421    (JNIEnv *env, jclass, jint id, jint level, jstring internalFormat_s,    (JNIEnv *env, jclass, jint id,
422         jstring target_s, jint level, jstring internalFormat_s,
423      jint w, jint h, jint border, jstring format_s, jstring type_s) {      jint w, jint h, jint border, jstring format_s, jstring type_s) {
424        int target = tokenFromJstring(env, target_s);
425      int internalFormat = tokenFromJstring(env, internalFormat_s);      int internalFormat = tokenFromJstring(env, internalFormat_s);
426      int format = tokenFromJstring(env, format_s);      int format = tokenFromJstring(env, format_s);
427      int type = tokenFromJstring(env, type_s);      int type = tokenFromJstring(env, type_s);
428    
429      glBindTexture(GL_TEXTURE_2D, id);      glBindTexture(target, id);
430      // Null = just set size and texture format.      // Null = just set size and texture format.
431      glTexImage2D(GL_TEXTURE_2D,      glTexImage2D(target,
432                  level, internalFormat, w, h, border, format, type, NULL);                  level, internalFormat, w, h, border, format, type, NULL);
433      glBindTexture(GL_TEXTURE_2D, 0);      glBindTexture(target, 0);
434      GLERR      GLERR
435    }    }
436    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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