GLX functions. More...
#include <kanzi/core.ui/platform/windowing/common/kzs_window.h>
#include <kanzi/core.ui/platform/input/common/kzs_input.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 | kzsGLXContextInitialize (Display *display, XVisualInfo *visualInfo, GLXContext shareList, GLXContext *out_glxContext) |
Initializes the GLX context. More... | |
kzsError | kzsGLXContextDeinitialize (Display *display, GLXContext context) |
Deinitializes the GLX context. More... | |
kzsError | kzsGLXMakeCurrent (Display *display, Window window, GLXContext context) |
Makes the GLX surface active. More... | |
kzsError | kzsGLXUpdateSurface (Display *display, Window window) |
Updates the GLX surface on the screen. More... | |
kzsError | kzsGLXSwapInterval (kzInt interval) |
Sets the swap interval. More... | |
kzsError | kzsGLXGetConfig (Display *display, XVisualInfo *visualInfo, kzInt attribute, kzInt *out_value) |
Returns an GLX configuration attribute. More... | |
GLX functions.
Copyright 2008-2017 by Rightware. All rights reserved.
#define GL_GLEXT_PROTOTYPES |
kzsError kzsGLXContextInitialize | ( | Display * | display, |
XVisualInfo * | visualInfo, | ||
GLXContext | shareList, | ||
GLXContext * | out_glxContext | ||
) |
Initializes the GLX context.
kzsError kzsGLXContextDeinitialize | ( | Display * | display, |
GLXContext | context | ||
) |
Deinitializes the GLX context.
kzsError kzsGLXMakeCurrent | ( | Display * | display, |
Window | window, | ||
GLXContext | context | ||
) |
Makes the GLX surface active.
kzsError kzsGLXUpdateSurface | ( | Display * | display, |
Window | window | ||
) |
Updates the GLX surface on the screen.