Base class for handling calls to OpenGL family. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_graphics_adapter.hpp>
Public Member Functions | |
GlGraphicsAdapter () | |
void | setContext (struct KzsGlGraphicsContext *context) |
void | setNext (GlGraphicsAdapter *value) |
Set the next handler in the chain to be called for each API call. More... | |
Protected Member Functions | |
struct::KzsGlGraphicsContext * | getContext () const |
Base class for handling calls to OpenGL family.
GlGraphicsAdapters can be chained so that several handlers can handle a single call.
kzsGl* functions in kzs_opengl.h will call a root handler. The root handler and other handlers in the chain are configured by GlGraphicsControl in kzs_opengl.h
The API functions are listed in opengl_interface_*_hpp.inl files. The base class GlGraphicsAdapter has implementation for all these functions. Each function in the base class will simply check if there is next handler in the chain, and calls it if it exists.
kanzi::GlGraphicsAdapter::GlGraphicsAdapter | ( | ) |
void kanzi::GlGraphicsAdapter::setNext | ( | GlGraphicsAdapter * | value | ) |
Set the next handler in the chain to be called for each API call.
void kanzi::GlGraphicsAdapter::setContext | ( | struct KzsGlGraphicsContext * | context | ) |
|
protected |