gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz gfx/demo/fillets.py gfx/jni/GzzGL-jni.cxx g...


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz gfx/demo/fillets.py gfx/jni/GzzGL-jni.cxx g...
Date: Fri, 04 Oct 2002 18:16:35 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/10/04 18:16:35

Modified files:
        gfx/demo       : fillets.py 
        gfx/jni        : GzzGL-jni.cxx 
        gzz/gfx/gl     : GL.java 

Log message:
        Making movies...

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/fillets.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/jni/GzzGL-jni.cxx.diff?tr1=1.42&tr2=1.43&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/gfx/gl/GL.java.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: gzz/gfx/demo/fillets.py
diff -c gzz/gfx/demo/fillets.py:1.7 gzz/gfx/demo/fillets.py:1.8
*** gzz/gfx/demo/fillets.py:1.7 Tue Oct  1 02:22:54 2002
--- gzz/gfx/demo/fillets.py     Fri Oct  4 18:16:34 2002
***************
*** 8,13 ****
--- 8,16 ----
  from gzz.media.impl import *
  import gzz
  
+ from gfx.libutil import saveanim
+ reload(saveanim)
+ 
  red = (1, 0.2, 0.2)
  green = (0.2, 1, 0.2)
  whitish = (1,1,0.9)
***************
*** 564,569 ****
--- 567,580 ----
        global currentScene
        currentScene = scenes[ord(k)-ord('1')]
        return 1
+     if k == "0":
+       sc = AlphaBlendScene2()
+       vs1 = w.createVobScene()
+       vs2 = w.createVobScene()
+       sc.scene(vs1)
+       sc.key("p")
+       sc.scene(vs2)
+       saveanim.savesequence(w, "/tmp/anim", vs1, vs2, 20)
      return 0
  
  currentScene = scenes[0]
Index: gzz/gfx/jni/GzzGL-jni.cxx
diff -c gzz/gfx/jni/GzzGL-jni.cxx:1.42 gzz/gfx/jni/GzzGL-jni.cxx:1.43
*** gzz/gfx/jni/GzzGL-jni.cxx:1.42      Wed Oct  2 07:43:44 2002
--- gzz/gfx/jni/GzzGL-jni.cxx   Fri Oct  4 18:16:34 2002
***************
*** 786,794 ****
      releaseWindow();
  }
  
! JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_impl_1ByteVector_1get
   (JNIEnv *env, jclass, jint id, jint ind) {
      return (*bytevectors[id])[ind];
  }
  
  
--- 786,802 ----
      releaseWindow();
  }
  
! JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_impl_1ByteVector_1get__II
   (JNIEnv *env, jclass, jint id, jint ind) {
      return (*bytevectors[id])[ind];
+ }
+ 
+ JNIEXPORT jbyteArray JNICALL Java_gzz_gfx_gl_GL_impl_1ByteVector_1get__I
+   (JNIEnv *env, jclass, jint id) {
+     int len = bytevectors[id]->size();
+     jbyteArray arr = env->NewByteArray(len);
+     env->SetByteArrayRegion(arr, 0, len, (jbyte*) &(*(bytevectors[id]))[0]);
+     return arr;
  }
  
  
Index: gzz/gzz/gfx/gl/GL.java
diff -c gzz/gzz/gfx/gl/GL.java:1.9 gzz/gzz/gfx/gl/GL.java:1.10
*** gzz/gzz/gfx/gl/GL.java:1.9  Wed Oct  2 07:43:44 2002
--- gzz/gzz/gfx/gl/GL.java      Fri Oct  4 18:16:34 2002
***************
*** 573,578 ****
--- 573,581 ----
            impl_ByteVector_readFromBuffer_ubytes(getId(), win.getId(),
                buffer, x, y, width, height, format);
        }
+       public byte[] get() {
+           return impl_ByteVector_get(getId());
+       }
  
      }
      static public ByteVector createByteVector() {
***************
*** 589,594 ****
--- 592,598 ----
            int x, int y, int width, int height, 
            String format) ;
      static private native int impl_ByteVector_get(int id, int ind);
+     static private native byte[] impl_ByteVector_get(int id);
  
  //----------Misc
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]