> I haven’t used nor looked into OpenGL stuff still, but I’m right, jogl.jar is 
> not packaged, and only used by examples, into any jar.
>
> So, what is the actual problem?

The problem is how to get an OpenGL 3 context--I'd settle for 2.0--in
a QGLWidget with or without using JOGL.  All the examples use JOGL.

Here's an example.  In OpenGL I want to do the most basic of
functionality.  I want to clear the screen with a certain color.

glClearColor(1,0,0,0); // set clear color to red
glClear(GL_COLOR_BUFFER_BIT); // clear the color buffer with the supplied color

In C++ these functions are imported by a separate OpenGL library.  In
pyqt similarly, I have to actually import PyQt4.QtOpenGL to get the
QGLWidget and OpenGL.GL to get the OpenGL calls.  So where in QtJambi
are these functions?  QGLWidget doesn't do much good without them.  I
can't clear the screen or do any drawing at all.  It makes QGLWidget
totally worthless without these calls so even though it's packaged
with QtJambi, it's not complete just as it works in C++ and pyqt.

My thoughts on this are QGLWidget simply creates a widget that asks
the driver for a context and that's it.  Then it's up to whatever
library inside the code to ask for that context and and run OpenGL
from there.  I'm just wondering how/if people are actually getting GL3
contexts using QtJambi and if so, how.

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to