From: Kenneth B. R. <kbr...@al...> - 2001-12-17 15:56:53
|
> I have a class that extends GLCanvas, and I have the functions related with > tha canvas, > preinit, init, display, ... > > With GLDrawableFactory I can create a GLCanvas, but how can I use the > functions of my class, > that extends GLCanvas, there are any examples of use? You put that functionality into a class implementing GLEventListener instead and set the GLEventListener of the GLDrawable. See demos/new-style.txt and demos/MiscDemos/gears.java for an example. |