GLConfig Class Reference

List of all members.

Detailed Description

OpenGL frame buffer configuration object.


Public Member Functions

char[] toString ()
 Gets an object identification.
 this (int[] attrib_list)
 Creates a new OpenGL frame buffer configuration that match the specified attributes.
 this (Screen screen, int[] attrib_list)
 Creates a new OpenGL frame buffer configuration that match the specified attributes.
 this (GLConfigMode mode)
 Creates a mew OpenGL frame buffer configuration that match the specified display mode.
 this (GLConfigMode mode, GLConfigMode fallback)
 Creates a mew OpenGL frame buffer configuration that match the specified display mode, or the fallback mode.
 this (Screen screen, GLConfigMode mode)
 Creates a new OpenGL frame buffer configuration that match the specified display mode.
Screen getScreen ()
 Gets the Screen.
bit getAttribute (int attribute, int *value)
 Gets information about a OpenGL frame buffer configuration.
gint getDepth ()
 Gets the color depth of the OpenGL-capable visual.
gint getLayerPlane ()
 Gets the layer plane (level) of the frame buffer.
gint getNAuxBuffers ()
 Gets the number of auxiliary color buffers.
gint getNSampleBuffers ()
 Gets the number of multisample buffers.
gboolean isRGBA ()
 Returns whether the configured frame buffer is RGBA mode.
gboolean isDoubleBuffered ()
 Returns whether the configuration supports the double-buffered visual.
gboolean isStereo ()
 Returns whether the configuration supports the stereo visual.
gboolean hasAlpha ()
 Returns whether the configured color buffer has alpha bits.
gboolean hasDepthBuffer ()
 Returns whether the configured frame buffer has depth buffer.
gboolean hasStencilBuffer ()
 Returns whether the configured frame buffer has stencil buffer.
gboolean hasAccumBuffer ()
 Returns whether the configured frame buffer has accumulation buffer.


Member Function Documentation

bit GLConfig.getAttribute int  attribute,
int *  value
 

Gets information about a OpenGL frame buffer configuration.

Parameters:
attribute the attribute to be returned.
value returns the requested value.
Returns:
true if it succeeded, false otherwise.

gint GLConfig.getDepth  ) 
 

Gets the color depth of the OpenGL-capable visual.

Returns:
number of bits per pixel

gint GLConfig.getLayerPlane  ) 
 

Gets the layer plane (level) of the frame buffer.

Zero is the default frame buffer. Positive layer planes correspond to frame buffers that overlay the default buffer, and negative layer planes correspond to frame buffers that underlie the default frame buffer.

Returns:
layer plane.

gint GLConfig.getNAuxBuffers  ) 
 

Gets the number of auxiliary color buffers.

Returns:
number of auxiliary color buffers.

gint GLConfig.getNSampleBuffers  ) 
 

Gets the number of multisample buffers.

Returns:
number of multisample buffers.

Screen GLConfig.getScreen  ) 
 

Gets the Screen.

Returns:
the screen

gboolean GLConfig.hasAccumBuffer  ) 
 

Returns whether the configured frame buffer has accumulation buffer.

Returns:
true if the frame buffer has accumulation buffer, false otherwise.

gboolean GLConfig.hasAlpha  ) 
 

Returns whether the configured color buffer has alpha bits.

Returns:
true if the color buffer has alpha bits, false otherwise.

gboolean GLConfig.hasDepthBuffer  ) 
 

Returns whether the configured frame buffer has depth buffer.

Returns:
true if the frame buffer has depth buffer, false otherwise.

gboolean GLConfig.hasStencilBuffer  ) 
 

Returns whether the configured frame buffer has stencil buffer.

Returns:
true if the frame buffer has stencil buffer, false otherwise.

gboolean GLConfig.isDoubleBuffered  ) 
 

Returns whether the configuration supports the double-buffered visual.

Returns:
true if the double-buffered visual is supported, false otherwise.

gboolean GLConfig.isRGBA  ) 
 

Returns whether the configured frame buffer is RGBA mode.

Returns:
true if the configured frame buffer is RGBA mode, false otherwise.

gboolean GLConfig.isStereo  ) 
 

Returns whether the configuration supports the stereo visual.

Returns:
true if the stereo visual is supported, false otherwise.

GLConfig.this Screen  screen,
GLConfigMode  mode
 

Creates a new OpenGL frame buffer configuration that match the specified display mode.

Parameters:
screen target screen.
mode isplay mode bit mask.

GLConfig.this GLConfigMode  mode,
GLConfigMode  fallback
 

Creates a mew OpenGL frame buffer configuration that match the specified display mode, or the fallback mode.

Parameters:
mode display mode bit mask.

GLConfig.this GLConfigMode  mode  ) 
 

Creates a mew OpenGL frame buffer configuration that match the specified display mode.

Parameters:
mode display mode bit mask.

GLConfig.this Screen  screen,
int[]  attrib_list
 

Creates a new OpenGL frame buffer configuration that match the specified attributes.

Parameters:
screen target screen.
attrib_list a list of attribute/value pairs. The last attribute must be GDK_GL_ATTRIB_LIST_NONE.

GLConfig.this int[]  attrib_list  ) 
 

Creates a new OpenGL frame buffer configuration that match the specified attributes.

Parameters:
attrib_list a list of attribute/value pairs. The last attribute must be GDK_GL_ATTRIB_LIST_NONE.

char [] GLConfig.toString  ) 
 

Gets an object identification.

Returns:
a string that identifies the object (or the class)


SourceForge.net Logo DSource.org Logo digitalmars.com Logo