diff options
Diffstat (limited to 'gl4java/utils')
-rw-r--r-- | gl4java/utils/textures/TextureGrabber.java | 4 | ||||
-rw-r--r-- | gl4java/utils/textures/TextureLoader.java | 4 | ||||
-rwxr-xr-x | gl4java/utils/textures/TextureTool.java | 11 |
3 files changed, 14 insertions, 5 deletions
diff --git a/gl4java/utils/textures/TextureGrabber.java b/gl4java/utils/textures/TextureGrabber.java index d7d3bff..0c0c741 100644 --- a/gl4java/utils/textures/TextureGrabber.java +++ b/gl4java/utils/textures/TextureGrabber.java @@ -11,8 +11,8 @@ import java.net.*; * The TextureGrabber's implementations are used to * save the pixels of the GL Context to a file ! * - * @see TextureTool - * @see GLImageCanvas + * @see gl4java.utils.textures.TextureTool + * @see gl4java.awt.GLImageCanvas */ public abstract class TextureGrabber implements GLEnum, GLUEnum diff --git a/gl4java/utils/textures/TextureLoader.java b/gl4java/utils/textures/TextureLoader.java index 36a8cfe..92f9536 100644 --- a/gl4java/utils/textures/TextureLoader.java +++ b/gl4java/utils/textures/TextureLoader.java @@ -14,8 +14,8 @@ import java.net.*; * This abstract Class defines the interface
* for ALL texture loaders !
*
- * @see TextureTool
- * @see GLImageCanvas
+ * @see gl4java.utils.textures.TextureTool
+ * @see gl4java.awt.GLImageCanvas
*/
public abstract class TextureLoader
extends TextureTool
diff --git a/gl4java/utils/textures/TextureTool.java b/gl4java/utils/textures/TextureTool.java index a842d1f..574299a 100755 --- a/gl4java/utils/textures/TextureTool.java +++ b/gl4java/utils/textures/TextureTool.java @@ -13,7 +13,8 @@ import java.net.*; * This Class implements basic functions, * which are used by all TextureLoader implementations ! * - * @see TextureLoader + * @see gl4java.utils.textures.TextureTool + * @see gl4java.awt.GLImageCanvas */ public abstract class TextureTool implements GLEnum, GLUEnum @@ -156,6 +157,12 @@ implements GLEnum, GLUEnum } while (format[0]==0 && /* format[0]!=glFormat && */ textWidth>1 && textHeight>1); + if(format[0]==0) + { + System.out.println("GL-ERROR: text size cannot be negotiated !\n"); + error=true; + } + } /** @@ -241,6 +248,7 @@ implements GLEnum, GLUEnum { // glu failure error=true; + System.out.println("GL-ERROR: cannot gluScaleImage !\n"); } else { pixel = buffer; } @@ -365,6 +373,7 @@ implements GLEnum, GLUEnum { // glu failure error=true; + System.out.println("GL-ERROR: cannot gluScaleImage !\n"); } else { pixel = buffer; imageWidth=w; |