Kanzi 3.9.10
kzs_glx.h File Reference

GLX functions. More...

#include <kanzi/core.ui/platform/windowing/common/kzs_native_handles.h>
#include <kanzi/core.ui/platform/windowing/common/kzs_window.h>
#include <kanzi/core/legacy/debug/kzs_error.hpp>
#include <kanzi/core/legacy/kzs_types.hpp>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <GL/glcorearb.h>
#include <GL/glext.h>
#include <GL/glx.h>

Macros

#define GL_GLEXT_PROTOTYPES
 

Functions

kzsError kzsGLXContextDeinitialize (Display *display, GLXContext context)
 Deinitializes the GLX context.
 
kzsError kzsGLXContextInitialize (Display *display, XVisualInfo *visualInfo, GLXContext shareList, GLXContext *out_glxContext)
 Initializes the GLX context.
 
kzsError kzsGLXGetConfig (Display *display, XVisualInfo *visualInfo, kzInt attribute, kzInt *out_value)
 Returns an GLX configuration attribute.
 
kzsError kzsGLXMakeCurrent (Display *display, Window window, GLXContext context)
 Makes the GLX surface active.
 
kzsError kzsGLXSwapInterval (kzInt interval)
 Sets the swap interval.
 
kzsError kzsGLXUpdateSurface (Display *display, Window window)
 Updates the GLX surface on the screen.
 

Detailed Description

GLX functions.

Copyright 2008-2017 by Rightware. All rights reserved.

Macro Definition Documentation

◆ GL_GLEXT_PROTOTYPES

#define GL_GLEXT_PROTOTYPES

Function Documentation

◆ kzsGLXContextInitialize()

kzsError kzsGLXContextInitialize ( Display * display,
XVisualInfo * visualInfo,
GLXContext shareList,
GLXContext * out_glxContext )

Initializes the GLX context.

◆ kzsGLXContextDeinitialize()

kzsError kzsGLXContextDeinitialize ( Display * display,
GLXContext context )

Deinitializes the GLX context.

◆ kzsGLXMakeCurrent()

kzsError kzsGLXMakeCurrent ( Display * display,
Window window,
GLXContext context )

Makes the GLX surface active.

◆ kzsGLXUpdateSurface()

kzsError kzsGLXUpdateSurface ( Display * display,
Window window )

Updates the GLX surface on the screen.

◆ kzsGLXSwapInterval()

kzsError kzsGLXSwapInterval ( kzInt interval)

Sets the swap interval.

◆ kzsGLXGetConfig()

kzsError kzsGLXGetConfig ( Display * display,
XVisualInfo * visualInfo,
kzInt attribute,
kzInt * out_value )

Returns an GLX configuration attribute.