|
From: <eli...@us...> - 2006-11-27 22:45:32
|
Revision: 2683
http://svn.sourceforge.net/java-game-lib/?rev=2683&view=rev
Author: elias_naur
Date: 2006-11-27 14:45:28 -0800 (Mon, 27 Nov 2006)
Log Message:
-----------
Remove GL.java and GLImpl.java as they're not updated automatically anyway
Removed Paths:
-------------
trunk/LWJGL/src/java/org/lwjgl/util/GL.java
trunk/LWJGL/src/java/org/lwjgl/util/GLImpl.java
Deleted: trunk/LWJGL/src/java/org/lwjgl/util/GL.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/util/GL.java 2006-11-24 15:30:36 UTC (rev 2682)
+++ trunk/LWJGL/src/java/org/lwjgl/util/GL.java 2006-11-27 22:45:28 UTC (rev 2683)
@@ -1,6758 +0,0 @@
-/*
- * Copyright (c) 2002-2004 LWJGL Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * * Neither the name of 'LWJGL' nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.lwjgl.util;
-
-import java.nio.ByteBuffer;
-import java.nio.DoubleBuffer;
-import java.nio.FloatBuffer;
-import java.nio.IntBuffer;
-import java.nio.ShortBuffer;
-
-import org.lwjgl.opengl.ARBBufferObject;
-import org.lwjgl.opengl.ARBFragmentProgram;
-import org.lwjgl.opengl.ARBImaging;
-import org.lwjgl.opengl.ARBMatrixPalette;
-import org.lwjgl.opengl.ARBMultisample;
-import org.lwjgl.opengl.ARBMultitexture;
-import org.lwjgl.opengl.ARBOcclusionQuery;
-import org.lwjgl.opengl.ARBPointParameters;
-import org.lwjgl.opengl.ARBShaderObjects;
-import org.lwjgl.opengl.ARBTextureCompression;
-import org.lwjgl.opengl.ARBTransposeMatrix;
-import org.lwjgl.opengl.ARBVertexBlend;
-import org.lwjgl.opengl.ARBVertexProgram;
-import org.lwjgl.opengl.ARBVertexShader;
-import org.lwjgl.opengl.ARBWindowPos;
-import org.lwjgl.opengl.EXTBlendEquationSeparate;
-import org.lwjgl.opengl.EXTBlendFuncSeparate;
-import org.lwjgl.opengl.EXTCompiledVertexArray;
-import org.lwjgl.opengl.EXTDepthBoundsTest;
-import org.lwjgl.opengl.EXTDrawRangeElements;
-import org.lwjgl.opengl.EXTFogCoord;
-import org.lwjgl.opengl.EXTMultiDrawArrays;
-import org.lwjgl.opengl.EXTPointParameters;
-import org.lwjgl.opengl.EXTSecondaryColor;
-import org.lwjgl.opengl.EXTStencilTwoSide;
-import org.lwjgl.opengl.EXTVertexShader;
-import org.lwjgl.opengl.EXTVertexWeighting;
-import org.lwjgl.opengl.GL11;
-import org.lwjgl.opengl.GL12;
-import org.lwjgl.opengl.GL13;
-import org.lwjgl.opengl.GL14;
-import org.lwjgl.opengl.GL15;
-import org.lwjgl.opengl.GL20;
-
-/**
- * <p/>
- * An extensible GL class that contains all the GL11 through GL15 methods, and all the ARB and EXT extension methods.
- *
- * @author $Author$
- * @version $Revision$
- * $Id$
- */
-public class GL {
-
- /** C'tor */
- public GL() {
- }
-
- /**
- * @param op
- * @param value
- */
- public static void glAccum(int op, float value) {
- GL11.glAccum(op, value);
- }
-
- /**
- * @param func
- * @param ref
- */
- public static void glAlphaFunc(int func, float ref) {
- GL11.glAlphaFunc(func, ref);
- }
-
- /** @param i */
- public static void glArrayElement(int i) {
- GL11.glArrayElement(i);
- }
-
- /** @param mode */
- public static void glBegin(int mode) {
- GL11.glBegin(mode);
- }
-
- /**
- * @param target
- * @param texture
- */
- public static void glBindTexture(int target, int texture) {
- GL11.glBindTexture(target, texture);
- }
-
- /**
- * @param width
- * @param height
- * @param xorig
- * @param yorig
- * @param xmove
- * @param ymove
- * @param bitmap
- */
- public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap) {
- GL11.glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
- }
-
- /**
- * @param width
- * @param height
- * @param xorig
- * @param yorig
- * @param xmove
- * @param ymove
- * @param buffer_offect
- */
- public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, int buffer_offect) {
- GL11.glBitmap(width, height, xorig, yorig, xmove, ymove, buffer_offect);
- }
-
- /**
- * @param sfactor
- * @param dfactor
- */
- public static void glBlendFunc(int sfactor, int dfactor) {
- GL11.glBlendFunc(sfactor, dfactor);
- }
-
- /** @param list */
- public static void glCallList(int list) {
- GL11.glCallList(list);
- }
-
- /** @param lists */
- public static void glCallLists(ByteBuffer lists) {
- GL11.glCallLists(lists);
- }
-
- /** @param lists */
- public static void glCallLists(ShortBuffer lists) {
- GL11.glCallLists(lists);
- }
-
- /** @param lists */
- public static void glCallLists(IntBuffer lists) {
- GL11.glCallLists(lists);
- }
-
- /** @param mask */
- public static void glClear(int mask) {
- GL11.glClear(mask);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- * @param alpha
- */
- public static void glClearAccum(float red, float green, float blue, float alpha) {
- GL11.glClearAccum(red, green, blue, alpha);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- * @param alpha
- */
- public static void glClearColor(float red, float green, float blue, float alpha) {
- GL11.glClearColor(red, green, blue, alpha);
- }
-
- /** @param depth */
- public static void glClearDepth(double depth) {
- GL11.glClearDepth(depth);
- }
-
- /** @param c */
-/* public static void glClearIndex(float c) {
- GL11.glClearIndex(c);
- }
-*/
- /** @param s */
- public static void glClearStencil(int s) {
- GL11.glClearStencil(s);
- }
-
- /**
- * @param plane
- * @param equation
- */
- public static void glClipPlane(int plane, DoubleBuffer equation) {
- GL11.glClipPlane(plane, equation);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- */
- public static void glColor3b(byte red, byte green, byte blue) {
- GL11.glColor3b(red, green, blue);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- */
- public static void glColor3f(float red, float green, float blue) {
- GL11.glColor3f(red, green, blue);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- */
- public static void glColor3ub(byte red, byte green, byte blue) {
- GL11.glColor3ub(red, green, blue);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- * @param alpha
- */
- public static void glColor4b(byte red, byte green, byte blue, byte alpha) {
- GL11.glColor4b(red, green, blue, alpha);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- * @param alpha
- */
- public static void glColor4f(float red, float green, float blue, float alpha) {
- GL11.glColor4f(red, green, blue, alpha);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- * @param alpha
- */
- public static void glColor4ub(byte red, byte green, byte blue, byte alpha) {
- GL11.glColor4ub(red, green, blue, alpha);
- }
-
- /**
- * @param red
- * @param green
- * @param blue
- * @param alpha
- */
- public static void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) {
- GL11.glColorMask(red, green, blue, alpha);
- }
-
- /**
- * @param face
- * @param mode
- */
- public static void glColorMaterial(int face, int mode) {
- GL11.glColorMaterial(face, mode);
- }
-
- /**
- * @param size
- * @param unsigned
- * @param stride
- * @param pointer
- */
- public static void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) {
- GL11.glColorPointer(size, unsigned, stride, pointer);
- }
-
- /**
- * @param size
- * @param stride
- * @param pointer
- */
- public static void glColorPointer(int size, int stride, FloatBuffer pointer) {
- GL11.glColorPointer(size, stride, pointer);
- }
-
- /**
- * @param size
- * @param type
- * @param stride
- * @param buffer_offset
- */
- public static void glColorPointer(int size, int type, int stride, int buffer_offset) {
- GL11.glColorPointer(size, type, stride, buffer_offset);
- }
-
- /**
- * @param x
- * @param y
- * @param width
- * @param height
- * @param type
- */
- public static void glCopyPixels(int x, int y, int width, int height, int type) {
- GL11.glCopyPixels(x, y, width, height, type);
- }
-
- /**
- * @param target
- * @param level
- * @param internalFormat
- * @param x
- * @param y
- * @param width
- * @param border
- */
- public static void glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border) {
- GL11.glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
- }
-
- /**
- * @param target
- * @param level
- * @param internalFormat
- * @param x
- * @param y
- * @param width
- * @param height
- * @param border
- */
- public static void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) {
- GL11.glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
- }
-
- /**
- * @param target
- * @param level
- * @param xoffset
- * @param x
- * @param y
- * @param width
- */
- public static void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width) {
- GL11.glCopyTexSubImage1D(target, level, xoffset, x, y, width);
- }
-
- /**
- * @param target
- * @param level
- * @param xoffset
- * @param yoffset
- * @param x
- * @param y
- * @param width
- * @param height
- */
- public static void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {
- GL11.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
- }
-
- /** @param mode */
- public static void glCullFace(int mode) {
- GL11.glCullFace(mode);
- }
-
- /**
- * @param list
- * @param range
- */
- public static void glDeleteLists(int list, int range) {
- GL11.glDeleteLists(list, range);
- }
-
- /** @param textures */
- public static void glDeleteTextures(IntBuffer textures) {
- GL11.glDeleteTextures(textures);
- }
-
- /** @param func */
- public static void glDepthFunc(int func) {
- GL11.glDepthFunc(func);
- }
-
- /** @param flag */
- public static void glDepthMask(boolean flag) {
- GL11.glDepthMask(flag);
- }
-
- /**
- * @param zNear
- * @param zFar
- */
- public static void glDepthRange(double zNear, double zFar) {
- GL11.glDepthRange(zNear, zFar);
- }
-
- /** @param cap */
- public static void glDisable(int cap) {
- GL11.glDisable(cap);
- }
-
- /** @param cap */
- public static void glDisableClientState(int cap) {
- GL11.glDisableClientState(cap);
- }
-
- /**
- * @param mode
- * @param first
- * @param count
- */
- public static void glDrawArrays(int mode, int first, int count) {
- GL11.glDrawArrays(mode, first, count);
- }
-
- /** @param mode */
- public static void glDrawBuffer(int mode) {
- GL11.glDrawBuffer(mode);
- }
-
- /**
- * @param mode
- * @param indices
- */
- public static void glDrawElements(int mode, ByteBuffer indices) {
- GL11.glDrawElements(mode, indices);
- }
-
- /**
- * @param mode
- * @param count
- * @param type
- * @param buffer_offset
- */
- public static void glDrawElements(int mode, int count, int type, int buffer_offset) {
- GL11.glDrawElements(mode, count, type, buffer_offset);
- }
-
- /**
- * @param mode
- * @param indices
- */
- public static void glDrawElements(int mode, IntBuffer indices) {
- GL11.glDrawElements(mode, indices);
- }
-
- /**
- * @param mode
- * @param indices
- */
- public static void glDrawElements(int mode, ShortBuffer indices) {
- GL11.glDrawElements(mode, indices);
- }
-
- /**
- * @param width
- * @param height
- * @param format
- * @param type
- * @param pixels
- */
- public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) {
- GL11.glDrawPixels(width, height, format, type, pixels);
- }
-
- /**
- * @param width
- * @param height
- * @param format
- * @param type
- * @param pixels
- */
- public static void glDrawPixels(int width, int height, int format, int type, IntBuffer pixels) {
- GL11.glDrawPixels(width, height, format, type, pixels);
- }
-
- /**
- * @param width
- * @param height
- * @param format
- * @param type
- * @param pixels
- */
- public static void glDrawPixels(int width, int height, int format, int type, ShortBuffer pixels) {
- GL11.glDrawPixels(width, height, format, type, pixels);
- }
-
- /**
- * @param width
- * @param height
- * @param format
- * @param type
- * @param buffer_offset
- */
- public static void glDrawPixels(int width, int height, int format, int type, int buffer_offset) {
- GL11.glDrawPixels(width, height, format, type, buffer_offset);
- }
-
- /** @param flag */
- public static void glEdgeFlag(boolean flag) {
- GL11.glEdgeFlag(flag);
- }
-
- /**
- * @param stride
- * @param pointer
- */
- public static void glEdgeFlagPointer(int stride, ByteBuffer pointer) {
- GL11.glEdgeFlagPointer(stride, pointer);
- }
-
- /**
- * @param stride
- * @param buffer_offset
- */
- public static void glEdgeFlagPointer(int stride, int buffer_offset) {
- GL11.glEdgeFlagPointer(stride, buffer_offset);
- }
-
- /** @param cap */
- public static void glEnable(int cap) {
- GL11.glEnable(cap);
- }
-
- /** @param cap */
- public static void glEnableClientState(int cap) {
- GL11.glEnableClientState(cap);
- }
-
- /**
- *
- */
- public static void glEnd() {
- GL11.glEnd();
- }
-
- /**
- *
- */
- public static void glEndList() {
- GL11.glEndList();
- }
-
- /** @param u */
- public static void glEvalCoord1f(float u) {
- GL11.glEvalCoord1f(u);
- }
-
- /**
- * @param u
- * @param v
- */
- public static void glEvalCoord2f(float u, float v) {
- GL11.glEvalCoord2f(u, v);
- }
-
- /**
- * @param mode
- * @param i1
- * @param i2
- */
- public static void glEvalMesh1(int mode, int i1, int i2) {
- GL11.glEvalMesh1(mode, i1, i2);
- }
-
- /**
- * @param mode
- * @param i1
- * @param i2
- * @param j1
- * @param j2
- */
- public static void glEvalMesh2(int mode, int i1, int i2, int j1, int j2) {
- GL11.glEvalMesh2(mode, i1, i2, j1, j2);
- }
-
- /** @param i */
- public static void glEvalPoint1(int i) {
- GL11.glEvalPoint1(i);
- }
-
- /**
- * @param i
- * @param j
- */
- public static void glEvalPoint2(int i, int j) {
- GL11.glEvalPoint2(i, j);
- }
-
- /**
- * @param type
- * @param buffer
- */
- public static void glFeedbackBuffer(int type, FloatBuffer buffer) {
- GL11.glFeedbackBuffer(type, buffer);
- }
-
- /**
- *
- */
- public static void glFinish() {
- GL11.glFinish();
- }
-
- /**
- *
- */
- public static void glFlush() {
- GL11.glFlush();
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glFog(int pname, FloatBuffer params) {
- GL11.glFog(pname, params);
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glFog(int pname, IntBuffer params) {
- GL11.glFog(pname, params);
- }
-
- /**
- * @param pname
- * @param param
- */
- public static void glFogf(int pname, float param) {
- GL11.glFogf(pname, param);
- }
-
- /**
- * @param pname
- * @param param
- */
- public static void glFogi(int pname, int param) {
- GL11.glFogi(pname, param);
- }
-
- /** @param mode */
- public static void glFrontFace(int mode) {
- GL11.glFrontFace(mode);
- }
-
- /**
- * @param left
- * @param right
- * @param bottom
- * @param top
- * @param zNear
- * @param zFar
- */
- public static void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) {
- GL11.glFrustum(left, right, bottom, top, zNear, zFar);
- }
-
- /**
- * @param range
- *
- * @return
- */
- public static int glGenLists(int range) {
- return GL11.glGenLists(range);
- }
-
- /** @param textures */
- public static void glGenTextures(IntBuffer textures) {
- GL11.glGenTextures(textures);
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glGetBoolean(int pname, ByteBuffer params) {
- GL11.glGetBoolean(pname, params);
- }
-
- /**
- * @param plane
- * @param equation
- */
- public static void glGetClipPlane(int plane, DoubleBuffer equation) {
- GL11.glGetClipPlane(plane, equation);
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glGetDouble(int pname, DoubleBuffer params) {
- GL11.glGetDouble(pname, params);
- }
-
- /** @return */
- public static int glGetError() {
- return GL11.glGetError();
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glGetFloat(int pname, FloatBuffer params) {
- GL11.glGetFloat(pname, params);
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glGetInteger(int pname, IntBuffer params) {
- GL11.glGetInteger(pname, params);
- }
-
- /**
- * @param light
- * @param pname
- * @param params
- */
- public static void glGetLight(int light, int pname, FloatBuffer params) {
- GL11.glGetLight(light, pname, params);
- }
-
- /**
- * @param light
- * @param pname
- * @param params
- */
- public static void glGetLight(int light, int pname, IntBuffer params) {
- GL11.glGetLight(light, pname, params);
- }
-
- /**
- * @param target
- * @param query
- * @param v
- */
- public static void glGetMap(int target, int query, FloatBuffer v) {
- GL11.glGetMap(target, query, v);
- }
-
- /**
- * @param target
- * @param query
- * @param v
- */
- public static void glGetMap(int target, int query, IntBuffer v) {
- GL11.glGetMap(target, query, v);
- }
-
- /**
- * @param face
- * @param pname
- * @param params
- */
- public static void glGetMaterial(int face, int pname, FloatBuffer params) {
- GL11.glGetMaterial(face, pname, params);
- }
-
- /**
- * @param face
- * @param pname
- * @param params
- */
- public static void glGetMaterial(int face, int pname, IntBuffer params) {
- GL11.glGetMaterial(face, pname, params);
- }
-
- /**
- * @param map
- * @param values
- */
- public static void glGetPixelMap(int map, FloatBuffer values) {
- GL11.glGetPixelMap(map, values);
- }
-
- /**
- * @param map
- * @param buffer_offset
- */
- public static void glGetPixelMapfv(int map, int buffer_offset) {
- GL11.glGetPixelMapfv(map, buffer_offset);
- }
-
- /**
- * @param map
- * @param values
- */
- public static void glGetPixelMapu(int map, IntBuffer values) {
- GL11.glGetPixelMapu(map, values);
- }
-
- /**
- * @param map
- * @param buffer_offset
- */
- public static void glGetPixelMapuiv(int map, int buffer_offset) {
- GL11.glGetPixelMapuiv(map, buffer_offset);
- }
-
- /**
- * @param map
- * @param values
- */
- public static void glGetPixelMapu(int map, ShortBuffer values) {
- GL11.glGetPixelMapu(map, values);
- }
-
- /**
- * @param map
- * @param buffer_offset
- */
- public static void glGetPixelMapusv(int map, int buffer_offset) {
- GL11.glGetPixelMapusv(map, buffer_offset);
- }
-
- /**
- * @param pname
- * @param size
- *
- * @return
- */
- public static ByteBuffer glGetPointer(int pname, int size) {
- return GL11.glGetPointer(pname, size);
- }
-
- /** @param mask */
- public static void glGetPolygonStipple(ByteBuffer mask) {
- GL11.glGetPolygonStipple(mask);
- }
-
- /**
- * @param buffer_offset
- */
- public static void glGetPolygonStipple(int buffer_offset) {
- GL11.glGetPolygonStipple(buffer_offset);
- }
-
- /**
- * @param name
- *
- * @return
- */
- public static String glGetString(int name) {
- return GL11.glGetString(name);
- }
-
- /**
- * @param coord
- * @param pname
- * @param params
- */
- public static void glGetTexEnv(int coord, int pname, FloatBuffer params) {
- GL11.glGetTexEnv(coord, pname, params);
- }
-
- /**
- * @param coord
- * @param pname
- * @param params
- */
- public static void glGetTexEnv(int coord, int pname, IntBuffer params) {
- GL11.glGetTexEnv(coord, pname, params);
- }
-
- /**
- * @param coord
- * @param pname
- * @param params
- */
- public static void glGetTexGen(int coord, int pname, FloatBuffer params) {
- GL11.glGetTexGen(coord, pname, params);
- }
-
- /**
- * @param coord
- * @param pname
- * @param params
- */
- public static void glGetTexGen(int coord, int pname, IntBuffer params) {
- GL11.glGetTexGen(coord, pname, params);
- }
-
- /**
- * @param target
- * @param level
- * @param format
- * @param type
- * @param pixels
- */
- public static void glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) {
- GL11.glGetTexImage(target, level, format, type, pixels);
- }
-
- /**
- * @param target
- * @param level
- * @param format
- * @param type
- * @param pixels
- */
- public static void glGetTexImage(int target, int level, int format, int type, IntBuffer pixels) {
- GL11.glGetTexImage(target, level, format, type, pixels);
- }
-
- /**
- * @param target
- * @param level
- * @param format
- * @param type
- * @param pixels
- */
- public static void glGetTexImage(int target, int level, int format, int type, ShortBuffer pixels) {
- GL11.glGetTexImage(target, level, format, type, pixels);
- }
-
- /**
- * @param target
- * @param level
- * @param format
- * @param type
- * @param buffer_offset
- */
- public static void glGetTexImage(int target, int level, int format, int type, int buffer_offset) {
- GL11.glGetTexImage(target, level, format, type, buffer_offset);
- }
- /**
- * @param target
- * @param level
- * @param pname
- * @param params
- */
- public static void glGetTexLevelParameter(int target, int level, int pname, FloatBuffer params) {
- GL11.glGetTexLevelParameter(target, level, pname, params);
- }
-
- /**
- * @param target
- * @param level
- * @param pname
- * @param params
- */
- public static void glGetTexLevelParameter(int target, int level, int pname, IntBuffer params) {
- GL11.glGetTexLevelParameter(target, level, pname, params);
- }
-
- /**
- * @param target
- * @param pname
- * @param params
- */
- public static void glGetTexParameter(int target, int pname, FloatBuffer params) {
- GL11.glGetTexParameter(target, pname, params);
- }
-
- /**
- * @param target
- * @param pname
- * @param params
- */
- public static void glGetTexParameter(int target, int pname, IntBuffer params) {
- GL11.glGetTexParameter(target, pname, params);
- }
-
- /**
- * @param target
- * @param mode
- */
- public static void glHint(int target, int mode) {
- GL11.glHint(target, mode);
- }
-
- /**
- *
- */
- public static void glInitNames() {
- GL11.glInitNames();
- }
-
- /**
- * @param format
- * @param stride
- * @param pointer
- */
- public static void glInterleavedArrays(int format, int stride, ByteBuffer pointer) {
- GL11.glInterleavedArrays(format, stride, pointer);
- }
-
- /**
- * @param format
- * @param stride
- * @param pointer
- */
- public static void glInterleavedArrays(int format, int stride, FloatBuffer pointer) {
- GL11.glInterleavedArrays(format, stride, pointer);
- }
-
- /**
- * @param format
- * @param stride
- * @param buffer_offset
- */
- public static void glInterleavedArrays(int format, int stride, int buffer_offset) {
- GL11.glInterleavedArrays(format, stride, buffer_offset);
- }
-
- /**
- * @param format
- * @param stride
- * @param pointer
- */
- public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) {
- GL11.glInterleavedArrays(format, stride, pointer);
- }
-
- /**
- * @param format
- * @param stride
- * @param pointer
- */
- public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) {
- GL11.glInterleavedArrays(format, stride, pointer);
- }
-
- /**
- * @param cap
- *
- * @return
- */
- public static boolean glIsEnabled(int cap) {
- return GL11.glIsEnabled(cap);
- }
-
- /**
- * @param list
- *
- * @return
- */
- public static boolean glIsList(int list) {
- return GL11.glIsList(list);
- }
-
- /**
- * @param texture
- *
- * @return
- */
- public static boolean glIsTexture(int texture) {
- return GL11.glIsTexture(texture);
- }
-
- /**
- * @param light
- * @param pname
- * @param params
- */
- public static void glLight(int light, int pname, FloatBuffer params) {
- GL11.glLight(light, pname, params);
- }
-
- /**
- * @param light
- * @param pname
- * @param params
- */
- public static void glLight(int light, int pname, IntBuffer params) {
- GL11.glLight(light, pname, params);
- }
-
- /**
- * @param light
- * @param pname
- * @param param
- */
- public static void glLightf(int light, int pname, float param) {
- GL11.glLightf(light, pname, param);
- }
-
- /**
- * @param light
- * @param pname
- * @param param
- */
- public static void glLighti(int light, int pname, int param) {
- GL11.glLighti(light, pname, param);
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glLightModel(int pname, FloatBuffer params) {
- GL11.glLightModel(pname, params);
- }
-
- /**
- * @param pname
- * @param params
- */
- public static void glLightModel(int pname, IntBuffer params) {
- GL11.glLightModel(pname, params);
- }
-
- /**
- * @param pname
- * @param param
- */
- public static void glLightModelf(int pname, float param) {
- GL11.glLightModelf(pname, param);
- }
-
- /**
- * @param pname
- * @param param
- */
- public static void glLightModeli(int pname, int param) {
- GL11.glLightModeli(pname, param);
- }
-
- /**
- * @param factor
- * @param pattern
- */
- public static void glLineStipple(int factor, short pattern) {
- GL11.glLineStipple(factor, pattern);
- }
-
- /** @param width */
- public static void glLineWidth(float width) {
- GL11.glLineWidth(width);
- }
-
- /** @param base */
- public static void glListBase(int base) {
- GL11.glListBase(base);
- }
-
- /**
- *
- */
- public static void glLoadIdentity() {
- GL11.glLoadIdentity();
- }
-
- /** @param m */
- public static void glLoadMatrix(FloatBuffer m) {
- GL11.glLoadMatrix(m);
- }
-
- /** @param name */
- public static void glLoadName(int name) {
- GL11.glLoadName(name);
- }
-
- /** @param opcode */
- public static void glLogicOp(int opcode) {
- GL11.glLogicOp(opcode);
- }
-
- /**
- * @param target
- * @param u1
- * @param u2
- * @param stride
- * @param order
- * @param points
- */
- public static void glMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points) {
- GL11.glMap1f(target, u1, u2, stride, order, points);
- }
-
- /**
- * @param target
- * @param u1
- * @param u2
- * @param ustride
- * @param uorder
- * @param v1
- * @param v2
- * @param vstride
- * @param vorder
- * @param points
- */
- public static void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) {
- GL11.glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
- }
-
- /**
- * @param un
- * @param u1
- * @param u2
- */
- public static void glMapGrid1f(int un, float u1, float u2) {
- GL11.glMapGrid1f(un, u1, u2);
- }
-
- /**
- * @param un
- * @param u1
- * @param u2
- * @param vn
- * @param v1
- * @param v2
- */
- public static void glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2) {
- GL11.glMapGrid2f(un, u1, u2, vn, v1, v2);
- }
-
- /**
- * @param face
- * @param pname
- * @param params
- */
- public static void glMaterial(int face, int pname, FloatBuffer params) {
- GL11.glMaterial(face, pname, params);
- }
-
- /**
- * @param face
- * @param pname
- * @param params
- */
- public static void glMaterial(int face, int pname, IntBuffer params) {
- GL11.glMaterial(face, pname, params);
- }
-
- /**
- * @param face
- * @param pname
- * @param param
- */
- public static void glMaterialf(int face, int pname, float param) {
- GL11.glMaterialf(face, pname, param);
- }
-
- /**
- * @param face
- * @param pname
- * @param param
- */
- public static void glMateriali(int face, int pname, int param) {
- GL11.glMateriali(face, pname, param);
- }
-
- /** @param mode */
- public static void glMatrixMode(int mode) {
- GL11.glMatrixMode(mode);
- }
-
- /** @param m */
- public static void glMultMatrix(FloatBuffer m) {
- GL11.glMultMatrix(m);
- }
-
- /**
- * @param list
- * @param mode
- */
- public static void glNewList(int list, int mode) {
- GL11.glNewList(list, mode);
- }
-
- /**
- * @param nx
- * @param ny
- * @param nz
- */
- public static void glNormal3b(byte nx, byte ny, byte nz) {
- GL11.glNormal3b(nx, ny, nz);
- }
-
- /**
- * @param nx
- * @param ny
- * @param nz
- */
- public static void glNormal3f(float nx, float ny, float nz) {
- GL11.glNormal3f(nx, ny, nz);
- }
-
- /**
- * @param nx
- * @param ny
- * @param nz
- */
- public static void glNormal3i(int nx, int ny, int nz) {
- GL11.glNormal3i(nx, ny, nz);
- }
-
- /**
- * @param stride
- * @param pointer
- */
- public static void glNormalPointer(int stride, ByteBuffer pointer) {
- GL11.glNormalPointer(stride, pointer);
- }
-
- /**
- * @param stride
- * @param pointer
- */
- public static void glNormalPointer(int stride, FloatBuffer pointer) {
- GL11.glNormalPointer(stride, pointer);
- }
-
- /**
- * @param type
- * @param stride
- * @param buffer_offset
- */
- public static void glNormalPointer(int type, int stride, int buffer_o...
[truncated message content] |
|
From: <ma...@us...> - 2007-11-07 23:17:18
|
Revision: 2917
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2917&view=rev
Author: matzon
Date: 2007-11-07 15:17:14 -0800 (Wed, 07 Nov 2007)
Log Message:
-----------
added aho's adapter
Added Paths:
-----------
trunk/LWJGL/src/java/org/lwjgl/util/input/
trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java
Added: trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java (rev 0)
+++ trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java 2007-11-07 23:17:14 UTC (rev 2917)
@@ -0,0 +1,329 @@
+/*
+ * Copyright (c) 2007 LWJGL Project
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of 'LWJGL' nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.lwjgl.util.input;
+
+import org.lwjgl.input.Controller;
+
+/**
+ * Adapter for the Controller interface. It can be used as placeholder
+ * Controller, which doesn't do anything (eg if Controllers.create() fails and
+ * you don't want to take care of that).
+ *
+ * @author Onyx, Aho and all the other aliases...
+ */
+public class ControllerAdapter implements Controller {
+
+ /**
+ * Get the name assigned to this controller.
+ *
+ * @return The name assigned to this controller
+ */
+ public String getName() {
+ return "Dummy Controller";
+ }
+
+ /**
+ * Get the index of this controller in the collection
+ *
+ * @return The index of this controller in the collection
+ */
+ public int getIndex() {
+ return 0; //-1 maybe?
+ }
+
+ /**
+ * Retrieve the number of buttons available on this controller
+ *
+ * @return The number of butotns available on this controller
+ */
+ public int getButtonCount() {
+ return 0;
+ }
+
+ /**
+ * Get the name of the specified button. Be warned, often this is as
+ * exciting as "Button X"
+ *
+ * @param index The index of the button whose name should be retrieved
+ * @return The name of the button requested
+ */
+ public String getButtonName(int index) {
+ return "button n/a";
+ }
+
+ /**
+ * Check if a button is currently pressed
+ *
+ * @param index The button to check
+ * @return True if the button is currently pressed
+ */
+ public boolean isButtonPressed(int index) {
+ return false;
+ }
+
+ /**
+ * Poll the controller for new data. This will also update events
+ */
+ public void poll() {
+ }
+
+ /**
+ * Get the X-Axis value of the POV on this controller
+ *
+ * @return The X-Axis value of the POV on this controller
+ */
+ public float getPovX() {
+ return 0f;
+ }
+
+ /**
+ * Get the Y-Axis value of the POV on this controller
+ *
+ * @return The Y-Axis value of the POV on this controller
+ */
+ public float getPovY() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for a specified axis
+ *
+ * @param index The index of the axis for which to retrieve the dead zone
+ * @return The dead zone for the specified axis
+ */
+ public float getDeadZone(int index) {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the specified axis
+ *
+ * @param index The index of hte axis for which to set the dead zone
+ * @param zone The dead zone to use for the specified axis
+ */
+ public void setDeadZone(int index, float zone) {
+ }
+
+ /**
+ * Retrieve the number of axes available on this controller.
+ *
+ * @return The number of axes available on this controller.
+ */
+ public int getAxisCount() {
+ return 0;
+ }
+
+ /**
+ * Get the name that's given to the specified axis
+ *
+ * @param index The index of the axis whose name should be retrieved
+ * @return The name of the specified axis.
+ */
+ public String getAxisName(int index) {
+ return "axis n/a";
+ }
+
+ /**
+ * Retrieve the value thats currently available on a specified axis. The
+ * value will always be between 1.0 and -1.0 and will calibrate as values
+ * are passed read. It may be useful to get the player to wiggle the
+ * joystick from side to side to get the calibration right.
+ *
+ * @param index The index of axis to be read
+ * @return The value from the specified axis.
+ */
+ public float getAxisValue(int index) {
+ return 0f;
+ }
+
+ /**
+ * Get the value from the X axis if there is one. If no X axis is defined a
+ * zero value will be returned.
+ *
+ * @return The value from the X axis
+ */
+ public float getXAxisValue() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for the X axis.
+ *
+ * @return The dead zone for the X axis
+ */
+ public float getXAxisDeadZone() {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the X axis
+ *
+ * @param zone The dead zone to use for the X axis
+ */
+ public void setXAxisDeadZone(float zone) {
+ }
+
+ /**
+ * Get the value from the Y axis if there is one. If no Y axis is defined a
+ * zero value will be returned.
+ *
+ * @return The value from the Y axis
+ */
+ public float getYAxisValue() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for the Y axis.
+ *
+ * @return The dead zone for the Y axis
+ */
+ public float getYAxisDeadZone() {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the Y axis
+ *
+ * @param zone The dead zone to use for the Y axis
+ */
+ public void setYAxisDeadZone(float zone) {
+ }
+
+ /**
+ * Get the value from the Z axis if there is one. If no Z axis is defined a
+ * zero value will be returned.
+ *
+ * @return The value from the Z axis
+ */
+ public float getZAxisValue() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for the Z axis.
+ *
+ * @return The dead zone for the Z axis
+ */
+ public float getZAxisDeadZone() {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the Z axis
+ *
+ * @param zone The dead zone to use for the Z axis
+ */
+ public void setZAxisDeadZone(float zone) {
+ }
+
+ /**
+ * Get the value from the RX axis if there is one. If no RX axis is defined
+ * a zero value will be returned.
+ *
+ * @return The value from the RX axis
+ */
+ public float getRXAxisValue() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for the RX axis.
+ *
+ * @return The dead zone for the RX axis
+ */
+ public float getRXAxisDeadZone() {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the RX axis
+ *
+ * @param zone The dead zone to use for the RX axis
+ */
+ public void setRXAxisDeadZone(float zone) {
+ }
+
+ /**
+ * Get the value from the RY axis if there is one. If no RY axis is defined
+ * a zero value will be returned.
+ *
+ * @return The value from the RY axis
+ */
+ public float getRYAxisValue() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for the RY axis.
+ *
+ * @return The dead zone for the RY axis
+ */
+ public float getRYAxisDeadZone() {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the RY axis
+ *
+ * @param zone The dead zone to use for the RY axis
+ */
+ public void setRYAxisDeadZone(float zone) {
+ }
+
+ /**
+ * Get the value from the RZ axis if there is one. If no RZ axis is defined
+ * a zero value will be returned.
+ *
+ * @return The value from the RZ axis
+ */
+ public float getRZAxisValue() {
+ return 0f;
+ }
+
+ /**
+ * Get the dead zone for the RZ axis.
+ *
+ * @return The dead zone for the RZ axis
+ */
+ public float getRZAxisDeadZone() {
+ return 0f;
+ }
+
+ /**
+ * Set the dead zone for the RZ axis
+ *
+ * @param zone The dead zone to use for the RZ axis
+ */
+ public void setRZAxisDeadZone(float zone) {
+ }
+}
\ No newline at end of file
Property changes on: trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|