001: /*
002: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
004: *
005: * This program is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU General Public License version
007: * 2 only, as published by the Free Software Foundation.
008: *
009: * This program is distributed in the hope that it will be useful, but
010: * WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * General Public License version 2 for more details (a copy is
013: * included at /legal/license.txt).
014: *
015: * You should have received a copy of the GNU General Public License
016: * version 2 along with this work; if not, write to the Free Software
017: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
018: * 02110-1301 USA
019: *
020: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
021: * Clara, CA 95054 or visit www.sun.com if you need additional
022: * information or have any questions.
023: */
024:
025: package com.sun.jsr239;
026:
027: public final class Errors {
028:
029: // EGL Errors
030:
031: public static final String EGL_DISPLAY_NOT_EGL_DEFAULT_DISPLAY = "display != EGL.EGL_DEFAULT_DISPLAY";
032:
033: public static final String EGL_DISPLAY_NULL = "display == null";
034:
035: public static final String EGL_PIXMAP_OUT_OF_MEMORY = "operation failed due to out of memory error";
036:
037: public static final String EGL_MAJOR_MINOR_SHORT = "major_minor != null && major_minor.length < 2";
038:
039: public static final String EGL_CONFIG_SHORT = "configs != null && configs.length < config_size";
040:
041: public static final String EGL_NUM_CONFIG_SHORT = "num_config != null && num_config.length < 1";
042:
043: public static final String EGL_ATTRIBS_NOT_TERMINATED = "attrib_list not terminated with EGL.EGL_NONE";
044:
045: public static final String EGL_VALUE_SHORT = "value == null || value.length < 1";
046:
047: public static final String EGL_SHARE_CONTEXT_NULL = "share_context == null";
048:
049: public static final String EGL_BAD_WINDOW_SURFACE = "win is not a Canvas, GameCanvas, EGLCanvas, or Graphics";
050:
051: public static final String EGL_PIXMAP_NULL = "pixmap == null";
052:
053: public static final String EGL_CONFIG_NULL = "config == null";
054:
055: public static final String EGL_CONTEXT_NULL = "context == null (perhaps you meant EGL.EGL_NO_CONTEXT)";
056:
057: public static final String EGL_SURFACE_NULL = "surface == null (perhaps you meant EGL.EGL_NO_SURFACE)";
058:
059: public static final String EGL_DRAW_NULL = "draw == null (perhaps you meant EGL.EGL_NO_SURFACE)";
060:
061: public static final String EGL_READ_NULL = "read == null (perhaps you meant EGL.EGL_NO_SURFACE)";
062:
063: public static final String EGL_BAD_PIXMAP = "pixmap is not a Graphics instance";
064:
065: public static final String EGL_IMAGE_IMMUTABLE = "pixmap is not mutable";
066:
067: public static final String EGL_READDRAW_BAD = "readdraw not one of EGL.EGL_READ or EGL.EGL_DRAW";
068:
069: public static final String EGL_NATIVE_PIXMAP_NULL = "native_pixmap == null";
070:
071: public static final String EGL_EGL11_UNSUPPORTED = "EGL 1.1 not supported";
072:
073: public static final String EGL_CANT_HAPPEN = "This can't happen!";
074:
075: // GL Errors
076:
077: public static final String GL_UNKNOWN_BUFFER = "Unknown Buffer class";
078:
079: public static final String GL_GL11_UNSUPPORTED = "OpenGL ES 1.1 not supported";
080:
081: public static final String GL_PARAMS_NULL = "params == null";
082:
083: public static final String GL_OFFSET_NEGATIVE = "offset < 0";
084:
085: public static final String GL_BAD_LENGTH = "not enough remaining entries";
086:
087: public static final String GL_NOT_DIRECT = "Buffer must be direct";
088:
089: public static final String GL_POINTER_NULL = "pointer == null";
090:
091: public static final String GL_INDICES_NULL = "indices == null";
092:
093: public static final String GL_PIXELS_NULL = "pixels == null";
094:
095: public static final String GL_PIXELS_NOT_SHORT_OR_INT = "pixels must be a ShortBuffer or an IntBuffer";
096:
097: public static final String GL_DRAW_TEXTURE_UNSUPPORTED = "OES_draw_texture extension not available";
098:
099: public static final String GL_MATRIX_PALETTE_UNSUPPORTED = "OES_matrix_palette extension not available";
100:
101: public static final String GL_QUERY_MATRIX_UNSUPPORTED = "OES_query_matrix extension not available";
102:
103: public static final String GL_TEXTURE_CUBE_MAP_UNSUPPORTED = "OES_texture_cube_map extension not available";
104:
105: public static final String GL_BLEND_SUBTRACT_UNSUPPORTED = "OES_blend_subtract extension not available";
106:
107: public static final String GL_BLEND_FUNC_SEPARATE_UNSUPPORTED = "OES_blend_func_separate extension not available";
108:
109: public static final String GL_BLEND_EQUATION_SEPARATE_UNSUPPORTED = "OES_blend_equations_separate extension not available";
110:
111: public static final String GL_FRAMEBUFFER_OBJECT_UNSUPPORTED = "OES_framebuffer_object extension not available";
112:
113: public static final String VBO_ARRAY_BUFFER_BOUND = "Buffer version called while VBO array buffer is bound";
114:
115: public static final String VBO_ARRAY_BUFFER_UNBOUND = "Integer version called while VBO array buffer is not bound";
116:
117: public static final String VBO_ELEMENT_ARRAY_BUFFER_BOUND = "Buffer version called while VBO element array buffer is bound";
118:
119: public static final String VBO_ELEMENT_ARRAY_BUFFER_UNBOUND = "Integer version called while VBO element array buffer is not bound";
120:
121: public static final String VBO_OFFSET_OOB = "Argument 'offset' is outside the bound VBO buffer";
122:
123: public static final String NOT_ENOUGH_ROOM = "Not enough room for pixel data";
124: }
|