Class NativeDesktopPainter

java.lang.Object
org.jzy3d.painters.AbstractPainter
org.jzy3d.painters.NativeDesktopPainter
All Implemented Interfaces:
IPainter

public class NativeDesktopPainter extends AbstractPainter implements IPainter
  • Field Details

    • gl

      protected com.jogamp.opengl.GL gl
    • glu

      protected com.jogamp.opengl.glu.GLU glu
    • glut

      protected com.jogamp.opengl.util.gl2.GLUT glut
    • textLengthFallbackImage

      protected BufferedImage textLengthFallbackImage
      A 1x1 image used for processing text length in pixel if no context is available
    • fontMetricsFallback

      protected FontMetrics fontMetricsFallback
    • GL_RGBA

      public static final int GL_RGBA
      See Also:
    • GL_UNSIGNED_BYTE

      public static final int GL_UNSIGNED_BYTE
      See Also:
    • txtRendererMap

      protected Map<Font, com.jogamp.opengl.util.awt.TextRenderer> txtRendererMap
  • Constructor Details

    • NativeDesktopPainter

      public NativeDesktopPainter()
  • Method Details

    • getGL

      public com.jogamp.opengl.GL getGL()
    • getGL2

      public com.jogamp.opengl.GL2 getGL2()
    • setGL

      public void setGL(com.jogamp.opengl.GL gl)
    • getGLU

      public com.jogamp.opengl.glu.GLU getGLU()
    • setGLU

      public void setGLU(com.jogamp.opengl.glu.GLU glu)
    • getGLUT

      public com.jogamp.opengl.util.gl2.GLUT getGLUT()
    • setGLUT

      public void setGLUT(com.jogamp.opengl.util.gl2.GLUT glut)
    • acquireGL

      public Object acquireGL()
      Specified by:
      acquireGL in interface IPainter
    • releaseGL

      public void releaseGL()
      Specified by:
      releaseGL in interface IPainter
    • getCurrentGL

      public com.jogamp.opengl.GL getCurrentGL(ICanvas canvas)
      Get the current GL context of the canvas and make it current. This is usefull when needing to get a GL instance outside of the context of the GLEventListener, e.g. when clicking the frame with mouse.
    • getCurrentContext

      public com.jogamp.opengl.GLContext getCurrentContext(ICanvas canvas)
    • configureGL

      public void configureGL(Quality quality)
      Specified by:
      configureGL in interface IPainter
    • getWindowingToolkit

      public WindowingToolkit getWindowingToolkit()
      Specified by:
      getWindowingToolkit in interface IPainter
      Overrides:
      getWindowingToolkit in class AbstractPainter
    • clearCache

      public void clearCache()
      Specified by:
      clearCache in interface IPainter
      Overrides:
      clearCache in class AbstractPainter
    • getViewPortAsInt

      public int[] getViewPortAsInt()
      Specified by:
      getViewPortAsInt in interface IPainter
    • getProjectionAsDouble

      public double[] getProjectionAsDouble()
      Specified by:
      getProjectionAsDouble in interface IPainter
    • getProjectionAsFloat

      public float[] getProjectionAsFloat()
      Specified by:
      getProjectionAsFloat in interface IPainter
    • getModelViewAsDouble

      public double[] getModelViewAsDouble()
      Specified by:
      getModelViewAsDouble in interface IPainter
    • getModelViewAsFloat

      public float[] getModelViewAsFloat()
      Specified by:
      getModelViewAsFloat in interface IPainter
    • glPushMatrix

      public void glPushMatrix()
      OPEN GL Interface
      Specified by:
      glPushMatrix in interface IPainter
    • glPopMatrix

      public void glPopMatrix()
      Specified by:
      glPopMatrix in interface IPainter
    • glMatrixMode

      public void glMatrixMode(int mode)
      Specified by:
      glMatrixMode in interface IPainter
    • glLoadIdentity

      public void glLoadIdentity()
      Specified by:
      glLoadIdentity in interface IPainter
    • glScalef

      public void glScalef(float x, float y, float z)
      Specified by:
      glScalef in interface IPainter
    • glTranslatef

      public void glTranslatef(float x, float y, float z)
      Specified by:
      glTranslatef in interface IPainter
    • glRotatef

      public void glRotatef(float angle, float x, float y, float z)
      Specified by:
      glRotatef in interface IPainter
    • glEnable

      public void glEnable(int type)
      Specified by:
      glEnable in interface IPainter
    • glDisable

      public void glDisable(int type)
      Specified by:
      glDisable in interface IPainter
    • glPointSize

      public void glPointSize(float width)
      Specified by:
      glPointSize in interface IPainter
    • glLineWidth

      public void glLineWidth(float width)
      Specified by:
      glLineWidth in interface IPainter
    • glBegin

      public void glBegin(int type)
      Specified by:
      glBegin in interface IPainter
    • glColor3f

      public void glColor3f(float r, float g, float b)
      Specified by:
      glColor3f in interface IPainter
    • glColor4f

      public void glColor4f(float r, float g, float b, float a)
      Specified by:
      glColor4f in interface IPainter
    • glVertex3f

      public void glVertex3f(float x, float y, float z)
      Specified by:
      glVertex3f in interface IPainter
    • glVertex3d

      public void glVertex3d(double x, double y, double z)
      Specified by:
      glVertex3d in interface IPainter
    • glEnd

      public void glEnd()
      Specified by:
      glEnd in interface IPainter
    • glFrontFace

      public void glFrontFace(int mode)
      Specified by:
      glFrontFace in interface IPainter
    • glCullFace

      public void glCullFace(int mode)
      Specified by:
      glCullFace in interface IPainter
    • glPolygonMode

      public void glPolygonMode(PolygonMode mode, PolygonFill fill)
      Specified by:
      glPolygonMode in interface IPainter
    • polygonModeValue

      protected int polygonModeValue(PolygonMode mode)
    • polygonFillValue

      protected int polygonFillValue(PolygonFill mode)
    • glPolygonMode

      public void glPolygonMode(int frontOrBack, int fill)
      Specified by:
      glPolygonMode in interface IPainter
    • glPolygonOffset

      public void glPolygonOffset(float factor, float units)
      Specified by:
      glPolygonOffset in interface IPainter
    • glLineStipple

      public void glLineStipple(int factor, short pattern)
      Specified by:
      glLineStipple in interface IPainter
    • glTexCoord2f

      public void glTexCoord2f(float s, float t)
      Specified by:
      glTexCoord2f in interface IPainter
    • glTexEnvf

      public void glTexEnvf(int target, int pname, float param)
      Specified by:
      glTexEnvf in interface IPainter
    • glTexEnvi

      public void glTexEnvi(int target, int pname, int param)
      Specified by:
      glTexEnvi in interface IPainter
    • glRasterPos3f

      public void glRasterPos3f(float x, float y, float z)
      Specified by:
      glRasterPos3f in interface IPainter
    • glDrawPixels

      public void glDrawPixels(int width, int height, int format, int type, Buffer pixels)
      Specified by:
      glDrawPixels in interface IPainter
    • glPixelZoom

      public void glPixelZoom(float xfactor, float yfactor)
      Specified by:
      glPixelZoom in interface IPainter
    • glPixelStorei

      public void glPixelStorei(int pname, int param)
      Specified by:
      glPixelStorei in interface IPainter
    • glPixelStore

      public void glPixelStore(PixelStore store, int param)
      Specified by:
      glPixelStore in interface IPainter
    • glBitmap

      public void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte[] bitmap, int bitmap_offset)
      Specified by:
      glBitmap in interface IPainter
    • drawImage

      public void drawImage(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition)
      Specified by:
      drawImage in interface IPainter
    • glutBitmapString

      public void glutBitmapString(int font, String string)
      Specified by:
      glutBitmapString in interface IPainter
    • drawText

      public void drawText(Font font, String label, Coord3d position, Color color, float rotation)
      Render 2D text at the given 3D position. The Font can be any font name and size supported by AWT. Rotation is in radian and is applied at the center of the text to avoid messing up text layout.
      Specified by:
      drawText in interface IPainter
    • getOrCreateTextRenderer

      protected com.jogamp.opengl.util.awt.TextRenderer getOrCreateTextRenderer(Font font)
    • glutBitmapString

      public void glutBitmapString(Font axisFont, String label, Coord3d p, Color c)
      Render 2D text at the given 3D position using a font as supported by glutBitmapString(int, String).
      Specified by:
      glutBitmapString in interface IPainter
    • glutBitmapLength

      public int glutBitmapLength(int font, String string)
      Specified by:
      glutBitmapLength in interface IPainter
    • getTextLengthInPixels

      public int getTextLengthInPixels(int font, String string)
      Specified by:
      getTextLengthInPixels in interface IPainter
    • getTextLengthInPixels

      public int getTextLengthInPixels(Font font, String string)
      Specified by:
      getTextLengthInPixels in interface IPainter
    • glGenLists

      public int glGenLists(int range)
      Specified by:
      glGenLists in interface IPainter
    • glNewList

      public void glNewList(int list, int mode)
      Specified by:
      glNewList in interface IPainter
    • glNewList

      public void glNewList(int list, ListMode mode)
      Specified by:
      glNewList in interface IPainter
    • glEndList

      public void glEndList()
      Specified by:
      glEndList in interface IPainter
    • glCallList

      public void glCallList(int list)
      Specified by:
      glCallList in interface IPainter
    • glIsList

      public boolean glIsList(int list)
      Specified by:
      glIsList in interface IPainter
    • glDeleteLists

      public void glDeleteLists(int list, int range)
      Specified by:
      glDeleteLists in interface IPainter
    • gluDisk

      public void gluDisk(double inner, double outer, int slices, int loops)
      Specified by:
      gluDisk in interface IPainter
    • glutSolidSphere

      public void glutSolidSphere(double radius, int slices, int stacks)
      Specified by:
      glutSolidSphere in interface IPainter
    • gluSphere

      public void gluSphere(double radius, int slices, int stacks)
      Specified by:
      gluSphere in interface IPainter
    • gluCylinder

      public void gluCylinder(double base, double top, double height, int slices, int stacks)
      Specified by:
      gluCylinder in interface IPainter
    • glutSolidCube

      public void glutSolidCube(float size)
      Specified by:
      glutSolidCube in interface IPainter
    • glutSolidTeapot

      public void glutSolidTeapot(float scale)
      Specified by:
      glutSolidTeapot in interface IPainter
    • glutWireTeapot

      public void glutWireTeapot(float scale)
      Specified by:
      glutWireTeapot in interface IPainter
    • glFeedbackBuffer

      public void glFeedbackBuffer(int size, int type, FloatBuffer buffer)
      Specified by:
      glFeedbackBuffer in interface IPainter
    • glRenderMode

      public int glRenderMode(int mode)
      Specified by:
      glRenderMode in interface IPainter
    • glRenderMode

      public int glRenderMode(RenderMode mode)
      Specified by:
      glRenderMode in interface IPainter
    • glPassThrough

      public void glPassThrough(float token)
      Specified by:
      glPassThrough in interface IPainter
    • glStencilFunc

      public void glStencilFunc(StencilFunc func, int ref, int mask)
      Specified by:
      glStencilFunc in interface IPainter
    • glStencilMask

      public void glStencilMask(int mask)
      Specified by:
      glStencilMask in interface IPainter
    • glStencilMask_True

      public void glStencilMask_True()
      Specified by:
      glStencilMask_True in interface IPainter
    • glStencilMask_False

      public void glStencilMask_False()
      Specified by:
      glStencilMask_False in interface IPainter
    • glStencilOp

      public void glStencilOp(StencilOp fail, StencilOp zfail, StencilOp zpass)
      Specified by:
      glStencilOp in interface IPainter
    • glClearStencil

      public void glClearStencil(int s)
      Specified by:
      glClearStencil in interface IPainter
    • toInt

      protected int toInt(StencilOp fail)
    • glOrtho

      public void glOrtho(double left, double right, double bottom, double top, double near_val, double far_val)
      Specified by:
      glOrtho in interface IPainter
    • gluOrtho2D

      public void gluOrtho2D(double left, double right, double bottom, double top)
      Specified by:
      gluOrtho2D in interface IPainter
    • gluPerspective

      public void gluPerspective(double fovy, double aspect, double zNear, double zFar)
      Specified by:
      gluPerspective in interface IPainter
    • glFrustum

      public void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar)
      Specified by:
      glFrustum in interface IPainter
    • gluLookAt

      public void gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)
      Specified by:
      gluLookAt in interface IPainter
    • glViewport

      public void glViewport(int x, int y, int width, int height)
      Specified by:
      glViewport in interface IPainter
    • glClipPlane

      public void glClipPlane(int plane, double[] equation)
      Specified by:
      glClipPlane in interface IPainter
    • glEnable_ClipPlane

      public void glEnable_ClipPlane(int plane)
      Specified by:
      glEnable_ClipPlane in interface IPainter
    • clipPlaneId

      public int clipPlaneId(int id)
      Return the GL clip plane ID according to an ID in [0;5]
      Specified by:
      clipPlaneId in interface IPainter
    • glDisable_ClipPlane

      public void glDisable_ClipPlane(int plane)
      Specified by:
      glDisable_ClipPlane in interface IPainter
    • gluUnProject

      public boolean gluUnProject(float winX, float winY, float winZ, float[] model, int model_offset, float[] proj, int proj_offset, int[] view, int view_offset, float[] objPos, int objPos_offset)
      Specified by:
      gluUnProject in interface IPainter
    • gluProject

      public boolean gluProject(float objX, float objY, float objZ, float[] model, int model_offset, float[] proj, int proj_offset, int[] view, int view_offset, float[] winPos, int winPos_offset)
      Specified by:
      gluProject in interface IPainter
    • glGetIntegerv

      public void glGetIntegerv(int pname, int[] data, int data_offset)
      Specified by:
      glGetIntegerv in interface IPainter
    • glGetDoublev

      public void glGetDoublev(int pname, double[] params, int params_offset)
      Specified by:
      glGetDoublev in interface IPainter
    • glGetFloatv

      public void glGetFloatv(int pname, float[] data, int data_offset)
      Specified by:
      glGetFloatv in interface IPainter
    • glDepthFunc

      public void glDepthFunc(int func)
      Specified by:
      glDepthFunc in interface IPainter
    • glDepthRangef

      public void glDepthRangef(float near, float far)
      Specified by:
      glDepthRangef in interface IPainter
    • glBlendFunc

      public void glBlendFunc(int sfactor, int dfactor)
      Specified by:
      glBlendFunc in interface IPainter
    • glHint

      public void glHint(int target, int mode)
      Specified by:
      glHint in interface IPainter
    • glShadeModel

      public void glShadeModel(ColorModel colorModel)
      Specified by:
      glShadeModel in interface IPainter
    • glShadeModel

      public void glShadeModel(int mode)
      Specified by:
      glShadeModel in interface IPainter
    • glShadeModel_Smooth

      public void glShadeModel_Smooth()
      Specified by:
      glShadeModel_Smooth in interface IPainter
    • glShadeModel_Flat

      public void glShadeModel_Flat()
      Specified by:
      glShadeModel_Flat in interface IPainter
    • glMaterialfv

      public void glMaterialfv(int face, int pname, float[] params, int params_offset)
      Specified by:
      glMaterialfv in interface IPainter
    • glNormal3f

      public void glNormal3f(float nx, float ny, float nz)
      Specified by:
      glNormal3f in interface IPainter
    • glLightModeli

      public void glLightModeli(int mode, int value)
      Specified by:
      glLightModeli in interface IPainter
    • glLightModelfv

      public void glLightModelfv(int mode, float[] value)
      Specified by:
      glLightModelfv in interface IPainter
    • glLightModel

      public void glLightModel(LightModel model, boolean value)
      Specified by:
      glLightModel in interface IPainter
    • glLightModel

      public void glLightModel(LightModel model, Color color)
      Specified by:
      glLightModel in interface IPainter
    • glLightf

      public void glLightf(int light, Attenuation.Type attenuationType, float value)
      Specified by:
      glLightf in interface IPainter
    • glLightf

      public void glLightf(int light, int pname, float value)
      Specified by:
      glLightf in interface IPainter
    • glLightfv

      public void glLightfv(int light, int pname, float[] params, int params_offset)
      Specified by:
      glLightfv in interface IPainter
    • glLight_Position

      public void glLight_Position(int lightId, float[] positionZero)
      Specified by:
      glLight_Position in interface IPainter
    • glLight_Ambiant

      public void glLight_Ambiant(int lightId, Color ambiantColor)
      Specified by:
      glLight_Ambiant in interface IPainter
    • glLight_Diffuse

      public void glLight_Diffuse(int lightId, Color diffuseColor)
      Specified by:
      glLight_Diffuse in interface IPainter
    • glLight_Specular

      public void glLight_Specular(int lightId, Color specularColor)
      Specified by:
      glLight_Specular in interface IPainter
    • glLight_Shininess

      public void glLight_Shininess(int lightId, float value)
      Specified by:
      glLight_Shininess in interface IPainter
    • glEnable_Light

      public void glEnable_Light(int light)
      Specified by:
      glEnable_Light in interface IPainter
    • glDisable_Light

      public void glDisable_Light(int light)
      Specified by:
      glDisable_Light in interface IPainter
    • lightId

      protected int lightId(int id)
    • glClearColor

      public void glClearColor(float red, float green, float blue, float alpha)
      Specified by:
      glClearColor in interface IPainter
    • glClearDepth

      public void glClearDepth(double d)
      Specified by:
      glClearDepth in interface IPainter
    • glClear

      public void glClear(int mask)
      Specified by:
      glClear in interface IPainter
    • glClearColorAndDepthBuffers

      public void glClearColorAndDepthBuffers()
      Specified by:
      glClearColorAndDepthBuffers in interface IPainter
    • glInitNames

      public void glInitNames()
      Specified by:
      glInitNames in interface IPainter
    • glLoadName

      public void glLoadName(int name)
      Specified by:
      glLoadName in interface IPainter
    • glPushName

      public void glPushName(int name)
      Specified by:
      glPushName in interface IPainter
    • glPopName

      public void glPopName()
      Specified by:
      glPopName in interface IPainter
    • glSelectBuffer

      public void glSelectBuffer(int size, IntBuffer buffer)
      Specified by:
      glSelectBuffer in interface IPainter
    • gluPickMatrix

      public void gluPickMatrix(double x, double y, double delX, double delY, int[] viewport, int viewport_offset)
      Specified by:
      gluPickMatrix in interface IPainter
    • glFlush

      public void glFlush()
      Specified by:
      glFlush in interface IPainter
    • glEvalCoord2f

      public void glEvalCoord2f(float u, float v)
      Specified by:
      glEvalCoord2f in interface IPainter
    • glMap2f

      public void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points)
      Specified by:
      glMap2f in interface IPainter
    • glEnable_PolygonOffsetFill

      public void glEnable_PolygonOffsetFill()
      Specified by:
      glEnable_PolygonOffsetFill in interface IPainter
    • glDisable_PolygonOffsetFill

      public void glDisable_PolygonOffsetFill()
      Specified by:
      glDisable_PolygonOffsetFill in interface IPainter
    • glEnable_PolygonOffsetLine

      public void glEnable_PolygonOffsetLine()
      Specified by:
      glEnable_PolygonOffsetLine in interface IPainter
    • glDisable_PolygonOffsetLine

      public void glDisable_PolygonOffsetLine()
      Specified by:
      glDisable_PolygonOffsetLine in interface IPainter
    • glEnable_Blend

      public void glEnable_Blend()
      Specified by:
      glEnable_Blend in interface IPainter
    • glDisable_Blend

      public void glDisable_Blend()
      Specified by:
      glDisable_Blend in interface IPainter
    • glMatrixMode_ModelView

      public void glMatrixMode_ModelView()
      Specified by:
      glMatrixMode_ModelView in interface IPainter
    • glMatrixMode_Projection

      public void glMatrixMode_Projection()
      Specified by:
      glMatrixMode_Projection in interface IPainter
    • glBegin_Polygon

      public void glBegin_Polygon()
      Specified by:
      glBegin_Polygon in interface IPainter
    • glBegin_Quad

      public void glBegin_Quad()
      Specified by:
      glBegin_Quad in interface IPainter
    • glBegin_Triangle

      public void glBegin_Triangle()
      Specified by:
      glBegin_Triangle in interface IPainter
    • glBegin_Point

      public void glBegin_Point()
      Specified by:
      glBegin_Point in interface IPainter
    • glBegin_LineStrip

      public void glBegin_LineStrip()
      Specified by:
      glBegin_LineStrip in interface IPainter
    • glBegin_LineLoop

      public void glBegin_LineLoop()
      Specified by:
      glBegin_LineLoop in interface IPainter
    • glBegin_Line

      public void glBegin_Line()
      Specified by:
      glBegin_Line in interface IPainter
    • glEnable_LineStipple

      public void glEnable_LineStipple()
      Specified by:
      glEnable_LineStipple in interface IPainter
    • glDisable_LineStipple

      public void glDisable_LineStipple()
      Specified by:
      glDisable_LineStipple in interface IPainter
    • glEnable_CullFace

      public void glEnable_CullFace()
      Specified by:
      glEnable_CullFace in interface IPainter
    • glDisable_CullFace

      public void glDisable_CullFace()
      Specified by:
      glDisable_CullFace in interface IPainter
    • glFrontFace_ClockWise

      public void glFrontFace_ClockWise()
      Specified by:
      glFrontFace_ClockWise in interface IPainter
    • glCullFace_Front

      public void glCullFace_Front()
      Specified by:
      glCullFace_Front in interface IPainter
    • glDisable_Lighting

      public void glDisable_Lighting()
      Specified by:
      glDisable_Lighting in interface IPainter
    • glEnable_Lighting

      public void glEnable_Lighting()
      Specified by:
      glEnable_Lighting in interface IPainter
    • glEnable_ColorMaterial

      public void glEnable_ColorMaterial()
      Specified by:
      glEnable_ColorMaterial in interface IPainter
    • glMaterial

      public void glMaterial(MaterialProperty material, Color color, boolean isFront)
      Specified by:
      glMaterial in interface IPainter
    • glMaterial

      public void glMaterial(MaterialProperty material, float[] color, boolean isFront)
      Specified by:
      glMaterial in interface IPainter
    • materialProperty

      protected int materialProperty(MaterialProperty material)
    • glEnable_PointSmooth

      public void glEnable_PointSmooth()
      Specified by:
      glEnable_PointSmooth in interface IPainter
    • glHint_PointSmooth_Nicest

      public void glHint_PointSmooth_Nicest()
      Specified by:
      glHint_PointSmooth_Nicest in interface IPainter
    • glDepthFunc

      public void glDepthFunc(DepthFunc func)
      Specified by:
      glDepthFunc in interface IPainter
    • glEnable_DepthTest

      public void glEnable_DepthTest()
      Specified by:
      glEnable_DepthTest in interface IPainter
    • glDisable_DepthTest

      public void glDisable_DepthTest()
      Specified by:
      glDisable_DepthTest in interface IPainter
    • glEnable_Stencil

      public void glEnable_Stencil()
      Specified by:
      glEnable_Stencil in interface IPainter
    • glDisable_Stencil

      public void glDisable_Stencil()
      Specified by:
      glDisable_Stencil in interface IPainter
    • direct

      protected IntBuffer direct(IntBuffer buffer)
      JOGL requires direct buffers for some functions : copy heap buffers to direct buffers.
    • glGenBuffers

      public void glGenBuffers(int n, int[] buffers, int offset)
      Specified by:
      glGenBuffers in interface IPainter
    • glDeleteBuffers

      public void glDeleteBuffers(int n, int[] buffers, int offset)
      Specified by:
      glDeleteBuffers in interface IPainter
    • glBindBuffer

      public void glBindBuffer(int target, int buffer)
      Specified by:
      glBindBuffer in interface IPainter
    • glBufferData

      public void glBufferData(int target, long size, Buffer data, int usage)
      Specified by:
      glBufferData in interface IPainter
    • glBufferSubData

      public void glBufferSubData(int target, long offset, long size, Buffer data)
      Specified by:
      glBufferSubData in interface IPainter
    • glEnableClientState

      public void glEnableClientState(int array)
      Specified by:
      glEnableClientState in interface IPainter
    • glDisableClientState

      public void glDisableClientState(int array)
      Specified by:
      glDisableClientState in interface IPainter
    • glVertexPointer

      public void glVertexPointer(int size, int type, int stride, long pointerOffset)
      Specified by:
      glVertexPointer in interface IPainter
    • glNormalPointer

      public void glNormalPointer(int type, int stride, long pointerOffset)
      Specified by:
      glNormalPointer in interface IPainter
    • glColorPointer

      public void glColorPointer(int size, int type, int stride, long pointerOffset)
      Specified by:
      glColorPointer in interface IPainter
    • glTexCoordPointer

      public void glTexCoordPointer(int size, int type, int stride, long pointerOffset)
      Specified by:
      glTexCoordPointer in interface IPainter
    • glDrawArrays

      public void glDrawArrays(int mode, int first, int count)
      Specified by:
      glDrawArrays in interface IPainter
    • glDrawElements

      public void glDrawElements(int mode, int count, int type, long indicesOffset)
      Specified by:
      glDrawElements in interface IPainter
    • glMultiDrawArrays

      public void glMultiDrawArrays(int mode, IntBuffer first, IntBuffer count, int drawcount)
      Specified by:
      glMultiDrawArrays in interface IPainter
    • glMultiDrawElements

      public void glMultiDrawElements(int mode, IntBuffer count, int type, LongBuffer indicesOffsets, int drawcount)
      Specified by:
      glMultiDrawElements in interface IPainter
    • glPrimitiveRestartIndex

      public void glPrimitiveRestartIndex(int index)
      Specified by:
      glPrimitiveRestartIndex in interface IPainter
    • glCreateShader

      public int glCreateShader(int type)
      Specified by:
      glCreateShader in interface IPainter
    • glShaderSource

      public void glShaderSource(int shader, String[] sources)
      Specified by:
      glShaderSource in interface IPainter
    • glCompileShader

      public void glCompileShader(int shader)
      Specified by:
      glCompileShader in interface IPainter
    • glGetShaderiv

      public void glGetShaderiv(int shader, int pname, int[] params, int offset)
      Specified by:
      glGetShaderiv in interface IPainter
    • glGetShaderInfoLog

      public String glGetShaderInfoLog(int shader)
      Specified by:
      glGetShaderInfoLog in interface IPainter
    • glDeleteShader

      public void glDeleteShader(int shader)
      Specified by:
      glDeleteShader in interface IPainter
    • glCreateProgram

      public int glCreateProgram()
      Specified by:
      glCreateProgram in interface IPainter
    • glAttachShader

      public void glAttachShader(int program, int shader)
      Specified by:
      glAttachShader in interface IPainter
    • glDetachShader

      public void glDetachShader(int program, int shader)
      Specified by:
      glDetachShader in interface IPainter
    • glLinkProgram

      public void glLinkProgram(int program)
      Specified by:
      glLinkProgram in interface IPainter
    • glValidateProgram

      public void glValidateProgram(int program)
      Specified by:
      glValidateProgram in interface IPainter
    • glGetProgramiv

      public void glGetProgramiv(int program, int pname, int[] params, int offset)
      Specified by:
      glGetProgramiv in interface IPainter
    • glGetProgramInfoLog

      public String glGetProgramInfoLog(int program)
      Specified by:
      glGetProgramInfoLog in interface IPainter
    • glUseProgram

      public void glUseProgram(int program)
      Specified by:
      glUseProgram in interface IPainter
    • glDeleteProgram

      public void glDeleteProgram(int program)
      Specified by:
      glDeleteProgram in interface IPainter
    • glGetUniformLocation

      public int glGetUniformLocation(int program, String name)
      Specified by:
      glGetUniformLocation in interface IPainter
    • glUniform1i

      public void glUniform1i(int location, int v0)
      Specified by:
      glUniform1i in interface IPainter
    • glUniform1f

      public void glUniform1f(int location, float v0)
      Specified by:
      glUniform1f in interface IPainter
    • glUniform1fv

      public void glUniform1fv(int location, int count, float[] value, int offset)
      Specified by:
      glUniform1fv in interface IPainter
    • glUniform2fv

      public void glUniform2fv(int location, int count, float[] value, int offset)
      Specified by:
      glUniform2fv in interface IPainter
    • glUniform3fv

      public void glUniform3fv(int location, int count, float[] value, int offset)
      Specified by:
      glUniform3fv in interface IPainter
    • glUniform4fv

      public void glUniform4fv(int location, int count, float[] value, int offset)
      Specified by:
      glUniform4fv in interface IPainter
    • glUniformMatrix4fv

      public void glUniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset)
      Specified by:
      glUniformMatrix4fv in interface IPainter
    • glGenTextures

      public void glGenTextures(int n, int[] textures, int offset)
      Specified by:
      glGenTextures in interface IPainter
    • glDeleteTextures

      public void glDeleteTextures(int n, int[] textures, int offset)
      Specified by:
      glDeleteTextures in interface IPainter
    • glBindTexture

      public void glBindTexture(int target, int texture)
      Specified by:
      glBindTexture in interface IPainter
    • glActiveTexture

      public void glActiveTexture(int texture)
      Specified by:
      glActiveTexture in interface IPainter
    • glTexParameteri

      public void glTexParameteri(int target, int pname, int param)
      Specified by:
      glTexParameteri in interface IPainter
    • glTexImage1D

      public void glTexImage1D(int target, int level, int internalFormat, int width, int border, int format, int type, Buffer pixels)
      Specified by:
      glTexImage1D in interface IPainter
    • glTexImage2D

      public void glTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, Buffer pixels)
      Specified by:
      glTexImage2D in interface IPainter
    • glTexImage3D

      public void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, Buffer pixels)
      Specified by:
      glTexImage3D in interface IPainter
    • glTexSubImage3D

      public void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels)
      Specified by:
      glTexSubImage3D in interface IPainter
    • glTexCoord3f

      public void glTexCoord3f(float s, float t, float r)
      Specified by:
      glTexCoord3f in interface IPainter
    • glGenFramebuffers

      public void glGenFramebuffers(int n, int[] framebuffers, int offset)
      Specified by:
      glGenFramebuffers in interface IPainter
    • glDeleteFramebuffers

      public void glDeleteFramebuffers(int n, int[] framebuffers, int offset)
      Specified by:
      glDeleteFramebuffers in interface IPainter
    • glBindFramebuffer

      public void glBindFramebuffer(int target, int framebuffer)
      Specified by:
      glBindFramebuffer in interface IPainter
    • glFramebufferTexture2D

      public void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
      Specified by:
      glFramebufferTexture2D in interface IPainter
    • glCheckFramebufferStatus

      public int glCheckFramebufferStatus(int target)
      Specified by:
      glCheckFramebufferStatus in interface IPainter
    • glDrawBuffer

      public void glDrawBuffer(int mode)
      Specified by:
      glDrawBuffer in interface IPainter
    • glDrawBuffers

      public void glDrawBuffers(int n, int[] buffers, int offset)
      Specified by:
      glDrawBuffers in interface IPainter
    • glGenQueries

      public void glGenQueries(int n, int[] ids, int offset)
      Specified by:
      glGenQueries in interface IPainter
    • glDeleteQueries

      public void glDeleteQueries(int n, int[] ids, int offset)
      Specified by:
      glDeleteQueries in interface IPainter
    • glBeginQuery

      public void glBeginQuery(int target, int id)
      Specified by:
      glBeginQuery in interface IPainter
    • glEndQuery

      public void glEndQuery(int target)
      Specified by:
      glEndQuery in interface IPainter
    • glGetQueryObjectuiv

      public void glGetQueryObjectuiv(int id, int pname, int[] params, int offset)
      Specified by:
      glGetQueryObjectuiv in interface IPainter
    • glAlphaFunc

      public void glAlphaFunc(int func, float ref)
      Specified by:
      glAlphaFunc in interface IPainter
    • glBlendEquation

      public void glBlendEquation(int mode)
      Specified by:
      glBlendEquation in interface IPainter
    • glBlendFuncSeparate

      public void glBlendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
      Specified by:
      glBlendFuncSeparate in interface IPainter
    • glGetError

      public int glGetError()
      Specified by:
      glGetError in interface IPainter
    • glGetString

      public String glGetString(int name)
      Specified by:
      glGetString in interface IPainter
    • glReadPixels

      public void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)
      Specified by:
      glReadPixels in interface IPainter