I've been working on the OpenGL code for some days now and still have problems with the correct initialization of Smalltalk windows and rendering contexts etc.
I created a new subclass of CwDrawingArea. The idea was, that the content of the OpenGL output should be rendered into instances of this subclass. As I understand each widget has its own window (nder Windows) and one must register a new window class with the following styles: CS_HREDRAW | CS_VREDRAW | CD_OWNDC. How can that be done under VASmalltalk ?
When opening the window the window itselfs should have some options like CLIPCHILDREN and CLIPSIBLINGS ... whats the correct way here to do it right. I've found all of the stuff somewhere in the images - but I do not get the overall picture ?!
Actually I managed to get the rendering output into my subclass of CwDrawingArea (but actually only some part of it) - but I do not get all events needed to redraw the widget correctly - and whenever I start the image the first time my code runs it fails completely ...
Any idea or help possible ?
Marten