DEAR PAULSISK,
is this your name ?
I do cc this response to the gl4java mailinglist.
Bug- and Problem Protocol
==========================
If sombody has a bug / problem,
please send a compileable piece (100-200 lines) of code,
which documents your problem !
Also send some information about the version (GL4Java, OS, OpenGL
renderer, ...) !
debugging gljswap
==================
Well, "GLContext.gljSwap" calls its native method
"GLContext.gljSwapNative" which is defined
e.g. in "CNativeCode/OpenGL_X11.c" or "CNativeCode/OpenGL_Win32.c" !
This function just calls glxSwapBuffers, or SwapBuffers, etc..
To be able to call "gljSwap", you must own a valid GLContext.
Please look into the demos and the docus (latex/html docu&java-api).
Example:
========
public void display()
{
if(glj.gljMakeCurrent(true) == false)
{
return ; // error
}
/* your render stuff for one frame */
glj.gljSwap();
glj.gljFree();
}
paulsisk wrote:
>
> I am developing an application using your gl4java package. In one module
> i have the code working, but the other module is crashing on a call to
> gljswap. I was wondering how I may debug through the source code of
> gljswap. I downloaded the src code, but I cannot figure out how gljswap
> was implemented. Any help you could provide would be appreciated.
>
> thank you,
>
> paulsisk
> email-> pau...@bi...
--
mailto:sgo...@ja...
www: http://www.jausoft.com
voice: +49-521-2399440, +49-170-2115963; fax: +49-521-2399442
|