public final class JOGLTypeConversions extends Object
Conversions between enumerations and OpenGL contstants.
Note: This file is not part of the public API, but is exposed in order to facilitate easier unit testing.
| Modifier and Type | Method and Description |
|---|---|
static JCGLBlendEquation |
blendEquationFromGL(int e)
Convert blend equations from GL constants.
|
static int |
blendEquationToGL(JCGLBlendEquation e)
Convert blend equations to GL constants.
|
static JCGLBlendFunction |
blendFunctionFromGL(int type)
Convert blend functions from GL constants.
|
static int |
blendFunctionToGL(JCGLBlendFunction function)
Convert blend functions to GL constants.
|
static JCGLCubeMapFaceLH |
cubeFaceFromGL(int face)
Convert faces from GL constants.
|
static int |
cubeFaceToGL(JCGLCubeMapFaceLH face)
Convert cube map faces to GL constants.
|
static JCGLDepthFunction |
depthFunctionFromGL(int d)
Convert depth functions from GL constants.
|
static int |
depthFunctionToGL(JCGLDepthFunction d)
Convert depth functions to GL constants.
|
static JCGLFaceSelection |
faceSelectionFromGL(int faces)
Convert face selections from GL constants.
|
static int |
faceSelectionToGL(JCGLFaceSelection faces)
Convert faces to GL constants.
|
static JCGLFaceWindingOrder |
faceWindingOrderFromGL(int f)
Convert winding orders to GL constants.
|
static int |
faceWindingOrderToGL(JCGLFaceWindingOrder f)
Convert face winding orders to GL constants.
|
static JCGLFramebufferBlitBuffer |
framebufferBlitBufferFromGL(int buffer)
Convert framebuffer blit buffers from GL constants.
|
static int |
framebufferBlitBufferSetToMask(Set<JCGLFramebufferBlitBuffer> buffers)
Convert framebuffer blit buffers to GL constants.
|
static int |
framebufferBlitBufferToGL(JCGLFramebufferBlitBuffer buffer)
Convert framebuffer blit buffers to GL constants.
|
static JCGLFramebufferBlitFilter |
framebufferBlitFilterFromGL(int filter)
Convert framebuffer blit filter from GL constants.
|
static int |
framebufferBlitFilterToGL(JCGLFramebufferBlitFilter filter)
Convert framebuffer blit filters to GL constants.
|
static JCGLFramebufferStatus |
framebufferStatusFromGL(int status)
Convert framebuffer status from GL constants.
|
static int |
framebufferStatusToGL(JCGLFramebufferStatus status)
Convert framebuffer status to GL constants.
|
static JCGLPixelFormat |
pixelTypeFromGL(int e)
Convert pixel types from GL constants.
|
static int |
pixelTypeToGL(JCGLPixelFormat p)
Convert pixel types to GL constants.
|
static JCGLPolygonMode |
polygonModeFromGL(int g)
Convert polygon modes from GL constants.
|
static int |
polygonModeToGL(JCGLPolygonMode g)
Convert polygon modes to GL constants.
|
static JCGLPrimitives |
primitiveFromGL(int code)
Convert primitives from GL constants.
|
static int |
primitiveToGL(JCGLPrimitives p)
Convert primitives to GL constants.
|
static JCGLScalarIntegralType |
scalarIntegralTypeFromGL(int type)
Convert types from GL constants.
|
static int |
scalarIntegralTypeToGL(JCGLScalarIntegralType type)
Convert types to GL constants.
|
static JCGLScalarType |
scalarTypeFromGL(int type)
Convert types from GL constants.
|
static int |
scalarTypeToGL(JCGLScalarType type)
Convert types to GL constants.
|
static JCGLStencilFunction |
stencilFunctionFromGL(int function)
Convert stencil functions from GL constants.
|
static int |
stencilFunctionToGL(JCGLStencilFunction function)
Convert stencil functions to GL constants.
|
static JCGLStencilOperation |
stencilOperationFromGL(int op)
Convert stencil ops from GL constants.
|
static int |
stencilOperationToGL(JCGLStencilOperation op)
Convert stencil ops to GL constants.
|
static JCGLTextureFilterMagnification |
textureFilterMagFromGL(int mag_filter)
Convert filters from GL constants.
|
static int |
textureFilterMagToGL(JCGLTextureFilterMagnification mag_filter)
Convert filters to GL constants.
|
static JCGLTextureFilterMinification |
textureFilterMinFromGL(int min_filter)
Convert filters from GL constants.
|
static int |
textureFilterMinToGL(JCGLTextureFilterMinification min_filter)
Convert filters to GL constants.
|
static JCGLTextureWrapR |
textureWrapRFromGL(int wrap)
Convert wrapping modes from GL constants.
|
static int |
textureWrapRToGL(JCGLTextureWrapR wrap)
Convert wrapping mode to GL constants.
|
static JCGLTextureWrapS |
textureWrapSFromGL(int wrap)
Convert wrapping modes from GL constants.
|
static int |
textureWrapSToGL(JCGLTextureWrapS wrap)
Convert wrapping mode to GL constants.
|
static JCGLTextureWrapT |
textureWrapTFromGL(int wrap)
Convert wrapping modes from GL constants.
|
static int |
textureWrapTToGL(JCGLTextureWrapT wrap)
Convert wrapping mode to GL constants.
|
static JCGLType |
typeFromGL(int type)
Convert types from GL constants.
|
static int |
typeToGL(JCGLType type)
Convert types to GL constants.
|
static JCGLUnsignedType |
unsignedTypeFromGL(int type)
Convert types from GL constants.
|
static int |
unsignedTypeToGL(JCGLUnsignedType type)
Convert types to GL constants.
|
static JCGLUsageHint |
usageHintFromGL(int hint)
Convert hints from GL constants.
|
static int |
usageHintToGL(JCGLUsageHint hint)
Convert hints to GL constants.
|
public static JCGLBlendFunction blendFunctionFromGL(int type)
type - The GL constant.public static int blendFunctionToGL(JCGLBlendFunction function)
function - The functionpublic static JCGLPolygonMode polygonModeFromGL(int g)
g - The GL constant.public static int polygonModeToGL(JCGLPolygonMode g)
g - The mode.public static JCGLBlendEquation blendEquationFromGL(int e)
e - The GL constantpublic static int blendEquationToGL(JCGLBlendEquation e)
e - The equation.public static JCGLDepthFunction depthFunctionFromGL(int d)
d - The GL constant.public static int depthFunctionToGL(JCGLDepthFunction d)
d - The function.public static JCGLUnsignedType unsignedTypeFromGL(int type)
type - The GL constant.public static int unsignedTypeToGL(JCGLUnsignedType type)
type - The type.public static JCGLUsageHint usageHintFromGL(int hint)
hint - The GL constant.public static int usageHintToGL(JCGLUsageHint hint)
hint - The hint.public static JCGLScalarType scalarTypeFromGL(int type)
type - The GL constant.public static int scalarTypeToGL(JCGLScalarType type)
type - The type.public static int scalarIntegralTypeToGL(JCGLScalarIntegralType type)
type - The type.public static JCGLScalarIntegralType scalarIntegralTypeFromGL(int type)
type - The GL constant.public static int typeToGL(JCGLType type)
type - The type.public static JCGLType typeFromGL(int type)
type - The GL constant.public static JCGLPrimitives primitiveFromGL(int code)
code - The GL constant.public static int primitiveToGL(JCGLPrimitives p)
p - The primitives.public static JCGLTextureFilterMagnification textureFilterMagFromGL(int mag_filter)
mag_filter - The GL constant.public static int textureFilterMagToGL(JCGLTextureFilterMagnification mag_filter)
mag_filter - The filter.public static JCGLTextureFilterMinification textureFilterMinFromGL(int min_filter)
min_filter - The GL constant.public static int textureFilterMinToGL(JCGLTextureFilterMinification min_filter)
min_filter - The filter.public static JCGLTextureWrapR textureWrapRFromGL(int wrap)
wrap - The GL constant.public static int textureWrapRToGL(JCGLTextureWrapR wrap)
wrap - The mode.public static JCGLTextureWrapS textureWrapSFromGL(int wrap)
wrap - The GL constant.public static int textureWrapSToGL(JCGLTextureWrapS wrap)
wrap - The mode.public static JCGLTextureWrapT textureWrapTFromGL(int wrap)
wrap - The GL constant.public static int textureWrapTToGL(JCGLTextureWrapT wrap)
wrap - The mode.public static JCGLPixelFormat pixelTypeFromGL(int e)
e - The GL constant.public static int pixelTypeToGL(JCGLPixelFormat p)
p - The pixel type.public static JCGLFramebufferBlitBuffer framebufferBlitBufferFromGL(int buffer)
buffer - The GL constant.public static int framebufferBlitBufferSetToMask(Set<JCGLFramebufferBlitBuffer> buffers)
buffers - The buffers.public static int framebufferBlitBufferToGL(JCGLFramebufferBlitBuffer buffer)
buffer - The buffer.public static JCGLFramebufferBlitFilter framebufferBlitFilterFromGL(int filter)
filter - The GL constant.public static int framebufferBlitFilterToGL(JCGLFramebufferBlitFilter filter)
filter - The filters.public static JCGLFramebufferStatus framebufferStatusFromGL(int status)
status - The GL constant.public static int framebufferStatusToGL(JCGLFramebufferStatus status)
status - The status.public static JCGLFaceSelection faceSelectionFromGL(int faces)
faces - The GL constant.public static int faceSelectionToGL(JCGLFaceSelection faces)
faces - The faces.public static JCGLFaceWindingOrder faceWindingOrderFromGL(int f)
f - The order.public static int faceWindingOrderToGL(JCGLFaceWindingOrder f)
f - The face winding order.public static int stencilFunctionToGL(JCGLStencilFunction function)
function - The function.public static JCGLStencilFunction stencilFunctionFromGL(int function)
function - The GL constantpublic static int stencilOperationToGL(JCGLStencilOperation op)
op - The op.public static JCGLStencilOperation stencilOperationFromGL(int op)
op - The GL constantpublic static JCGLCubeMapFaceLH cubeFaceFromGL(int face)
face - The GL constant.public static int cubeFaceToGL(JCGLCubeMapFaceLH face)
face - The face.Copyright © 2016 <code@io7m.com> http://io7m.com