Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::GlGraphicsAdapter Class Reference

Base class for handling calls to OpenGL family. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/gl_graphics_adapter.hpp>

Inheritance diagram for kanzi::GlGraphicsAdapter:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

kanzi::GlGraphicsAdapter::GlGraphicsAdapter ( )

Member Function Documentation

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)
struct ::KzsGlGraphicsContext* kanzi::GlGraphicsAdapter::getContext ( ) const
protected

The documentation for this class was generated from the following file: