1 /* 2 * Copyright (c) 2002-2008 LWJGL Project 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * 9 * * Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * * Neither the name of 'LWJGL' nor the names of 17 * its contributors may be used to endorse or promote products derived 18 * from this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 package org.lwjgl.opengl; 33 34 import org.lwjgl.util.generator.*; 35 import org.lwjgl.util.generator.opengl.*; 36 37 import java.nio.*; 38 39 /** 40 * <p/> 41 * The core OpenGL1.4 API. 42 * 43 * @author cix_foo <cix_foo@users.sourceforge.net> 44 * @version $Revision$ 45 * $Id$ 46 */ 47 @DeprecatedGL 48 public interface GL14 { 49 int GL_GENERATE_MIPMAP = 0x8191; 50 int GL_GENERATE_MIPMAP_HINT = 0x8192; 51 int GL_DEPTH_COMPONENT16 = 0x81A5; 52 int GL_DEPTH_COMPONENT24 = 0x81A6; 53 int GL_DEPTH_COMPONENT32 = 0x81A7; 54 int GL_TEXTURE_DEPTH_SIZE = 0x884A; 55 int GL_DEPTH_TEXTURE_MODE = 0x884B; 56 int GL_TEXTURE_COMPARE_MODE = 0x884C; 57 int GL_TEXTURE_COMPARE_FUNC = 0x884D; 58 int GL_COMPARE_R_TO_TEXTURE = 0x884E; 59 int GL_FOG_COORDINATE_SOURCE = 0x8450; 60 int GL_FOG_COORDINATE = 0x8451; 61 int GL_FRAGMENT_DEPTH = 0x8452; 62 int GL_CURRENT_FOG_COORDINATE = 0x8453; 63 int GL_FOG_COORDINATE_ARRAY_TYPE = 0x8454; 64 int GL_FOG_COORDINATE_ARRAY_STRIDE = 0x8455; 65 int GL_FOG_COORDINATE_ARRAY_POINTER = 0x8456; 66 int GL_FOG_COORDINATE_ARRAY = 0x8457; 67 int GL_POINT_SIZE_MIN = 0x8126; 68 int GL_POINT_SIZE_MAX = 0x8127; 69 int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; 70 int GL_POINT_DISTANCE_ATTENUATION = 0x8129; 71 int GL_COLOR_SUM = 0x8458; 72 int GL_CURRENT_SECONDARY_COLOR = 0x8459; 73 int GL_SECONDARY_COLOR_ARRAY_SIZE = 0x845A; 74 int GL_SECONDARY_COLOR_ARRAY_TYPE = 0x845B; 75 int GL_SECONDARY_COLOR_ARRAY_STRIDE = 0x845C; 76 int GL_SECONDARY_COLOR_ARRAY_POINTER = 0x845D; 77 int GL_SECONDARY_COLOR_ARRAY = 0x845E; 78 int GL_BLEND_DST_RGB = 0x80C8; 79 int GL_BLEND_SRC_RGB = 0x80C9; 80 int GL_BLEND_DST_ALPHA = 0x80CA; 81 int GL_BLEND_SRC_ALPHA = 0x80CB; 82 int GL_INCR_WRAP = 0x8507; 83 int GL_DECR_WRAP = 0x8508; 84 int GL_TEXTURE_FILTER_CONTROL = 0x8500; 85 int GL_TEXTURE_LOD_BIAS = 0x8501; 86 int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD; 87 int GL_MIRRORED_REPEAT = 0x8370; 88 89 int GL_BLEND_COLOR = 0x8005; 90 int GL_BLEND_EQUATION = 0x8009; 91 92 int GL_FUNC_ADD = 0x8006; 93 int GL_FUNC_SUBTRACT = 0x800A; 94 int GL_FUNC_REVERSE_SUBTRACT = 0x800B; 95 int GL_MIN = 0x8007; 96 int GL_MAX = 0x8008; 97 glBlendEquation(@Lenum int mode)98 void glBlendEquation(@GLenum int mode); 99 glBlendColor(float red, float green, float blue, float alpha)100 void glBlendColor(float red, float green, float blue, float alpha); 101 102 @DeprecatedGL glFogCoordf(float coord)103 void glFogCoordf(float coord); 104 105 @DeprecatedGL glFogCoordd(double coord)106 void glFogCoordd(double coord); 107 108 @DeprecatedGL glFogCoordPointer(@utoTypeR) @Lenum int type, @GLsizei int stride, @CachedReference @BufferObject(BufferKind.ArrayVBO) @Check @Const @GLfloat @GLdouble Buffer data)109 void glFogCoordPointer(@AutoType("data") @GLenum int type, @GLsizei int stride, 110 @CachedReference 111 @BufferObject(BufferKind.ArrayVBO) 112 @Check 113 @Const 114 @GLfloat 115 @GLdouble Buffer data); 116 glMultiDrawArrays(@Lenum int mode, IntBuffer piFirst, @Check(R) @GLsizei IntBuffer piCount, @AutoSize(R) @GLsizei int primcount)117 void glMultiDrawArrays(@GLenum int mode, IntBuffer piFirst, @Check("piFirst.remaining()") @GLsizei IntBuffer piCount, @AutoSize("piFirst") @GLsizei int primcount); 118 119 //void glMultiDrawElements(int mode, int piCount, int type, int pIndices, int primcount); 120 glPointParameteri(@Lenum int pname, int param)121 void glPointParameteri(@GLenum int pname, int param); 122 glPointParameterf(@Lenum int pname, float param)123 void glPointParameterf(@GLenum int pname, float param); 124 125 @StripPostfix("params") glPointParameteriv(@Lenum int pname, @Check(R) @Const IntBuffer params)126 void glPointParameteriv(@GLenum int pname, @Check("4") @Const IntBuffer params); 127 128 @StripPostfix("params") glPointParameterfv(@Lenum int pname, @Check(R) @Const FloatBuffer params)129 void glPointParameterfv(@GLenum int pname, @Check("4") @Const FloatBuffer params); 130 131 @DeprecatedGL glSecondaryColor3b(byte red, byte green, byte blue)132 void glSecondaryColor3b(byte red, byte green, byte blue); 133 134 @DeprecatedGL glSecondaryColor3f(float red, float green, float blue)135 void glSecondaryColor3f(float red, float green, float blue); 136 137 @DeprecatedGL glSecondaryColor3d(double red, double green, double blue)138 void glSecondaryColor3d(double red, double green, double blue); 139 140 @DeprecatedGL glSecondaryColor3ub(@Lubyte byte red, @GLubyte byte green, @GLubyte byte blue)141 void glSecondaryColor3ub(@GLubyte byte red, @GLubyte byte green, @GLubyte byte blue); 142 143 @DeprecatedGL glSecondaryColorPointer(int size, @AutoType(R) @GLenum int type, @GLsizei int stride, @BufferObject(BufferKind.ArrayVBO) @Check @Const @GLbyte @GLubyte @GLfloat @GLdouble Buffer data)144 void glSecondaryColorPointer(int size, @AutoType("data") @GLenum int type, @GLsizei int stride, 145 @BufferObject(BufferKind.ArrayVBO) 146 @Check 147 @Const 148 @GLbyte 149 @GLubyte 150 @GLfloat 151 @GLdouble Buffer data); 152 glBlendFuncSeparate(@Lenum int sfactorRGB, @GLenum int dfactorRGB, @GLenum int sfactorAlpha, @GLenum int dfactorAlpha)153 void glBlendFuncSeparate(@GLenum int sfactorRGB, @GLenum int dfactorRGB, @GLenum int sfactorAlpha, @GLenum int dfactorAlpha); 154 155 @DeprecatedGL glWindowPos2f(float x, float y)156 void glWindowPos2f(float x, float y); 157 158 @DeprecatedGL glWindowPos2d(double x, double y)159 void glWindowPos2d(double x, double y); 160 161 @DeprecatedGL glWindowPos2i(int x, int y)162 void glWindowPos2i(int x, int y); 163 164 @DeprecatedGL glWindowPos3f(float x, float y, float z)165 void glWindowPos3f(float x, float y, float z); 166 167 @DeprecatedGL glWindowPos3d(double x, double y, double z)168 void glWindowPos3d(double x, double y, double z); 169 170 @DeprecatedGL glWindowPos3i(int x, int y, int z)171 void glWindowPos3i(int x, int y, int z); 172 } 173 174