public class ImmediateModeOGLRenderer extends java.lang.Object implements SGL
| Modifier and Type | Field and Description | 
|---|---|
| protected float | alphaScaleThe global colour scale | 
GL_ALWAYS, GL_BGRA, GL_BLEND, GL_CLAMP, GL_CLIP_PLANE0, GL_CLIP_PLANE1, GL_CLIP_PLANE2, GL_CLIP_PLANE3, GL_COLOR_BUFFER_BIT, GL_COLOR_CLEAR_VALUE, GL_COLOR_SUM_EXT, GL_COMPILE, GL_COMPILE_AND_EXECUTE, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DST_ALPHA, GL_EQUAL, GL_LINE_SMOOTH, GL_LINE_STRIP, GL_LINE_WIDTH, GL_LINEAR, GL_LINES, GL_MAX_TEXTURE_SIZE, GL_MIRROR_CLAMP_TO_EDGE_EXT, GL_MODELVIEW_MATRIX, GL_MODULATE, GL_NEAREST, GL_NOTEQUAL, GL_ONE, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_POINT_SMOOTH, GL_POINTS, GL_POLYGON_SMOOTH, GL_QUADS, GL_RGB, GL_RGBA, GL_RGBA16, GL_RGBA8, GL_SCISSOR_TEST, GL_SRC_ALPHA, GL_SRC_COLOR, GL_TEXTURE_2D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_UNSIGNED_BYTE| Constructor and Description | 
|---|
| ImmediateModeOGLRenderer() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canSecondaryColor() | 
| boolean | canTextureMirrorClamp()Check if the mirror clamp extension is available | 
| void | enterOrtho(int xsize,
          int ysize)Enter orthographic mode | 
| void | flush()Flush the current state of the renderer down to GL | 
| float[] | getCurrentColor()Get the current colour being rendered | 
| void | glBegin(int geomType)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glBindTexture(int target,
             int id)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glBlendFunc(int src,
           int dest)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glCallList(int id)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glClear(int value)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glClearColor(float red,
            float green,
            float blue,
            float alpha)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glClearDepth(float value)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glClipPlane(int plane,
           java.nio.DoubleBuffer buffer)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glColor4f(float r,
         float g,
         float b,
         float a)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glColorMask(boolean red,
           boolean green,
           boolean blue,
           boolean alpha)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glCopyTexImage2D(int target,
                int level,
                int internalFormat,
                int x,
                int y,
                int width,
                int height,
                int border)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glDeleteLists(int list,
             int count)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glDeleteTextures(java.nio.IntBuffer buffer)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glDepthFunc(int func)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glDepthMask(boolean mask)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glDisable(int item)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glEnable(int item)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glEnd()OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glEndList()OpenGL Method - @url http://www.opengl.org/documentation/ | 
| int | glGenLists(int count)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glGenTextures(java.nio.IntBuffer ids)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glGetError()OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glGetFloat(int id,
          java.nio.FloatBuffer ret)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glGetInteger(int id,
            java.nio.IntBuffer ret)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glGetTexImage(int target,
             int level,
             int format,
             int type,
             java.nio.ByteBuffer pixels)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glLineWidth(float width)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glLoadIdentity()OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glLoadMatrix(java.nio.FloatBuffer buffer)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glNewList(int id,
         int option)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glPointSize(float size)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glPopMatrix()OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glPushMatrix()OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glReadPixels(int x,
            int y,
            int width,
            int height,
            int format,
            int type,
            java.nio.ByteBuffer pixels)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glRotatef(float angle,
         float x,
         float y,
         float z)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glScalef(float x,
        float y,
        float z)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glScissor(int x,
         int y,
         int width,
         int height)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glSecondaryColor3ubEXT(byte b,
                      byte c,
                      byte d) | 
| void | glTexCoord2f(float u,
            float v)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glTexEnvi(int target,
         int mode,
         int value)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glTexImage2D(int target,
            int i,
            int dstPixelFormat,
            int width,
            int height,
            int j,
            int srcPixelFormat,
            int glUnsignedByte,
            java.nio.ByteBuffer textureBuffer)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glTexParameteri(int target,
               int param,
               int value)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glTexSubImage2D(int glTexture2d,
               int i,
               int pageX,
               int pageY,
               int width,
               int height,
               int glBgra,
               int glUnsignedByte,
               java.nio.ByteBuffer scratchByteBuffer)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glTranslatef(float x,
            float y,
            float z)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glVertex2f(float x,
          float y)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | glVertex3f(float x,
          float y,
          float z)OpenGL Method - @url http://www.opengl.org/documentation/ | 
| void | initDisplay(int width,
           int height)Initialise the display | 
| void | setGlobalAlphaScale(float alphaScale)Set the scaling we'll apply to any colour binds in this renderer | 
public void initDisplay(int width,
                        int height)
SGLinitDisplay in interface SGLwidth - The width of the displayheight - The height of the displaypublic void enterOrtho(int xsize,
                       int ysize)
