Package jgl.wt.awt
Class GL
-
Nested Class Summary
Nested classes/interfaces inherited from class jgl.GL
GL.ImageLayer, GL.PixelScaleListener
-
Field Summary
Fields inherited from class jgl.GL
actualHeight, actualWidth, autoAdaptToHiDPI, CC, clearBackgroundWithG2d, Context, desiredHeight, desiredWidth, desiredX, desiredY, GL_2_BYTES, GL_2D, GL_3_BYTES, GL_3D, GL_3D_COLOR, GL_3D_COLOR_TEXTURE, GL_4_BYTES, GL_4D_COLOR_TEXTURE, GL_ACCUM, GL_ACCUM_ALPHA_BITS, GL_ACCUM_BLUE_BITS, GL_ACCUM_BUFFER_BIT, GL_ACCUM_CLEAR_VALUE, GL_ACCUM_GREEN_BITS, GL_ACCUM_RED_BITS, GL_ADD, GL_ALL_ATTRIB_BIT, GL_ALPHA, GL_ALPHA_BIAS, GL_ALPHA_BITS, GL_ALPHA_SCALE, GL_ALPHA_TEST, GL_ALPHA_TEST_FUNC, GL_ALPHA_TEST_REF, GL_ALWAYS, GL_AMBIENT, GL_AMBIENT_AND_DIFFUSE, GL_AND, GL_AND_INVERTED, GL_AND_REVERSE, GL_ATTRIB_STACK_DEPTH, GL_AUTO_NORMAL, GL_AUX_BUFFERS, GL_AUX0, GL_AUX1, GL_AUX2, GL_AUX3, GL_BACK, GL_BACK_LEFT, GL_BACK_RIGHT, GL_BITMAP, GL_BITMAP_TOKEN, GL_BLEND, GL_BLEND_COLOR_EXT, GL_BLEND_DST, GL_BLEND_EQUATION_EXT, GL_BLEND_SRC, GL_BLUE, GL_BLUE_BIAS, GL_BLUE_BITS, GL_BLUE_SCALE, GL_BYTE, GL_CCW, GL_CLAMP, GL_CLEAR, GL_CLIP_PLANE0, GL_CLIP_PLANE1, GL_CLIP_PLANE2, GL_CLIP_PLANE3, GL_CLIP_PLANE4, GL_CLIP_PLANE5, GL_COEFF, GL_COLOR, GL_COLOR_BUFFER_BIT, GL_COLOR_CLEAR_VALUE, GL_COLOR_INDEX, GL_COLOR_INDEXES, GL_COLOR_MATERIAL, GL_COLOR_MATERIAL_FACE, GL_COLOR_MATERIAL_PARAMETER, GL_COLOR_WRITEMASK, GL_COMPILE, GL_COMPILE_AND_EXECUTE, GL_CONSTANT_ALPHA_EXT, GL_CONSTANT_ATTENUATION, GL_CONSTANT_COLOR_EXT, GL_COPY, GL_COPY_INVERTED, GL_COPY_PIXEL_TOKEN, GL_CULL_FACE, GL_CULL_FACE_MODE, GL_CURRENT_BIT, GL_CURRENT_COLOR, GL_CURRENT_INDEX, GL_CURRENT_NORMAL, GL_CURRENT_RASTER_COLOR, GL_CURRENT_RASTER_DISTANCE, GL_CURRENT_RASTER_INDEX, GL_CURRENT_RASTER_POSITION, GL_CURRENT_RASTER_POSITION_VALID, GL_CURRENT_RASTER_TEXTURE_COORDS, GL_CURRENT_TEXTURE_COORDS, GL_CW, GL_DECAL, GL_DECR, GL_DEPTH, GL_DEPTH_BIAS, GL_DEPTH_BITS, GL_DEPTH_BUFFER_BIT, GL_DEPTH_CLEAR_VALUE, GL_DEPTH_COMPONENT, GL_DEPTH_FUNC, GL_DEPTH_RANGE, GL_DEPTH_SCALE, GL_DEPTH_TEST, GL_DEPTH_WRITEMASK, GL_DIFFUSE, GL_DITHER, GL_DOMAIN, GL_DONT_CARE, GL_DOUBLEBUFFER, GL_DRAW_BUFFER, GL_DRAW_PIXEL_TOKEN, GL_DST_ALPHA, GL_DST_COLOR, GL_EDGE_FLAG, GL_EMISSION, GL_ENABLE_BIT, GL_EQUAL, GL_EQUIV, GL_EVAL_BIT, GL_EXP, GL_EXP2, GL_EXTENSIONS, GL_EYE_LINEAR, GL_EYE_PLANE, GL_FALSE, GL_FASTEST, GL_FEEDBACK, GL_FILL, GL_FLAT, GL_FLOAT, GL_FOG, GL_FOG_BIT, GL_FOG_COLOR, GL_FOG_DENSITY, GL_FOG_END, GL_FOG_HINT, GL_FOG_INDEX, GL_FOG_MODE, GL_FOG_START, GL_FRONT, GL_FRONT_AND_BACK, GL_FRONT_FACE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_FUNC_ADD_EXT, GL_FUNC_REVERSE_SUBTRACT_EXT, GL_FUNC_SUBTRACT_EXT, GL_GEQUAL, GL_GREATER, GL_GREEN, GL_GREEN_BIAS, GL_GREEN_BITS, GL_GREEN_SCALE, GL_HINT_BIT, GL_INCR, GL_INDEX_BITS, GL_INDEX_CLEAR_VALUE, GL_INDEX_MODE, GL_INDEX_OFFSET, GL_INDEX_SHIFT, GL_INDEX_WRITEMASK, GL_INT, GL_INVALID_ENUM, GL_INVALID_OPERATION, GL_INVALID_VALUE, GL_INVERT, GL_KEEP, GL_LEFT, GL_LEQUAL, GL_LESS, GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHT0, GL_LIGHT1, GL_LIGHT2, GL_LIGHT3, GL_LIGHT4, GL_LIGHT5, GL_LIGHT6, GL_LIGHT7, GL_LIGHTING, GL_LIGHTING_BIT, GL_LINE, GL_LINE_BIT, GL_LINE_LOOP, GL_LINE_RESET_TOKEN, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_LINE_STIPPLE, GL_LINE_STIPPLE_PATTERN, GL_LINE_STIPPLE_REPEAT, GL_LINE_STRIP, GL_LINE_TOKEN, GL_LINE_WIDTH, GL_LINE_WIDTH_GRANULARITY, GL_LINE_WIDTH_RANGE, GL_LINEAR, GL_LINEAR_ATTENUATION, GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_NEAREST, GL_LINES, GL_LIST_BASE, GL_LIST_BIT, GL_LIST_INDEX, GL_LIST_MODE, GL_LOAD, GL_LOGIC_OP, GL_LOGIC_OP_MODE, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_MAP_COLOR, GL_MAP_STENCIL, GL_MAP1_COLOR_4, GL_MAP1_GRID_DOMAIN, GL_MAP1_GRID_SEGMENTS, GL_MAP1_INDEX, GL_MAP1_NORMAL, GL_MAP1_TEXTURE_COORD_1, GL_MAP1_TEXTURE_COORD_2, GL_MAP1_TEXTURE_COORD_3, GL_MAP1_TEXTURE_COORD_4, GL_MAP1_VERTEX_3, GL_MAP1_VERTEX_4, GL_MAP2_COLOR_4, GL_MAP2_GRID_DOMAIN, GL_MAP2_GRID_SEGMENTS, GL_MAP2_INDEX, GL_MAP2_NORMAL, GL_MAP2_TEXTURE_COORD_1, GL_MAP2_TEXTURE_COORD_2, GL_MAP2_TEXTURE_COORD_3, GL_MAP2_TEXTURE_COORD_4, GL_MAP2_VERTEX_3, GL_MAP2_VERTEX_4, GL_MATRIX_MODE, GL_MAX_3D_TEXTURE_SIZE, GL_MAX_ATTRIB_STACK_DEPTH, GL_MAX_CLIP_PLANES, GL_MAX_EVAL_ORDER, GL_MAX_EXT, GL_MAX_LIGHTS, GL_MAX_LIST_NESTING, GL_MAX_MODELVIEW_STACK_DEPTH, GL_MAX_NAME_STACK_DEPTH, GL_MAX_PIXEL_MAP_TABLE, GL_MAX_PROJECTION_STACK_DEPTH, GL_MAX_TEXTURE_SIZE, GL_MAX_TEXTURE_STACK_DEPTH, GL_MAX_VIEWPORT_DIMS, GL_MIN_EXT, GL_MODELVIEW, GL_MODELVIEW_MATRIX, GL_MODELVIEW_STACK_DEPTH, GL_MODULATE, GL_MULT, GL_NAME_STACK_DEPTH, GL_NAND, GL_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_NEAREST_MIPMAP_NEAREST, GL_NEVER, GL_NICEST, GL_NO_ERROR, GL_NONE, GL_NOOP, GL_NOR, GL_NORMALIZE, GL_NOTEQUAL, GL_OBJECT_LINEAR, GL_OBJECT_PLANE, GL_ONE, GL_ONE_MINUS_CONSTANT_ALPHA_EXT, GL_ONE_MINUS_CONSTANT_COLOR_EXT, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_OR, GL_OR_INVERTED, GL_OR_REVERSE, GL_ORDER, GL_OUT_OF_MEMORY, GL_PACK_ALIGNMENT, GL_PACK_IMAGE_HEIGHT, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_SKIP_IMAGES, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SWAP_BYTES, GL_PASS_THROUGH_TOKEN, GL_PERSPECTIVE_CORRECTION_HINT, GL_PHONG, GL_PIXEL_MAP_A_TO_A, GL_PIXEL_MAP_A_TO_A_SIZE, GL_PIXEL_MAP_B_TO_B, GL_PIXEL_MAP_B_TO_B_SIZE, GL_PIXEL_MAP_G_TO_G, GL_PIXEL_MAP_G_TO_G_SIZE, GL_PIXEL_MAP_I_TO_A, GL_PIXEL_MAP_I_TO_A_SIZE, GL_PIXEL_MAP_I_TO_B, GL_PIXEL_MAP_I_TO_B_SIZE, GL_PIXEL_MAP_I_TO_G, GL_PIXEL_MAP_I_TO_G_SIZE, GL_PIXEL_MAP_I_TO_I, GL_PIXEL_MAP_I_TO_I_SIZE, GL_PIXEL_MAP_I_TO_R, GL_PIXEL_MAP_I_TO_R_SIZE, GL_PIXEL_MAP_R_TO_R, GL_PIXEL_MAP_R_TO_R_SIZE, GL_PIXEL_MAP_S_TO_S, GL_PIXEL_MAP_S_TO_S_SIZE, GL_PIXEL_MODE_BIT, GL_POINT, GL_POINT_BIT, GL_POINT_SIZE, GL_POINT_SIZE_GRANULARITY, GL_POINT_SIZE_RANGE, GL_POINT_SMOOTH, GL_POINT_SMOOTH_HINT, GL_POINT_TOKEN, GL_POINTS, GL_POLYGON, GL_POLYGON_BIT, GL_POLYGON_MODE, GL_POLYGON_OFFSET_BIAS_EXT, GL_POLYGON_OFFSET_EXT, GL_POLYGON_OFFSET_FACTOR_EXT, GL_POLYGON_SMOOTH, GL_POLYGON_SMOOTH_HINT, GL_POLYGON_STIPPLE, GL_POLYGON_STIPPLE_BIT, GL_POLYGON_TOKEN, GL_POSITION, GL_PROJECTION, GL_PROJECTION_MATRIX, GL_PROJECTION_STACK_DEPTH, GL_Q, GL_QUAD_STRIP, GL_QUADRATIC_ATTENUATION, GL_QUADS, GL_R, GL_READ_BUFFER, GL_RED, GL_RED_BIAS, GL_RED_BITS, GL_RED_SCALE, GL_RENDER, GL_RENDER_MODE, GL_RENDERER, GL_REPEAT, GL_REPLACE, GL_REPLACE_EXT, GL_RETURN, GL_RGB, GL_RGBA, GL_RGBA_MODE, GL_RIGHT, GL_S, GL_SCISSOR_BIT, GL_SCISSOR_BOX, GL_SCISSOR_TEST, GL_SELECT, GL_SET, GL_SHADE_MODEL, GL_SHININESS, GL_SHORT, GL_SMOOTH, GL_SPECULAR, GL_SPHERE_MAP, GL_SPOT_CUTOFF, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SRC_ALPHA, GL_SRC_ALPHA_SATURATE, GL_SRC_COLOR, GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW, GL_STENCIL, GL_STENCIL_BITS, GL_STENCIL_BUFFER_BIT, GL_STENCIL_CLEAR_VALUE, GL_STENCIL_FAIL, GL_STENCIL_FUNC, GL_STENCIL_INDEX, GL_STENCIL_PASS_DEPTH_FAIL, GL_STENCIL_PASS_DEPTH_PASS, GL_STENCIL_REF, GL_STENCIL_TEST, GL_STENCIL_VALUE_MASK, GL_STENCIL_WRITEMASK, GL_STEREO, GL_SUBPIXEL_BITS, GL_T, GL_TABLE_TOO_LARGE, GL_TEXTURE, GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_BIT, GL_TEXTURE_BORDER, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_COMPONENTS, GL_TEXTURE_DEPTH, GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_ENV_MODE, GL_TEXTURE_GEN_MODE, GL_TEXTURE_GEN_Q, GL_TEXTURE_GEN_R, GL_TEXTURE_GEN_S, GL_TEXTURE_GEN_T, GL_TEXTURE_HEIGHT, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MATRIX, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_STACK_DEPTH, GL_TEXTURE_WIDTH, GL_TEXTURE_WRAP_R, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TRANSFORM_BIT, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP, GL_TRIANGLES, GL_TRUE, GL_UNPACK_ALIGNMENT, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_IMAGES, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SWAP_BYTES, GL_UNSIGNED_BYTE, GL_UNSIGNED_INT, GL_UNSIGNED_SHORT, GL_VENDOR, GL_VERSION, GL_VIEWPORT, GL_VIEWPORT_BIT, GL_XOR, GL_ZERO, GL_ZOOM_X, GL_ZOOM_Y, GLX_ACCUM_ALPHA_SIZE, GLX_ACCUM_BLUE_SIZE, GLX_ACCUM_GREEN_SIZE, GLX_ACCUM_RED_SIZE, GLX_ALPHA_SIZE, GLX_AUX_BUFFERS, GLX_BAD_ATTRIBUTE, GLX_BAD_CONTEXT, GLX_BAD_ENUM, GLX_BAD_SCREEN, GLX_BAD_VALUE, GLX_BAD_VISUAL, GLX_BLUE_SIZE, GLX_BUFFER_SIZE, GLX_DEPTH_SIZE, GLX_DOUBLEBUFFER, GLX_GREEN_SIZE, GLX_LEVEL, GLX_NO_EXTENSION, GLX_RED_SIZE, GLX_RGBA, GLX_SAMPLES_BUFFER_SGIS, GLX_SAMPLES_SGIS, GLX_STENCIL_SIZE, GLX_STEREO, GLX_USE_GL, imageToDraw, List, None, pixelScaleListeners, pixelScaleX, pixelScaleY, shiftHorizontally, StartX, StartY, textsToDraw, useOSFontRendering
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Apply viewport according to the latest known expected width/height and the latest known pixel scales.protected void
protected void
doDrawString
(Graphics2D g2d, TextToDraw<Font> text) protected void
drawImages
(Graphics2D g2d, GL.ImageLayer layer) protected void
protected void
drawTexts
(Graphics2D g2d) Renders appended text to givenGraphics2D
context.protected void
Pixel scale is used to model the pixel ratio introduced by HiDPIprotected double
getPixelScaleX
(AffineTransform globalTransform) protected double
getPixelScaleY
(AffineTransform globalTransform) void
glFlush()
Creates a new ImageType based on the current color buffer.static Color
glIntToColor
(int color) Convert a color given as an integer to an AWT Color.boolean
glXMakeCurrent
(Component o, int x, int y) Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXcontext ctx)void
glXSwapBuffers
(Graphics g, Applet o) void
protected void
protected void
postRotateFromLeftPoint
(Graphics2D g2d, int x, int y, float rotate, int textWidth) Apply reverse rotation and translation to reset graphics context.protected void
preRotateFromLeftPoint
(Graphics2D g2d, int x, int y, float rotate, int textWidth) Configure graphics to rotate text and shift the text horizontallyprotected void
void
Methods inherited from class jgl.GL
addPixelScaleListener, appendImageToDraw, appendImageToDraw, appendImageToDraw, appendTextToDraw, appendTextToDraw, checkColorBuffer, clearImagesBuffer, clearTextToDraw, firePixelScaleChanged, getActualHeight, getActualWidth, getContext, getDesiredHeight, getDesiredWidth, getPixelScaleListeners, getPixelScaleX, getPixelScaleY, getPointer, getShiftHorizontally, getStartX, getStartY, getThrowExceptionOnGLError, glAreTexturesResident, glBegin, glBindTexture, glBlendFunc, glCallList, glCallLists, glClear, glClearColor, glClearDepth, glClearStencil, glClipPlane, glColor3b, glColor3bv, glColor3d, glColor3dv, glColor3f, glColor3fv, glColor3i, glColor3iv, glColor3s, glColor3sv, glColor3ub, glColor3ubv, glColor3ui, glColor3uiv, glColor3us, glColor3usv, glColor4b, glColor4bv, glColor4d, glColor4dv, glColor4f, glColor4fv, glColor4i, glColor4iv, glColor4s, glColor4sv, glColor4ub, glColor4ubv, glColor4ui, glColor4uiv, glColor4us, glColor4usv, glColorMask, glColorMaterial, glCopyPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D, glCopyTexSubImage3D, glCullFace, glDeleteLists, glDeleteTextures, glDepthFunc, glDepthMask, glDepthRange, glDisable, glDrawPixels, glEnable, glEnd, glEndList, glEvalCoord1d, glEvalCoord1dv, glEvalCoord1f, glEvalCoord1fv, glEvalCoord2d, glEvalCoord2dv, glEvalCoord2f, glEvalCoord2fv, glEvalMesh1, glEvalMesh2, glEvalPoint1, glEvalPoint2, glFeedbackBuffer, glFrontFace, glFrustum, glGenLists, glGenTextures, glGetBooleanv, glGetClipPlane, glGetDoublev, glGetFloatv, glGetIntegerv, glGetLightfv, glGetLightiv, glGetMaterialfv, glGetMaterialiv, glGetString, glGetTexEnviv, glGetTexEnviv, glGetTexGendv, glGetTexGenfv, glGetTexGeniv, glGetTexImage, glIndexd, glIndexdv, glIndexf, glIndexfv, glIndexi, glIndexiv, glIndexs, glIndexsv, glIndexub, glIndexubv, glInitNames, glIsEnabled, glIsList, glIsTexture, glLightf, glLightfv, glLighti, glLightiv, glLightModelf, glLightModelf, glLightModelfv, glLightModelfv, glLightModeli, glLightModeli, glLightModeliv, glLightModeliv, glLineStipple, glLineWidth, glListBase, glLoadIdentity, glLoadMatrixd, glLoadMatrixf, glLoadName, glMap1d, glMap1f, glMap2d, glMap2f, glMapGrid1d, glMapGrid1f, glMapGrid2d, glMapGrid2f, glMaterialf, glMaterialfv, glMateriali, glMaterialiv, glMatrixMode, glMultMatrixd, glMultMatrixf, glNewList, glNormal3b, glNormal3bv, glNormal3d, glNormal3dv, glNormal3f, glNormal3fv, glNormal3i, glNormal3iv, glNormal3s, glNormal3sv, glOrtho, glPassThrough, glPixelStoref, glPixelStorei, glPixelTransferf, glPixelTransferi, glPointSize, glPolygonMode, glPolygonStipple, glPopAttrib, glPopMatrix, glPopName, glPrioritizeTextures, glPushAttrib, glPushMatrix, glPushName, glRasterPos2d, glRasterPos2f, glRasterPos2i, glReadPixels, glRectd, glRectdv, glRectf, glRectfv, glRecti, glRectiv, glRects, glRectsv, glRenderMode, glRotated, glRotatef, glScaled, glScalef, glSelectBuffer, glShadeModel, glStencilFunc, glStencilMask, glStencilOp, glTexCoord1d, glTexCoord1dv, glTexCoord1f, glTexCoord1fv, glTexCoord1i, glTexCoord1iv, glTexCoord1s, glTexCoord1sv, glTexCoord2d, glTexCoord2dv, glTexCoord2f, glTexCoord2fv, glTexCoord2i, glTexCoord2iv, glTexCoord2s, glTexCoord2sv, glTexCoord3d, glTexCoord3dv, glTexCoord3f, glTexCoord3fv, glTexCoord3i, glTexCoord3iv, glTexCoord3s, glTexCoord3sv, glTexCoord4d, glTexCoord4dv, glTexCoord4f, glTexCoord4fv, glTexCoord4i, glTexCoord4iv, glTexCoord4s, glTexCoord4sv, glTexEnvf, glTexEnvfv, glTexEnvi, glTexEnviv, glTexGendv, glTexGenf, glTexGenf, glTexGenfv, glTexGeni, glTexGeniv, glTexImage1D, glTexImage2D, glTexImage3D, glTexParameterf, glTexParameterfv, glTexParameteri, glTexParameteriv, glTexSubImage1D, glTexSubImage2D, glTexSubImage3D, glTranslated, glTranslatef, glVertex2d, glVertex2dv, glVertex2f, glVertex2fv, glVertex2i, glVertex2iv, glVertex2s, glVertex2sv, glVertex3d, glVertex3dv, glVertex3f, glVertex3fv, glVertex3i, glVertex3iv, glVertex3s, glVertex3sv, glVertex4d, glVertex4dv, glVertex4f, glVertex4fv, glVertex4i, glVertex4iv, glVertex4s, glVertex4sv, glViewport, isAutoAdaptToHiDPI, isClearBackgroundWithG2d, isUseOSFontRendering, removePixelScaleListener, resetPixelScale, setAutoAdaptToHiDPI, setClearBackgroundWithG2d, setPixelScaleX, setPixelScaleY, setShiftHorizontally, setThrowExceptionOnGLError, setUseOSFontRendering
-
Field Details
-
canvas
-
glImage
-
renderedOnce
protected boolean renderedOnce
-
-
Constructor Details
-
GL
public GL()
-
-
Method Details
-
glXSwapBuffers
-
glXSwapBuffers
-
glFlush
public void glFlush()Description copied from class:GL
Creates a new ImageType based on the current color buffer.- Specified by:
glFlush
in classGL<BufferedImage,
Font>
-
getRenderedImage
- Specified by:
getRenderedImage
in classGL<BufferedImage,
Font>
-
applyViewport
public void applyViewport()Description copied from class:GL
Apply viewport according to the latest known expected width/height and the latest known pixel scales.- Overrides:
applyViewport
in classGL<BufferedImage,
Font>
-
glXMakeCurrent
Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXcontext ctx) -
glJGetComponent
-
updatePixelScale
-
getPixelScaleFromG2D
Pixel scale is used to model the pixel ratio introduced by HiDPI -
getPixelScaleX
-
getPixelScaleY
-
printGlobalScale
-
configureRenderingHints
-
hackClearColorWithG2DfillRect
-
glIntToColor
Convert a color given as an integer to an AWT Color. -
getClearColorAWT
- Returns:
- the clear color as an AWT Color.
-
drawImagesAndClearBuffer
-
drawImages
-
drawTexts
Renders appended text to givenGraphics2D
context.- Parameters:
g2d
-
-
doDrawString
-
preRotateFromLeftPoint
Configure graphics to rotate text and shift the text horizontally -
postRotateFromLeftPoint
Apply reverse rotation and translation to reset graphics context.
-