GLContext Class Reference

List of all members.

Detailed Description

OpenGL rendering context object.


Public Member Functions

char[] toString ()
 Gets an object identification.
 this (GLDrawable drawable, GLContext share_list, gboolean direct, int render_type)
 Creates a new GLContext.
void destroy ()
 Destroy.
bit copy (GLContext src, ulong mask)
 Copy a GLContext into this one.
GLDrawable getGLDrawable ()
 Gets a new GLDrawable from this context.
GLConfig getGLConfig ()
 Gets a new GLConfig from the context.
GLContext getGLShareList ()
 Gets GdkGLContext with which the glcontext shares the display lists and texture objects.
bit isDirected ()
 Returns whether the glcontext is a direct rendering context.
int getRenderType ()
 Gets render_type of the glcontext.

Static Public Member Functions

GLContext getCurrent ()
 Returns the current GdkGLContext.


Member Function Documentation

bit GLContext.copy GLContext  src,
ulong  mask
 

Copy a GLContext into this one.

Parameters:
src sourceGLContext
mask 
Returns:
true if sucessefuly

void GLContext.destroy  ) 
 

Destroy.

GLContext GLContext.getCurrent  )  [static]
 

Returns the current GdkGLContext.

Returns:
Returns : the current GdkGLContext or NULL if there is no current context.

GLConfig GLContext.getGLConfig  ) 
 

Gets a new GLConfig from the context.

Returns:
the new GLConfig

GLDrawable GLContext.getGLDrawable  ) 
 

Gets a new GLDrawable from this context.

Returns:
the GLDrawable

GLContext GLContext.getGLShareList  ) 
 

Gets GdkGLContext with which the glcontext shares the display lists and texture objects.

Returns:
the new GLContext

int GLContext.getRenderType  ) 
 

Gets render_type of the glcontext.

Returns:
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE.

bit GLContext.isDirected  ) 
 

Returns whether the glcontext is a direct rendering context.

Returns:
TRUE if the glcontext is a direct rendering contest.

GLContext.this GLDrawable  drawable,
GLContext  share_list,
gboolean  direct,
int  render_type
 

Creates a new GLContext.

Parameters:
drawable 
share_list GLContext
direct 
render_type 

char [] GLContext.toString  ) 
 

Gets an object identification.

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


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