SGLenterOrtho in interface SGLxsize - The size of the ortho displayysize - The size of the ortho displaypublic void glBegin(int geomType)
SGLpublic void glBindTexture(int target,
                          int id)
SGLglBindTexture in interface SGLpublic void glBlendFunc(int src,
                        int dest)
SGLglBlendFunc in interface SGLpublic void glCallList(int id)
SGLglCallList in interface SGLpublic void glClear(int value)
SGLpublic void glClearColor(float red,
                         float green,
                         float blue,
                         float alpha)
SGLglClearColor in interface SGLpublic void glClipPlane(int plane,
                        java.nio.DoubleBuffer buffer)
SGLglClipPlane in interface SGLpublic void glColor4f(float r,
                      float g,
                      float b,
                      float a)
SGLpublic void glColorMask(boolean red,
                        boolean green,
                        boolean blue,
                        boolean alpha)
SGLglColorMask in interface SGLpublic void glCopyTexImage2D(int target,
                             int level,
                             int internalFormat,
                             int x,
                             int y,
                             int width,
                             int height,
                             int border)
SGLglCopyTexImage2D in interface SGLpublic void glDeleteTextures(java.nio.IntBuffer buffer)
SGLglDeleteTextures in interface SGLpublic void glDisable(int item)
SGLpublic void glEnable(int item)
SGLpublic void glEnd()
SGLpublic void glEndList()
SGLpublic int glGenLists(int count)
SGLglGenLists in interface SGLpublic void glGetFloat(int id,
                       java.nio.FloatBuffer ret)
SGLglGetFloat in interface SGLpublic void glGetInteger(int id,
                         java.nio.IntBuffer ret)
SGLglGetInteger in interface SGLpublic void glGetTexImage(int target,
                          int level,
                          int format,
                          int type,
                          java.nio.ByteBuffer pixels)
SGLglGetTexImage in interface SGLpublic void glLineWidth(float width)
SGLglLineWidth in interface SGLpublic void glLoadIdentity()
SGLglLoadIdentity in interface SGLpublic void glNewList(int id,
                      int option)
SGLpublic void glPointSize(float size)
SGLglPointSize in interface SGLpublic void glPopMatrix()
SGLglPopMatrix in interface SGLpublic void glPushMatrix()
SGLglPushMatrix in interface SGLpublic void glReadPixels(int x,
                         int y,
                         int width,
                         int height,
                         int format,
                         int type,
                         java.nio.ByteBuffer pixels)
SGLglReadPixels in interface SGLpublic void glRotatef(float angle,
                      float x,
                      float y,
                      float z)
SGLpublic void glScalef(float x,
                     float y,
                     float z)
SGLpublic void glScissor(int x,
                      int y,
                      int width,
                      int height)
SGLpublic void glTexCoord2f(float u,
                         float v)
SGLglTexCoord2f in interface SGLpublic void glTexEnvi(int target,
                      int mode,
                      int value)
SGLpublic void glTranslatef(float x,
                         float y,
                         float z)
SGLglTranslatef in interface SGLpublic void glVertex2f(float x,
                       float y)
SGLglVertex2f in interface SGLpublic void glVertex3f(float x,
                       float y,
                       float z)
SGLglVertex3f in interface SGLpublic void flush()
SGLpublic void glTexParameteri(int target,
                            int param,
                            int value)
SGLglTexParameteri in interface SGLpublic float[] getCurrentColor()
SGLgetCurrentColor in interface SGLpublic void glDeleteLists(int list,
                          int count)
SGLglDeleteLists in interface SGLpublic void glClearDepth(float value)
SGLglClearDepth in interface SGLpublic void glDepthFunc(int func)
SGLglDepthFunc in interface SGLpublic void glDepthMask(boolean mask)
SGLglDepthMask in interface SGLpublic void setGlobalAlphaScale(float alphaScale)
SGLsetGlobalAlphaScale in interface SGLalphaScale - The scale to apply to any colour bindspublic void glLoadMatrix(java.nio.FloatBuffer buffer)
SGLglLoadMatrix in interface SGLpublic void glGenTextures(java.nio.IntBuffer ids)
SGLglGenTextures in interface SGLpublic void glGetError()
SGLglGetError in interface SGLpublic void glTexImage2D(int target,
                         int i,
                         int dstPixelFormat,
                         int width,
                         int height,
                         int j,
                         int srcPixelFormat,
                         int glUnsignedByte,
                         java.nio.ByteBuffer textureBuffer)
SGLglTexImage2D in interface SGLpublic void glTexSubImage2D(int glTexture2d,
                            int i,
                            int pageX,
                            int pageY,
                            int width,
                            int height,
                            int glBgra,
                            int glUnsignedByte,
                            java.nio.ByteBuffer scratchByteBuffer)
SGLglTexSubImage2D in interface SGLpublic boolean canTextureMirrorClamp()
SGLcanTextureMirrorClamp in interface SGLpublic boolean canSecondaryColor()
canSecondaryColor in interface SGLpublic void glSecondaryColor3ubEXT(byte b,
                                   byte c,
                                   byte d)
glSecondaryColor3ubEXT in interface SGL