From: Carsten W. <ca...@us...> - 2005-07-16 18:13:50
|
Update of /cvsroot/jake2/jake2/src/jake2/render In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8273/src/jake2/render Modified Files: Tag: render-refactoring DummyGL.java Log Message: new factory method Index: DummyGL.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/render/Attic/DummyGL.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** DummyGL.java 10 Jul 2005 17:51:01 -0000 1.1.2.1 --- DummyGL.java 16 Jul 2005 18:13:42 -0000 1.1.2.2 *************** *** 1,133 **** package jake2.render; - import jake2.render.lwjgl.LWJGLBase; - import java.nio.*; ! public class DummyGL extends LWJGLBase { ! protected void glAlphaFunc(int func, float ref) { // do nothing } ! protected void glBegin(int mode) { // do nothing } ! protected void glBindTexture(int target, int texture) { // do nothing } ! protected void glBlendFunc(int sfactor, int dfactor) { // do nothing } ! protected void glClear(int mask) { // do nothing } ! protected void glClearColor(float red, float green, float blue, float alpha) { // do nothing } ! protected void glColor3f(float red, float green, float blue) { // do nothing } ! protected void glColor3ub(byte red, byte green, byte blue) { // do nothing } ! protected void glColor4f(float red, float green, float blue, float alpha) { // do nothing } ! protected void glColor4ub(byte red, byte green, byte blue, byte alpha) { // do nothing } ! protected void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) { // do nothing } ! protected void glColorPointer(int size, int stride, FloatBuffer pointer) { // do nothing } ! protected void glCullFace(int mode) { // do nothing } ! protected void glDeleteTextures(IntBuffer textures) { // do nothing } ! protected void glDepthFunc(int func) { // do nothing } ! protected void glDepthMask(boolean flag) { // do nothing } ! protected void glDepthRange(double zNear, double zFar) { // do nothing } ! protected void glDisable(int cap) { // do nothing } ! protected void glDisableClientState(int cap) { // do nothing } ! protected void glDrawArrays(int mode, int first, int count) { // do nothing } ! protected void glDrawBuffer(int mode) { // do nothing } ! protected void glDrawElements(int mode, IntBuffer indices) { // do nothing } ! protected void glEnable(int cap) { // do nothing } ! protected void glEnableClientState(int cap) { // do nothing } ! protected void glEnd() { // do nothing } ! protected void glFinish() { // do nothing } ! protected void glFlush() { // do nothing } ! protected void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) { // do nothing } ! protected int glGetError() { return GL_NO_ERROR; } ! protected void glGetFloat(int pname, FloatBuffer params) { // do nothing } ! protected String glGetString(int name) { switch (name) { case GL_EXTENSIONS: --- 1,141 ---- package jake2.render; import java.nio.*; ! public class DummyGL implements QGL { ! private static QGL self = new DummyGL(); ! ! private DummyGL() { ! // singleton ! } ! ! public static QGL getInstance() { ! return self; ! } ! ! public void glAlphaFunc(int func, float ref) { // do nothing } ! public void glBegin(int mode) { // do nothing } ! public void glBindTexture(int target, int texture) { // do nothing } ! public void glBlendFunc(int sfactor, int dfactor) { // do nothing } ! public void glClear(int mask) { // do nothing } ! public void glClearColor(float red, float green, float blue, float alpha) { // do nothing } ! public void glColor3f(float red, float green, float blue) { // do nothing } ! public void glColor3ub(byte red, byte green, byte blue) { // do nothing } ! public void glColor4f(float red, float green, float blue, float alpha) { // do nothing } ! public void glColor4ub(byte red, byte green, byte blue, byte alpha) { // do nothing } ! public void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) { // do nothing } ! public void glColorPointer(int size, int stride, FloatBuffer pointer) { // do nothing } ! public void glCullFace(int mode) { // do nothing } ! public void glDeleteTextures(IntBuffer textures) { // do nothing } ! public void glDepthFunc(int func) { // do nothing } ! public void glDepthMask(boolean flag) { // do nothing } ! public void glDepthRange(double zNear, double zFar) { // do nothing } ! public void glDisable(int cap) { // do nothing } ! public void glDisableClientState(int cap) { // do nothing } ! public void glDrawArrays(int mode, int first, int count) { // do nothing } ! public void glDrawBuffer(int mode) { // do nothing } ! public void glDrawElements(int mode, IntBuffer indices) { // do nothing } ! public void glEnable(int cap) { // do nothing } ! public void glEnableClientState(int cap) { // do nothing } ! public void glEnd() { // do nothing } ! public void glFinish() { // do nothing } ! public void glFlush() { // do nothing } ! public void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) { // do nothing } ! public int glGetError() { return GL_NO_ERROR; } ! public void glGetFloat(int pname, FloatBuffer params) { // do nothing } ! public String glGetString(int name) { switch (name) { case GL_EXTENSIONS: *************** *** 138,217 **** } ! protected void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { // do nothing } ! protected void glLoadIdentity() { // do nothing } ! protected void glLoadMatrix(FloatBuffer m) { // do nothing } ! protected void glMatrixMode(int mode) { // do nothing } ! protected void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar) { // do nothing } ! protected void glPixelStorei(int pname, int param) { // do nothing } ! protected void glPointSize(float size) { // do nothing } ! protected void glPolygonMode(int face, int mode) { // do nothing } ! protected void glPopMatrix() { // do nothing } ! protected void glPushMatrix() { // do nothing } ! protected void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) { // do nothing } ! protected void glRotatef(float angle, float x, float y, float z) { // do nothing } ! protected void glScalef(float x, float y, float z) { // do nothing } ! protected void glScissor(int x, int y, int width, int height) { // do nothing } ! protected void glShadeModel(int mode) { // do nothing } ! protected void glTexCoord2f(float s, float t) { // do nothing } ! protected void glTexCoordPointer(int size, int stride, FloatBuffer pointer) { // do nothing } ! protected void glTexEnvi(int target, int pname, int param) { // do nothing } ! protected void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ByteBuffer pixels) { --- 146,225 ---- } ! public void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { // do nothing } ! public void glLoadIdentity() { // do nothing } ! public void glLoadMatrix(FloatBuffer m) { // do nothing } ! public void glMatrixMode(int mode) { // do nothing } ! public void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar) { // do nothing } ! public void glPixelStorei(int pname, int param) { // do nothing } ! public void glPointSize(float size) { // do nothing } ! public void glPolygonMode(int face, int mode) { // do nothing } ! public void glPopMatrix() { // do nothing } ! public void glPushMatrix() { // do nothing } ! public void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) { // do nothing } ! public void glRotatef(float angle, float x, float y, float z) { // do nothing } ! public void glScalef(float x, float y, float z) { // do nothing } ! public void glScissor(int x, int y, int width, int height) { // do nothing } ! public void glShadeModel(int mode) { // do nothing } ! public void glTexCoord2f(float s, float t) { // do nothing } ! public void glTexCoordPointer(int size, int stride, FloatBuffer pointer) { // do nothing } ! public void glTexEnvi(int target, int pname, int param) { // do nothing } ! public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ByteBuffer pixels) { *************** *** 219,223 **** } ! protected void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) { --- 227,231 ---- } ! public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) { *************** *** 225,237 **** } ! protected void glTexParameterf(int target, int pname, float param) { // do nothing } ! protected void glTexParameteri(int target, int pname, int param) { // do nothing } ! protected void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) { --- 233,245 ---- } ! public void glTexParameterf(int target, int pname, float param) { // do nothing } ! public void glTexParameteri(int target, int pname, int param) { // do nothing } ! public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) { *************** *** 239,280 **** } ! protected void glTranslatef(float x, float y, float z) { // do nothing } ! protected void glVertex2f(float x, float y) { // do nothing } ! protected void glVertex3f(float x, float y, float z) { // do nothing } ! protected void glVertexPointer(int size, int stride, FloatBuffer pointer) { // do nothing } ! protected void glViewport(int x, int y, int width, int height) { // do nothing } ! protected void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { // do nothing } ! protected void glActiveTextureARB(int texture) { // do nothing } ! protected void glClientActiveTextureARB(int texture) { // do nothing } ! protected void glPointParameterEXT(int pname, FloatBuffer pfParams) { // do nothing } ! protected void glPointParameterfEXT(int pname, float param) { // do nothing } --- 247,304 ---- } ! public void glTranslatef(float x, float y, float z) { // do nothing } ! public void glVertex2f(float x, float y) { // do nothing } ! public void glVertex3f(float x, float y, float z) { // do nothing } ! public void glVertexPointer(int size, int stride, FloatBuffer pointer) { // do nothing } ! public void glViewport(int x, int y, int width, int height) { // do nothing } ! public void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { // do nothing } ! public void glActiveTextureARB(int texture) { // do nothing } ! public void glClientActiveTextureARB(int texture) { // do nothing } ! public void glPointParameterEXT(int pname, FloatBuffer pfParams) { // do nothing } ! public void glPointParameterfEXT(int pname, float param) { ! // do nothing ! } ! ! public void glLockArraysEXT(int first, int count) { ! // do nothing ! } ! ! public void glArrayElement(int index) { ! // do nothing ! } ! ! public void glUnlockArraysEXT() { ! // do nothing ! } ! ! public void glMultiTexCoord2f(int target, float s, float t) { // do nothing } |