From: Elias N. <eli...@us...> - 2005-04-30 15:38:22
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3755 Modified Files: AWTGLCanvas.java Log Message: Corrected AWTGLCanvas documentation Index: AWTGLCanvas.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- AWTGLCanvas.java 9 Apr 2005 17:35:37 -0000 1.11 +++ AWTGLCanvas.java 30 Apr 2005 15:37:42 -0000 1.12 @@ -192,7 +192,7 @@ /** * Make the canvas' context current. It is highly recommended that the context - * is only made current inside the AWT thread (for example in an overridden paint()). + * is only made current inside the AWT thread (for example in an overridden paintGL()). */ public synchronized void makeCurrent() throws LWJGLException { if (context == null) @@ -222,6 +222,10 @@ protected void paintGL() { } + /** + * The default paint() operation makes the context current and calls paintGL() which should + * be overridden to do GL operations. + */ public final void paint(Graphics g) { try { if (peer_info == null) |