public final class JCGLTextureFormats extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkColorRenderableTexture2D(JCGLTextureFormat t)
Check that the texture format is a color-renderable format.
|
static void |
checkDepthOnlyRenderableTexture2D(JCGLTextureFormat t)
Check that the texture is of a depth (not stencil) renderable format.
|
static void |
checkDepthRenderableTexture2D(JCGLTextureFormat t)
Check that the texture format is a depth-renderable format.
|
static void |
checkDepthStencilRenderableTexture2D(JCGLTextureFormat t)
Check that the texture is of a depth+stencil-renderable format.
|
static int |
getDepthBits(JCGLTextureFormat f) |
static int |
getStencilBits(JCGLTextureFormat f) |
static boolean |
isColorRenderable2D(JCGLTextureFormat f) |
static boolean |
isDepthRenderable(JCGLTextureFormat f) |
static boolean |
isFloatingPoint(JCGLTextureFormat f) |
static boolean |
isStencilRenderable(JCGLTextureFormat f) |
public static void checkColorRenderableTexture2D(JCGLTextureFormat t) throws JCGLExceptionFormatError
t - The texture formatJCGLExceptionFormatError - If the texture is not of the correct
formatpublic static void checkDepthRenderableTexture2D(JCGLTextureFormat t) throws JCGLExceptionFormatError
t - The texture formatJCGLExceptionFormatError - If the texture is not of the correct
formatpublic static void checkDepthOnlyRenderableTexture2D(JCGLTextureFormat t) throws JCGLExceptionFormatError
t - The texture formatJCGLExceptionFormatError - If the texture is not of the correct
formatpublic static void checkDepthStencilRenderableTexture2D(JCGLTextureFormat t) throws JCGLExceptionFormatError
t - The textureJCGLExceptionFormatError - If the texture is not of the correct
formatpublic static boolean isDepthRenderable(JCGLTextureFormat f)
f - A texture formattrue iff f is depth-renderablepublic static int getDepthBits(JCGLTextureFormat f)
f - A texture formatfpublic static boolean isColorRenderable2D(JCGLTextureFormat f)
f - A texture formattrue iff f is color-renderablepublic static boolean isFloatingPoint(JCGLTextureFormat f)
f - The texture formattrue iff f is a floating-point fpublic static boolean isStencilRenderable(JCGLTextureFormat f)
f - The texture formattrue iff f is a stencil-renderable formatpublic static int getStencilBits(JCGLTextureFormat f)
f - A texture formatfCopyright © 2015 <code@io7m.com> http://io7m.com