gdk_gl_context_share_new

Langue: en

Version: 277259 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

gdk_gl_context_share_new - create new rendering context

SYNOPSIS

#include <gtkgl/gdkgl.h>

GdkGLContext *gdk_gl_context_share_new( GdkVisual *visual, GdkGLContext *sharelist, gint direct )

visual
Pointer to GdkVisual that defines the frame buffer resources available to the rendering context.
shareList
Context with which to share display lists and textures. NULL indicates no sharing.
direct
Has the value TRUE if direct connection to graphics system, or FALSE if connection through X server.

DESCRIPTION

gdk_gl_context_share_new creates new rendering context with reference count of 1 and returns pointer to it. If context creation fails NULL is returned.

The gdk_gl_* functions are quite straightforward wrappers around a few necessary GLX calls and should be easy to understand if you already know GLX.

LIBRARY USE

Use -lgtkgl as a flag to the loader.

SEE ALSO

glXCreateContext(3), gdk_gl_context_new(3), gdk_gl_choose_visual(3)

AUTHORS

The author of the GTKGLArea library is Janne Löf.

This manpage was created by Morten Kjeldgaard for the Debian project.