/[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.19 by tjl, Tue Sep 17 09:23:23 2002 UTC revision 1.20 by deetsay, Wed Sep 18 08:04:05 2002 UTC
# Line 42  struct RealFont { Line 42  struct RealFont {
42    
43  ObjectStorer<Os::Window> windows;  ObjectStorer<Os::Window> windows;
44  ObjectStorer<Image> images;  ObjectStorer<Image> images;
 ObjectStorer<GdkPixbufLoader> gdkpixbufloaders;  
45  ObjectStorer<Mosaic::MosaicTile> imagetiles;  ObjectStorer<Mosaic::MosaicTile> imagetiles;
46  ObjectStorer<RealFont> fonts;  ObjectStorer<RealFont> fonts;
47  ObjectStorer<Renderable0> renderable0s;  ObjectStorer<Renderable0> renderable0s;
# Line 272  JNIEXPORT void JNICALL Java_gzz_gfx_gl_G Line 271  JNIEXPORT void JNICALL Java_gzz_gfx_gl_G
271        w->addTimeout(ms, tid);        w->addTimeout(ms, tid);
272    }    }
273    
274  // GdkPixbufLoader  // ImageCache
275    
276  JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GZZGL_createImageLoaderImpl  JNIEXPORT void JNICALL Java_gzz_gfx_gl_GZZGL_getImage
277    (JNIEnv *env, jclass) {    (JNIEnv *env, jclass, jstring juri, jint lod) {
278        GdkPixbufLoader *ldr = gdk_pixbuf_loader_new();      string uri = new string((*env)->GetStringUTFChars(env, jstr, 0));
279        return gdkpixbufloaders.add(ldr);      (*env)->ReleaseStringUTFChars(env, jstr, str);
280    }      imageCache->getPixbuf();
   
 JNIEXPORT void JNICALL Java_gzz_gfx_gl_GZZGL_deleteImageLoader  
   (JNIEnv *, jclass, jint i) {  
       gdkpixbufloaders.remove(i);  
   }  
   
 JNIEXPORT void JNICALL Java_gzz_gfx_gl_GZZGL_imageLoaderWrite  
   (JNIEnv *, jclass, jint i, jbyteArray buf, jint len) {  
       gdk_pixbuf_loader_write(gdkpixbufloaders.get(i), (guchar *)buf, len);  
281    }    }
282    
283  // Image  // Image

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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