[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz ./TODO gfx/jni/GzzGL-jni.cxx gfx/librendera...
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz ./TODO gfx/jni/GzzGL-jni.cxx gfx/librendera... |
Date: |
Tue, 17 Sep 2002 01:48:40 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/09/17 01:48:39
Modified files:
. : TODO
gfx/jni : GzzGL-jni.cxx
gfx/librenderables: renderables.py
Log message:
Add methods to get size for Image.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.107&tr2=1.108&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/jni/GzzGL-jni.cxx.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/librenderables/renderables.py.diff?tr1=1.34&tr2=1.35&r1=text&r2=text
Patches:
Index: gzz/TODO
diff -c gzz/TODO:1.107 gzz/TODO:1.108
*** gzz/TODO:1.107 Mon Sep 16 10:35:04 2002
--- gzz/TODO Tue Sep 17 01:48:39 2002
***************
*** 109,114 ****
--- 109,116 ----
- Buoy placement
- implement in Java, test
anybody:
+ - performance enhancements:
+ - different internalformats for TexRects
- primitive uis to edit enough structure of xanalogical text and
pdf spans, as well as connections so that we can build the
focus+context structure
Index: gzz/gfx/jni/GzzGL-jni.cxx
diff -c gzz/gfx/jni/GzzGL-jni.cxx:1.16 gzz/gfx/jni/GzzGL-jni.cxx:1.17
*** gzz/gfx/jni/GzzGL-jni.cxx:1.16 Thu Sep 12 11:42:23 2002
--- gzz/gfx/jni/GzzGL-jni.cxx Tue Sep 17 01:48:39 2002
***************
*** 305,310 ****
--- 305,319 ----
images.remove(img);
}
+ JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GZZGL_getImageSize
+ (JNIEnv *, jclass, jint img, jint dimNo) {
+ Image *i = images[img];
+ if(dimNo == 0)
+ return i->w;
+ else
+ return i->h;
+ }
+
// TexRect
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GZZGL_createTexRectImpl
Index: gzz/gfx/librenderables/renderables.py
diff -c gzz/gfx/librenderables/renderables.py:1.34
gzz/gfx/librenderables/renderables.py:1.35
*** gzz/gfx/librenderables/renderables.py:1.34 Mon Sep 16 12:35:15 2002
--- gzz/gfx/librenderables/renderables.py Tue Sep 17 01:48:39 2002
***************
*** 1295,1300 ****
--- 1295,1301 ----
static public class Image extends NonRenderableJavaObject {
private Image(int id) { super(id); }
protected void deleteObj() { deleteImage(getId()); }
+ int getSize(int dimNo) { return getImageSize(getId(), dimNo); }
}
/** THIS METHOD IS A SEVERE SECURITY HOLE AND WILL BE REMOVED.
***************
*** 1306,1311 ****
--- 1307,1313 ----
}
static private native int createImageImpl(String filename);
static private native void deleteImage(int i);
+ static private native int getImageSize(int id, int dimNo);
//--------- GdkPixbufLoader
static public class ImageLoader extends NonRenderableJavaObject {
- [Gzz-commits] gzz ./TODO gfx/jni/GzzGL-jni.cxx gfx/librendera...,
Tuomas J. Lukka <=