com.metsci.glimpse.gl.util
Class GLCapabilityUtils

java.lang.Object
  extended by com.metsci.glimpse.gl.util.GLCapabilityUtils

public class GLCapabilityUtils
extends java.lang.Object

Author:
osborn

Field Summary
static java.lang.String glExtensionDocumentation
           
static java.lang.String glRendererDocumentation
           
static java.lang.String glShaderVersionDocumentation
           
static java.lang.String glVendorDocumentation
           
static java.lang.String glVersionDocumentation
           
 
Method Summary
static java.lang.String getGLExtensions(javax.media.opengl.GL gl)
           
static int getGLMaxElementsIndices(javax.media.opengl.GL gl)
           
static int getGLMaxElementsVertices(javax.media.opengl.GL gl)
           
static int getGLMaxGeometryShaderOutput(javax.media.opengl.GL gl)
          Returns the maximum number of components of outputs written by a geometry shader, which must be at least 128
static int getGLMaxTextureBufferSize(javax.media.opengl.GL gl)
          The value gives the maximum number of texels allowed in the texel array of a texture buffer object.
static int getGLMaxTextureEdgeLength(javax.media.opengl.GL gl)
          The value gives a rough estimate of the largest texture that the GL can handle.
static int getGLMaxVertexAttributes(javax.media.opengl.GL gl)
          Returns the maximum number of 4-component generic vertex attributes accessible to a vertex shader.
static java.lang.String getGLRendererString(javax.media.opengl.GL gl)
           
static java.lang.String getGLShaderVersionString(javax.media.opengl.GL gl)
           
static java.lang.String getGLVendorString(javax.media.opengl.GL gl)
           
static java.lang.String getGLVersionString(javax.media.opengl.GL gl)
           
static void logGLBufferProperties(java.util.logging.Logger logger, java.util.logging.Level level, javax.media.opengl.GLContext context, java.lang.String prefix)
           
static void logGLExtensions(java.util.logging.Logger logger, java.util.logging.Level level, javax.media.opengl.GLContext context, boolean separateLines)
           
static void logGLMaximumValues(java.util.logging.Logger logger, java.util.logging.Level level, javax.media.opengl.GLContext context)
          Logs a variety of capability limitations, such as maximum texture size.
static void logGLVersionInfo(java.util.logging.Logger logger, java.util.logging.Level level, javax.media.opengl.GLContext context)
           
static void logGLVersionInfo(java.util.logging.Logger logger, java.util.logging.Level level, javax.media.opengl.GLContext context, boolean includeDocumentations)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

glVendorDocumentation

public static final java.lang.String glVendorDocumentation
See Also:
Constant Field Values

glRendererDocumentation

public static final java.lang.String glRendererDocumentation
See Also:
Constant Field Values

glVersionDocumentation

public static final java.lang.String glVersionDocumentation
See Also:
Constant Field Values

glShaderVersionDocumentation

public static final java.lang.String glShaderVersionDocumentation
See Also:
Constant Field Values

glExtensionDocumentation

public static final java.lang.String glExtensionDocumentation
See Also:
Constant Field Values
Method Detail

logGLBufferProperties

public static void logGLBufferProperties(java.util.logging.Logger logger,
                                         java.util.logging.Level level,
                                         javax.media.opengl.GLContext context,
                                         java.lang.String prefix)

logGLVersionInfo

public static void logGLVersionInfo(java.util.logging.Logger logger,
                                    java.util.logging.Level level,
                                    javax.media.opengl.GLContext context)

logGLVersionInfo

public static void logGLVersionInfo(java.util.logging.Logger logger,
                                    java.util.logging.Level level,
                                    javax.media.opengl.GLContext context,
                                    boolean includeDocumentations)

logGLExtensions

public static void logGLExtensions(java.util.logging.Logger logger,
                                   java.util.logging.Level level,
                                   javax.media.opengl.GLContext context,
                                   boolean separateLines)

logGLMaximumValues

public static void logGLMaximumValues(java.util.logging.Logger logger,
                                      java.util.logging.Level level,
                                      javax.media.opengl.GLContext context)
Logs a variety of capability limitations, such as maximum texture size.


getGLMaxVertexAttributes

public static int getGLMaxVertexAttributes(javax.media.opengl.GL gl)
Returns the maximum number of 4-component generic vertex attributes accessible to a vertex shader. The value must be at least 16.


getGLMaxGeometryShaderOutput

public static int getGLMaxGeometryShaderOutput(javax.media.opengl.GL gl)
Returns the maximum number of components of outputs written by a geometry shader, which must be at least 128


getGLMaxTextureEdgeLength

public static int getGLMaxTextureEdgeLength(javax.media.opengl.GL gl)
The value gives a rough estimate of the largest texture that the GL can handle. The value must be at least 1024. Use a proxy texture target such as GL_PROXY_TEXTURE_1D or GL_PROXY_TEXTURE_2D to determine if a texture is too large.


getGLMaxTextureBufferSize

public static int getGLMaxTextureBufferSize(javax.media.opengl.GL gl)
The value gives the maximum number of texels allowed in the texel array of a texture buffer object. Value must be at least 65536.


getGLMaxElementsIndices

public static int getGLMaxElementsIndices(javax.media.opengl.GL gl)

getGLMaxElementsVertices

public static int getGLMaxElementsVertices(javax.media.opengl.GL gl)

getGLVendorString

public static java.lang.String getGLVendorString(javax.media.opengl.GL gl)
Returns:
The company responsible for this GL implementation. This name does not change from release to release.

getGLRendererString

public static java.lang.String getGLRendererString(javax.media.opengl.GL gl)
Returns:
The name of the renderer. This name is typically specific to a particular configuration of a hardware platform. It does not change from release to release.

getGLVersionString

public static java.lang.String getGLVersionString(javax.media.opengl.GL gl)
Returns:
A version or release number.

getGLShaderVersionString

public static java.lang.String getGLShaderVersionString(javax.media.opengl.GL gl)
Returns:
A version or release number for the shading language.

getGLExtensions

public static java.lang.String getGLExtensions(javax.media.opengl.GL gl)
Returns:
A space-delimited list of supported extensions to GL.


Copyright © 2012 Metron, Inc.. All Rights Reserved.