Package org.jzy3d.painters
Class EmulGLPainter
java.lang.Object
org.jzy3d.painters.AbstractPainter
org.jzy3d.painters.EmulGLPainter
- All Implemented Interfaces:
IPainter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FontMetricsprotected GLstatic final intstatic final intprotected GLUprotected GLUTprotected BufferedImageA 1x1 image used for processing text length in pixel if no context is availableFields inherited from class org.jzy3d.painters.AbstractPainter
camera, canvas, os, view -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIn the context of a multithreaded application, this method allows retrieving the GL context for the calling thread.intclipPlaneId(int id) Return the GL clip plane ID according to an ID in [0;5]voidconfigureGL(Quality quality) Apply quality settings as OpenGL commandsprotected double[]dbl(float[] values) voiddrawImage(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition) A very failing implementation.voidRender 2D text at the given 3D position.getGL()getGLU()getGLUT()double[]float[]double[]float[]intgetTextLengthInPixels(int font, String string) intgetTextLengthInPixels(Font font, String string) Text length processing based on AWTFontMetricsobtained by retrieving the graphic context of theGLCanvas.int[]voidglBegin(int type) voidvoidvoidvoidvoidvoidvoidvoidglBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte[] bitmap, int bitmap_offset) voidglBlendFunc(int sfactor, int dfactor) voidglCallList(int list) voidglClear(int mask) voidglClearColor(float red, float green, float blue, float alpha) voidvoidglClearDepth(double d) voidglClearStencil(int s) glClearStencil specifies the index used by glClear to clear the stencil buffer. s is masked with 2 m - 1 , where m is the number of bits in the stencil buffer.voidglClipPlane(int plane, double[] equation) voidglColor3f(float r, float g, float b) voidglColor4f(float r, float g, float b, float a) voidglCullFace(int mode) voidvoidglDeleteLists(int list, int range) voidglDepthFunc(int func) voidglDepthFunc(DepthFunc func) voidglDepthRangef(float near, float far) voidglDisable(int type) voidvoidglDisable_ClipPlane(int plane) voidvoidvoidglDisable_Light(int light) voidvoidvoidvoidvoidvoidglDrawPixels(int width, int height, int format, int type, Buffer pixels) Not working yet.voidglEnable(int type) voidvoidglEnable_ClipPlane(int plane) voidvoidvoidvoidglEnable_Light(int light) voidvoidvoidvoidNOT SUPPORTED in jGL wich emulate OpenGL 1 only.voidvoidvoidglEnd()voidvoidglEvalCoord2f(float u, float v) voidglFeedbackBuffer(int size, int type, FloatBuffer buffer) voidglFlush()voidglFrontFace(int mode) voidvoidglFrustum(double left, double right, double bottom, double top, double zNear, double zFar) intglGenLists(int range) voidglGetDoublev(int pname, double[] params, int params_offset) voidglGetFloatv(int pname, float[] data, int data_offset) voidglGetIntegerv(int pname, int[] data, int data_offset) voidglHint(int target, int mode) voidvoidbooleanglIsList(int list) voidglLight_Ambiant(int lightId, Color ambiantColor) voidglLight_Diffuse(int lightId, Color diffuseColor) voidglLight_Position(int lightId, float[] positionZero) voidglLight_Shininess(int lightId, float value) voidglLight_Specular(int lightId, Color specularColor) voidglLightf(int light, int pname, float value) voidglLightf(int light, Attenuation.Type attenuationType, float value) voidglLightfv(int light, int pname, float[] params, int params_offset) voidglLightModel(LightModel model, boolean value) voidglLightModel(LightModel model, Color color) voidglLightModelfv(int mode, float[] value) voidglLightModeli(int mode, int value) voidglLineStipple(int factor, short pattern) voidglLineWidth(float width) voidvoidglLoadName(int name) voidglMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) voidglMaterial(MaterialProperty material, float[] color, boolean isFront) voidglMaterial(MaterialProperty material, Color color, boolean isFront) voidglMaterialfv(int face, int pname, float[] params, int params_offset) voidglMatrixMode(int mode) voidvoidvoidglNewList(int list, int mode) voidvoidglNormal3f(float nx, float ny, float nz) voidglOrtho(double left, double right, double bottom, double top, double near_val, double far_val) voidglPassThrough(float token) voidglPixelStore(PixelStore store, int param) voidglPixelStorei(int pname, int param) voidglPixelZoom(float xfactor, float yfactor) glPixelZoom is not implemented byGL.voidglPointSize(float width) voidglPolygonMode(int frontOrBack, int fill) voidglPolygonMode(PolygonMode mode, PolygonFill fill) voidglPolygonOffset(float factor, float units) voidvoidvoidOPEN GL InterfacevoidglPushName(int name) voidglRasterPos3f(float x, float y, float z) glRasterPos3f not implemented byGL.intglRenderMode(int mode) intglRenderMode(RenderMode mode) voidglRotatef(float angle, float x, float y, float z) voidglScalef(float x, float y, float z) voidglSelectBuffer(int size, IntBuffer buffer) voidglShadeModel(int mode) voidglShadeModel(ColorModel colorModel) voidvoidvoidglStencilFunc(StencilFunc func, int ref, int mask) Stenciling, like depth-buffering, enables and disables drawing on a per-pixel basis.voidglStencilMask(int mask) glStencilMask controls the writing of individual bits in the stencil planes.voidvoidvoidglStencilOp(StencilOp fail, StencilOp zfail, StencilOp zpass) The glStencilOp(GLenum sfail, GLenum dpfail, GLenum dppass) contains three options of which we can specify for each option what action to take:voidglTexCoord2f(float s, float t) voidglTexEnvf(int target, int pname, float param) voidglTexEnvi(int target, int pname, int param) voidglTranslatef(float x, float y, float z) voidgluCylinder(double base, double top, double height, int slices, int stacks) voidgluDisk(double inner, double outer, int slices, int loops) voidgluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) voidgluOrtho2D(double left, double right, double bottom, double top) voidgluPerspective(double fovy, double aspect, double zNear, double zFar) voidgluPickMatrix(double x, double y, double delX, double delY, int[] viewport, int viewport_offset) booleangluProject(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) Project 3D (world) coordinates in the 2D screenvoidgluSphere(double radius, int slices, int stacks) intglutBitmapLength(int font, String string) Process the given font length to further process alignement.voidglutBitmapString(int font, String string) Not implemented yet.voidglutBitmapString(Font font, String label, Coord3d position, Color color) voidglutSolidCube(float size) voidglutSolidSphere(double radius, int slices, int stacks) voidglutSolidTeapot(float scale) voidglutWireTeapot(float scale) booleangluUnProject(float winX, float winY, float winZ, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, float[] objPos, int objPos_offset) booleangluUnProject(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) Project 2D (screen) coordinates in the 3D worldvoidglVertex3d(double x, double y, double z) voidglVertex3f(float x, float y, float z) voidglViewport(int x, int y, int width, int height) protected intlightId(int id) protected intmaterialProperty(MaterialProperty material) protected intpolygonFillValue(PolygonFill mode) protected intpolygonModeValue(PolygonMode mode) voidvoidIn the context of a multithreaded application, this method allows releasing the GL context by the calling thread to let other thread use it.voidvoidvoidprotected intMethods inherited from class org.jzy3d.painters.AbstractPainter
box, clearCache, clearColor, clip, clip, clipOff, clipOn, clipStatus, color, colorAlphaFactor, colorAlphaOverride, equation, getCamera, getCanvas, getOS, getQuality, getView, gluProject, gluUnProject, isJVMScaleLargerThanNativeScale, isJVMScaleLargerThanNativeScale, material, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, normal, raster, screenToModel, screenToModel, setCamera, setCanvas, setView, transform, vertex, vertex, vertexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jzy3d.painters.IPainter
box, clearCache, clearColor, clip, clip, clipOff, clipOn, clipStatus, color, colorAlphaFactor, colorAlphaOverride, getCamera, getCanvas, getOS, getQuality, getView, gluProject, gluUnProject, isJVMScaleLargerThanNativeScale, isJVMScaleLargerThanNativeScale, material, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, modelToScreen, normal, raster, screenToModel, screenToModel, setCamera, setCanvas, setView, transform, vertex, vertex, vertex
-
Field Details
-
gl
-
glu
-
glut
-
textLengthFallbackImage
A 1x1 image used for processing text length in pixel if no context is available -
fontMetricsFallback
-
GL_RGBA
public static final int GL_RGBA- See Also:
-
GL_UNSIGNED_BYTE
public static final int GL_UNSIGNED_BYTE- See Also:
-
-
Constructor Details
-
EmulGLPainter
public EmulGLPainter()
-
-
Method Details
-
getWindowingToolkit
- Specified by:
getWindowingToolkitin interfaceIPainter- Overrides:
getWindowingToolkitin classAbstractPainter
-
getGL
-
setGL
-
getGLU
-
setGLU
-
getGLUT
-
setGLUT
-
acquireGL
Description copied from interface:IPainterIn the context of a multithreaded application, this method allows retrieving the GL context for the calling thread. Once work is done the caller should callIPainter.releaseGL() -
releaseGL
public void releaseGL()Description copied from interface:IPainterIn the context of a multithreaded application, this method allows releasing the GL context by the calling thread to let other thread use it.IPainter.acquireGL() -
configureGL
Description copied from interface:IPainterApply quality settings as OpenGL commands- Specified by:
configureGLin interfaceIPainter
-
getViewPortAsInt
public int[] getViewPortAsInt()- Specified by:
getViewPortAsIntin interfaceIPainter
-
getProjectionAsDouble
public double[] getProjectionAsDouble()- Specified by:
getProjectionAsDoublein interfaceIPainter
-
getProjectionAsFloat
public float[] getProjectionAsFloat()- Specified by:
getProjectionAsFloatin interfaceIPainter
-
getModelViewAsDouble
public double[] getModelViewAsDouble()- Specified by:
getModelViewAsDoublein interfaceIPainter
-
getModelViewAsFloat
public float[] getModelViewAsFloat()- Specified by:
getModelViewAsFloatin interfaceIPainter
-
glPushMatrix
public void glPushMatrix()OPEN GL Interface- Specified by:
glPushMatrixin interfaceIPainter
-
glPopMatrix
public void glPopMatrix()- Specified by:
glPopMatrixin interfaceIPainter
-
glMatrixMode
public void glMatrixMode(int mode) - Specified by:
glMatrixModein interfaceIPainter
-
glLoadIdentity
public void glLoadIdentity()- Specified by:
glLoadIdentityin interfaceIPainter
-
glScalef
public void glScalef(float x, float y, float z) -
glTranslatef
public void glTranslatef(float x, float y, float z) - Specified by:
glTranslatefin interfaceIPainter
-
glRotatef
public void glRotatef(float angle, float x, float y, float z) -
glEnable
public void glEnable(int type) -
glDisable
public void glDisable(int type) -
glPointSize
public void glPointSize(float width) - Specified by:
glPointSizein interfaceIPainter
-
glLineWidth
public void glLineWidth(float width) - Specified by:
glLineWidthin interfaceIPainter
-
glBegin
public void glBegin(int type) -
glColor3f
public void glColor3f(float r, float g, float b) -
glColor4f
public void glColor4f(float r, float g, float b, float a) -
glVertex3f
public void glVertex3f(float x, float y, float z) - Specified by:
glVertex3fin interfaceIPainter
-
glVertex3d
public void glVertex3d(double x, double y, double z) - Specified by:
glVertex3din interfaceIPainter
-
glEnd
public void glEnd() -
glFrontFace
public void glFrontFace(int mode) - Specified by:
glFrontFacein interfaceIPainter
-
glCullFace
public void glCullFace(int mode) - Specified by:
glCullFacein interfaceIPainter
-
glPolygonMode
- Specified by:
glPolygonModein interfaceIPainter
-
polygonModeValue
-
polygonFillValue
-
glPolygonMode
public void glPolygonMode(int frontOrBack, int fill) - Specified by:
glPolygonModein interfaceIPainter
-
glPolygonOffset
public void glPolygonOffset(float factor, float units) - Specified by:
glPolygonOffsetin interfaceIPainter
-
glLineStipple
public void glLineStipple(int factor, short pattern) - Specified by:
glLineStipplein interfaceIPainter
-
glTexCoord2f
public void glTexCoord2f(float s, float t) - Specified by:
glTexCoord2fin interfaceIPainter
-
glTexEnvf
public void glTexEnvf(int target, int pname, float param) -
glTexEnvi
public void glTexEnvi(int target, int pname, int param) -
glRasterPos3f
public void glRasterPos3f(float x, float y, float z) glRasterPos3f not implemented byGL. This method will fallback onGL.glRasterPos2f(float, float)or trigger aNotImplementedExceptionin case z value is not equal to 0.- Specified by:
glRasterPos3fin interfaceIPainter
-
glDrawPixels
Not working yet.- Specified by:
glDrawPixelsin interfaceIPainter
-
glPixelZoom
public void glPixelZoom(float xfactor, float yfactor) glPixelZoom is not implemented byGL. This method will do nothing but triggering aNotImplementedExceptionin case x and y zoom factor are not both equal to 1 (i.e. in case a zoom is needed).- Specified by:
glPixelZoomin interfaceIPainter
-
glPixelStorei
public void glPixelStorei(int pname, int param) - Specified by:
glPixelStoreiin interfaceIPainter
-
glPixelStore
- Specified by:
glPixelStorein interfaceIPainter
-
glBitmap
public void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte[] bitmap, int bitmap_offset) -
glutBitmapString
Not implemented yet.- Specified by:
glutBitmapStringin interfaceIPainter
-
drawImage
public void drawImage(ByteBuffer imageBuffer, int imageWidth, int imageHeight, Coord2d pixelZoom, Coord3d imagePosition) A very failing implementation. SHOULD SUPPORT AWT BufferedImage in EmulGL - or reverse converse -
glutBitmapLength
Process the given font length to further process alignement. Will only return a valid width for knownFont(Helevetica and Times Roman). Getting text width of any string can be donegetTextLengthInPixels(Font, String).- Specified by:
glutBitmapLengthin interfaceIPainter
-
getTextLengthInPixels
- Specified by:
getTextLengthInPixelsin interfaceIPainter
-
getTextLengthInPixels
Text length processing based on AWTFontMetricsobtained by retrieving the graphic context of theGLCanvas. In case no graphics is available- Specified by:
getTextLengthInPixelsin interfaceIPainter
-
glutBitmapString
- Specified by:
glutBitmapStringin interfaceIPainter
-
drawText
Render 2D text at the given 3D position. TheFontcan 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. -
glGenLists
public int glGenLists(int range) - Specified by:
glGenListsin interfaceIPainter
-
glNewList
public void glNewList(int list, int mode) -
glNewList
-
glEndList
public void glEndList() -
glCallList
public void glCallList(int list) - Specified by:
glCallListin interfaceIPainter
-
glIsList
public boolean glIsList(int list) -
glDeleteLists
public void glDeleteLists(int list, int range) - Specified by:
glDeleteListsin interfaceIPainter
-
gluDisk
public void gluDisk(double inner, double outer, int slices, int loops) -
glutSolidSphere
public void glutSolidSphere(double radius, int slices, int stacks) - Specified by:
glutSolidSpherein interfaceIPainter
-
glutSolidTeapot
public void glutSolidTeapot(float scale) - Specified by:
glutSolidTeapotin interfaceIPainter
-
glutWireTeapot
public void glutWireTeapot(float scale) - Specified by:
glutWireTeapotin interfaceIPainter
-
gluSphere
public void gluSphere(double radius, int slices, int stacks) -
gluCylinder
public void gluCylinder(double base, double top, double height, int slices, int stacks) - Specified by:
gluCylinderin interfaceIPainter
-
glutSolidCube
public void glutSolidCube(float size) - Specified by:
glutSolidCubein interfaceIPainter
-
glFeedbackBuffer
- Specified by:
glFeedbackBufferin interfaceIPainter
-
glRenderMode
public int glRenderMode(int mode) - Specified by:
glRenderModein interfaceIPainter
-
glRenderMode
- Specified by:
glRenderModein interfaceIPainter
-
glPassThrough
public void glPassThrough(float token) - Specified by:
glPassThroughin interfaceIPainter
-
glStencilFunc
Description copied from interface:IPainterStenciling, like depth-buffering, enables and disables drawing on a per-pixel basis. Stencil planes are first drawn into using GL drawing primitives, then geometry and images are rendered using the stencil planes to mask out portions of the screen. Stenciling is typically used in multipass rendering algorithms to achieve special effects, such as decals, outlining, and constructive solid geometry rendering. The stencil test conditionally eliminates a pixel based on the outcome of a comparison between the reference value and the value in the stencil buffer. To enable and disable the test, call glEnable and glDisable with argument GL_STENCIL_TEST. To specify actions based on the outcome of the stencil test, call glStencilOp or glStencilOpSeparate. There can be two separate sets of func, ref, and mask parameters; one affects back-facing polygons, and the other affects front-facing polygons as well as other non-polygon primitives. glStencilFunc sets both front and back stencil state to the same values. Use glStencilFuncSeparate to set front and back stencil state to different values. func is a symbolic constant that determines the stencil comparison function. It accepts one of eight values, shown in the following list. ref is an integer reference value that is used in the stencil comparison. It is clamped to the range 0 2 n - 1 , where n is the number of bitplanes in the stencil buffer. mask is bitwise ANDed with both the reference value and the stored stencil value, with the ANDed values participating in the comparison. If stencil represents the value stored in the corresponding stencil buffer location, the following list shows the effect of each comparison function that can be specified by func. Only if the comparison succeeds is the pixel passed through to the next stage in the rasterization process (see glStencilOp). All tests treat stencil values as unsigned integers in the range 0 2 n - 1 , where n is the number of bitplanes in the stencil buffer. The following values are accepted by func:- GL_NEVER Always fails.
- GL_LESS Passes if ( ref invalid input: '&' mask ) invalid input: '<' ( stencil invalid input: '&' mask ).
- GL_LEQUAL Passes if ( ref invalid input: '&' mask ) invalid input: '<'= ( stencil invalid input: '&' mask ).
- GL_GREATER Passes if ( ref invalid input: '&' mask ) > ( stencil invalid input: '&' mask ).
- GL_GEQUAL Passes if ( ref invalid input: '&' mask ) >= ( stencil invalid input: '&' mask ).
- GL_EQUAL Passes if ( ref invalid input: '&' mask ) = ( stencil invalid input: '&' mask ).
- GL_NOTEQUAL Passes if ( ref invalid input: '&' mask ) != ( stencil invalid input: '&' mask ).
- GL_ALWAYS Always passes.
- Specified by:
glStencilFuncin interfaceIPainter- Parameters:
func- sets the stencil test function that determines whether a fragment passes or is discarded. This test function is applied to the stored stencil value and the glStencilFunc's ref value. Possible options are: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL and GL_ALWAYS. The semantic meaning of these is similar to the depth buffer's functions.ref- specifies the reference value for the stencil test. The stencil buffer's content is compared to this value.mask- specifies a mask that is ANDed with both the reference value and the stored stencil value before the test compares them. Initially set to all 1s.
-
glStencilMask
public void glStencilMask(int mask) Description copied from interface:IPainterglStencilMask controls the writing of individual bits in the stencil planes. The least significant n bits of mask, where n is the number of bits in the stencil buffer, specify a mask. Where a 1 appears in the mask, it's possible to write to the corresponding bit in the stencil buffer. Where a 0 appears, the corresponding bit is write-protected. Initially, all bits are enabled for writing. There can be two separate mask writemasks; one affects back-facing polygons, and the other affects front-facing polygons as well as other non-polygon primitives. glStencilMask sets both front and back stencil writemasks to the same values. Use glStencilMaskSeparate to set front and back stencil writemasks to different values.- Specified by:
glStencilMaskin interfaceIPainter
-
glStencilOp
Description copied from interface:IPainterThe glStencilOp(GLenum sfail, GLenum dpfail, GLenum dppass) contains three options of which we can specify for each option what action to take:- Specified by:
glStencilOpin interfaceIPainter- Parameters:
fail- action to take if the stencil test fails.zfail- action to take if the stencil test passes, but the depth test fails.zpass- action to take if both the stencil and the depth test pass. Then for each of the options you can take any of the following actions:- Action : Description
- GL_KEEP : The currently stored stencil value is kept.
- GL_ZERO : The stencil value is set to 0.
- GL_REPLACE : The stencil value is replaced with the reference value set with glStencilFunc.
- GL_INCR : The stencil value is increased by 1 if it is lower than the maximum value.
- GL_INCR_WRAP : Same as GL_INCR, but wraps it back to 0 as soon as the maximum value is exceeded.
- GL_DECR : The stencil value is decreased by 1 if it is higher than the minimum value.
- GL_DECR_WRAP : Same as GL_DECR, but wraps it to the maximum value if it ends up lower than 0.
- GL_INVERT : Bitwise inverts the current stencil buffer value.
-
glClearStencil
public void glClearStencil(int s) Description copied from interface:IPainterglClearStencil specifies the index used by glClear to clear the stencil buffer. s is masked with 2 m - 1 , where m is the number of bits in the stencil buffer.- Specified by:
glClearStencilin interfaceIPainter
-
toInt
-
glStencilMask_True
public void glStencilMask_True()- Specified by:
glStencilMask_Truein interfaceIPainter
-
glStencilMask_False
public void glStencilMask_False()- Specified by:
glStencilMask_Falsein interfaceIPainter
-
glOrtho
public void glOrtho(double left, double right, double bottom, double top, double near_val, double far_val) -
gluOrtho2D
public void gluOrtho2D(double left, double right, double bottom, double top) - Specified by:
gluOrtho2Din interfaceIPainter
-
gluPerspective
public void gluPerspective(double fovy, double aspect, double zNear, double zFar) - Specified by:
gluPerspectivein interfaceIPainter
-
glFrustum
public void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) -
gluLookAt
public void gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) -
glViewport
public void glViewport(int x, int y, int width, int height) - Specified by:
glViewportin interfaceIPainter
-
glClipPlane
public void glClipPlane(int plane, double[] equation) - Specified by:
glClipPlanein interfaceIPainter
-
glEnable_ClipPlane
public void glEnable_ClipPlane(int plane) - Specified by:
glEnable_ClipPlanein interfaceIPainter
-
glDisable_ClipPlane
public void glDisable_ClipPlane(int plane) - Specified by:
glDisable_ClipPlanein interfaceIPainter
-
clipPlaneId
public int clipPlaneId(int id) Return the GL clip plane ID according to an ID in [0;5]- Specified by:
clipPlaneIdin interfaceIPainter
-
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) Description copied from interface:IPainterProject 2D (screen) coordinates in the 3D world- Specified by:
gluUnProjectin interfaceIPainter
-
gluUnProject
public boolean gluUnProject(float winX, float winY, float winZ, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, float[] objPos, int objPos_offset) -
dbl
protected double[] dbl(float[] values) -
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) Description copied from interface:IPainterProject 3D (world) coordinates in the 2D screen- Specified by:
gluProjectin interfaceIPainter
-
glGetIntegerv
public void glGetIntegerv(int pname, int[] data, int data_offset) - Specified by:
glGetIntegervin interfaceIPainter
-
glGetDoublev
public void glGetDoublev(int pname, double[] params, int params_offset) - Specified by:
glGetDoublevin interfaceIPainter
-
glGetFloatv
public void glGetFloatv(int pname, float[] data, int data_offset) - Specified by:
glGetFloatvin interfaceIPainter
-
glDepthFunc
public void glDepthFunc(int func) - Specified by:
glDepthFuncin interfaceIPainter
-
glDepthRangef
public void glDepthRangef(float near, float far) - Specified by:
glDepthRangefin interfaceIPainter
-
printGLDepthRange
public void printGLDepthRange() -
glBlendFunc
public void glBlendFunc(int sfactor, int dfactor) - Specified by:
glBlendFuncin interfaceIPainter
-
glHint
public void glHint(int target, int mode) -
glShadeModel
- Specified by:
glShadeModelin interfaceIPainter
-
glShadeModel
public void glShadeModel(int mode) - Specified by:
glShadeModelin interfaceIPainter
-
glShadeModel_Smooth
public void glShadeModel_Smooth()- Specified by:
glShadeModel_Smoothin interfaceIPainter
-
glShadeModel_Flat
public void glShadeModel_Flat()- Specified by:
glShadeModel_Flatin interfaceIPainter
-
glMaterialfv
public void glMaterialfv(int face, int pname, float[] params, int params_offset) - Specified by:
glMaterialfvin interfaceIPainter
-
glNormal3f
public void glNormal3f(float nx, float ny, float nz) - Specified by:
glNormal3fin interfaceIPainter
-
glLightf
-
glLightf
public void glLightf(int light, int pname, float value) -
glLightfv
public void glLightfv(int light, int pname, float[] params, int params_offset) -
glLight_Position
public void glLight_Position(int lightId, float[] positionZero) - Specified by:
glLight_Positionin interfaceIPainter
-
glLight_Ambiant
- Specified by:
glLight_Ambiantin interfaceIPainter
-
glLight_Diffuse
- Specified by:
glLight_Diffusein interfaceIPainter
-
glLight_Specular
- Specified by:
glLight_Specularin interfaceIPainter
-
glLight_Shininess
public void glLight_Shininess(int lightId, float value) - Specified by:
glLight_Shininessin interfaceIPainter
-
glEnable_Light
public void glEnable_Light(int light) - Specified by:
glEnable_Lightin interfaceIPainter
-
glDisable_Light
public void glDisable_Light(int light) - Specified by:
glDisable_Lightin interfaceIPainter
-
lightId
protected int lightId(int id) -
glLightModeli
public void glLightModeli(int mode, int value) - Specified by:
glLightModeliin interfaceIPainter
-
glLightModelfv
public void glLightModelfv(int mode, float[] value) - Specified by:
glLightModelfvin interfaceIPainter
-
glLightModel
- Specified by:
glLightModelin interfaceIPainter
-
glLightModel
- Specified by:
glLightModelin interfaceIPainter
-
glClearColor
public void glClearColor(float red, float green, float blue, float alpha) - Specified by:
glClearColorin interfaceIPainter
-
glClearDepth
public void glClearDepth(double d) - Specified by:
glClearDepthin interfaceIPainter
-
glClear
public void glClear(int mask) -
glClearColorAndDepthBuffers
public void glClearColorAndDepthBuffers()- Specified by:
glClearColorAndDepthBuffersin interfaceIPainter
-
glInitNames
public void glInitNames()- Specified by:
glInitNamesin interfaceIPainter
-
glLoadName
public void glLoadName(int name) - Specified by:
glLoadNamein interfaceIPainter
-
glPushName
public void glPushName(int name) - Specified by:
glPushNamein interfaceIPainter
-
glPopName
public void glPopName() -
glSelectBuffer
- Specified by:
glSelectBufferin interfaceIPainter
-
gluPickMatrix
public void gluPickMatrix(double x, double y, double delX, double delY, int[] viewport, int viewport_offset) - Specified by:
gluPickMatrixin interfaceIPainter
-
glFlush
public void glFlush() -
glEvalCoord2f
public void glEvalCoord2f(float u, float v) - Specified by:
glEvalCoord2fin interfaceIPainter
-
glMap2f
public void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) -
glEnable_PolygonOffsetFill
public void glEnable_PolygonOffsetFill()NOT SUPPORTED in jGL wich emulate OpenGL 1 only. Note that are NOT triggered to ease compatibility with geometries that have the polygon offset fill setting enabled by default. Was added to OpenGL 2 (https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonOffset.xhtml). You may desactivate offset fill with drawable.setPolygonOffsetFillEnable(false).- Specified by:
glEnable_PolygonOffsetFillin interfaceIPainter
-
glDisable_PolygonOffsetFill
public void glDisable_PolygonOffsetFill()- Specified by:
glDisable_PolygonOffsetFillin interfaceIPainter
-
glEnable_PolygonOffsetLine
public void glEnable_PolygonOffsetLine()- Specified by:
glEnable_PolygonOffsetLinein interfaceIPainter
-
glDisable_PolygonOffsetLine
public void glDisable_PolygonOffsetLine()- Specified by:
glDisable_PolygonOffsetLinein interfaceIPainter
-
glDisable_Lighting
public void glDisable_Lighting()- Specified by:
glDisable_Lightingin interfaceIPainter
-
glEnable_Lighting
public void glEnable_Lighting()- Specified by:
glEnable_Lightingin interfaceIPainter
-
glEnable_LineStipple
public void glEnable_LineStipple()- Specified by:
glEnable_LineStipplein interfaceIPainter
-
glDisable_LineStipple
public void glDisable_LineStipple()- Specified by:
glDisable_LineStipplein interfaceIPainter
-
glEnable_Blend
public void glEnable_Blend()- Specified by:
glEnable_Blendin interfaceIPainter
-
glDisable_Blend
public void glDisable_Blend()- Specified by:
glDisable_Blendin interfaceIPainter
-
glMatrixMode_ModelView
public void glMatrixMode_ModelView()- Specified by:
glMatrixMode_ModelViewin interfaceIPainter
-
glMatrixMode_Projection
public void glMatrixMode_Projection()- Specified by:
glMatrixMode_Projectionin interfaceIPainter
-
glBegin_Polygon
public void glBegin_Polygon()- Specified by:
glBegin_Polygonin interfaceIPainter
-
glBegin_Quad
public void glBegin_Quad()- Specified by:
glBegin_Quadin interfaceIPainter
-
glBegin_Triangle
public void glBegin_Triangle()- Specified by:
glBegin_Trianglein interfaceIPainter
-
glBegin_Point
public void glBegin_Point()- Specified by:
glBegin_Pointin interfaceIPainter
-
glBegin_LineStrip
public void glBegin_LineStrip()- Specified by:
glBegin_LineStripin interfaceIPainter
-
glBegin_LineLoop
public void glBegin_LineLoop()- Specified by:
glBegin_LineLoopin interfaceIPainter
-
glBegin_Line
public void glBegin_Line()- Specified by:
glBegin_Linein interfaceIPainter
-
glEnable_CullFace
public void glEnable_CullFace()- Specified by:
glEnable_CullFacein interfaceIPainter
-
glDisable_CullFace
public void glDisable_CullFace()- Specified by:
glDisable_CullFacein interfaceIPainter
-
glFrontFace_ClockWise
public void glFrontFace_ClockWise()- Specified by:
glFrontFace_ClockWisein interfaceIPainter
-
glCullFace_Front
public void glCullFace_Front()- Specified by:
glCullFace_Frontin interfaceIPainter
-
glEnable_ColorMaterial
public void glEnable_ColorMaterial()- Specified by:
glEnable_ColorMaterialin interfaceIPainter
-
glMaterial
- Specified by:
glMaterialin interfaceIPainter
-
glMaterial
- Specified by:
glMaterialin interfaceIPainter
-
materialProperty
-
glEnable_PointSmooth
public void glEnable_PointSmooth()- Specified by:
glEnable_PointSmoothin interfaceIPainter
-
glHint_PointSmooth_Nicest
public void glHint_PointSmooth_Nicest()- Specified by:
glHint_PointSmooth_Nicestin interfaceIPainter
-
glDepthFunc
- Specified by:
glDepthFuncin interfaceIPainter
-
glEnable_DepthTest
public void glEnable_DepthTest()- Specified by:
glEnable_DepthTestin interfaceIPainter
-
glDisable_DepthTest
public void glDisable_DepthTest()- Specified by:
glDisable_DepthTestin interfaceIPainter
-
glEnable_Stencil
public void glEnable_Stencil()- Specified by:
glEnable_Stencilin interfaceIPainter
-
glDisable_Stencil
public void glDisable_Stencil()- Specified by:
glDisable_Stencilin interfaceIPainter
-