From: Max G. <gi...@li...> - 2002-05-30 22:04:42
|
zoe wrote: >1. Is the buffer of GL4Java compactible with the buffer of opengl(c++)?? >Though GL4Java is developed from opengl, i don't know do the buffers can be >shared?? By my concept, Java's memory is on the Virtual Machine; C++'s >memory is OS dependent. > Anyone? Sven? IMHO it is very interesting question. I suppose that it should be possible to reuse opengl context by both native and java code (after all gl4java calls native library) but I think someone who really knows gl4j guts should speak up :-) >3.Moreover, on the nehe web site. I found that the tutorial lesson17-draw >textured font. Could I drawing the textured font with GL4Java??? such as >using glTexParameteri(), glGenLists() , glGenLists().... > Sure, why not? These are normal OpenGL commands so they're perfectly useable with GL4Java. >4. I am thinking, haven't make any decision. Should I use glFont lib as JNI >?? info got form:http://students.cs.byu.edu/~bfish/glfont2.php > I have not checked it in detail but Java has got nice true type font support and I am wondering if it wouldn't be just simpler to write a Java implementation of such library instead of messing with JNI. HTH, Max |