GlistEngine
Loading...
Searching...
No Matches
gUbo< T > Class Template Reference

#include <gUbo.h>

Inheritance diagram for gUbo< T >:
Collaboration diagram for gUbo< T >:

Public Member Functions

template<typename ... Args>
 gUbo (Args &&... args, int bindingpoint, int usage=GL_DYNAMIC_DRAW)
 
 ~gUbo ()
 
void bind () const
 
void unbind () const
 
void update ()
 
void update (int offset, int length)
 
T * getData ()
 
void setData (T *newObject)
 
GLuint getId () const
 
int getBindingPoint () const
 
int getSize () const
 
- Public Member Functions inherited from gRenderObject
 gRenderObject ()
 
int getScreenWidth ()
 
int getScreenHeight ()
 
void pushMatrix ()
 
void popMatrix ()
 
- Public Member Functions inherited from gObject
 gObject ()
 
void logi (std::string message)
 
void logd (std::string message)
 
void logw (std::string message)
 
void loge (std::string message)
 
void logi (std::string tag, std::string message)
 
void logd (std::string tag, std::string message)
 
void logw (std::string tag, std::string message)
 
void loge (std::string tag, std::string message)
 

Additional Inherited Members

- Static Public Member Functions inherited from gRenderObject
static void setScreenSize (int screenWidth, int screenHeight)
 
static void setUnitScreenSize (int unitWidth, int unitHeight)
 
static void setScreenScaling (int screenScaling)
 
static void enableShadowMapping ()
 
static void disableShadowMapping ()
 
static bool isShadowMappingEnabled ()
 
static gRenderergetRenderer ()
 
static void destroyRenderer ()
 
static void createRenderer ()
 
- Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
 
static std::string gGetAssetsDir ()
 
static void gSetAssetsDir (std::string assetsDir)
 
static std::string gGetFilesDir ()
 
static std::string gGetImagesDir ()
 
static std::string gGetFontsDir ()
 
static std::string gGetModelsDir ()
 
static std::string gGetTexturesDir ()
 
static std::string gGetShadersDir ()
 
static std::string gGetSoundsDir ()
 
static std::string gGetDatabasesDir ()
 
static std::string gGetVideosDir ()
 
static void setCurrentResolution (int scalingNo, int currentResolutionNo)
 
- Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
 
static const int LOGLEVEL_DEBUG
 
static const int LOGLEVEL_INFO
 
static const int LOGLEVEL_WARNING
 
static const int LOGLEVEL_ERROR
 
- Static Protected Attributes inherited from gRenderObject
static bool isshadowmappingenabled
 
- Static Protected Attributes inherited from gObject
static int renderpassnum
 
static int renderpassno
 
static int releasescaling
 
static int releaseresolution
 

Constructor & Destructor Documentation

◆ gUbo()

template<typename T >
template<typename ... Args>
gUbo< T >::gUbo ( Args &&...  args,
int  bindingpoint,
int  usage = GL_DYNAMIC_DRAW 
)
inline

◆ ~gUbo()

template<typename T >
gUbo< T >::~gUbo ( )
inline

Member Function Documentation

◆ bind()

template<typename T >
void gUbo< T >::bind ( ) const
inline

◆ getBindingPoint()

template<typename T >
int gUbo< T >::getBindingPoint ( ) const
inline

◆ getData()

template<typename T >
T * gUbo< T >::getData ( )
inline

◆ getId()

template<typename T >
GLuint gUbo< T >::getId ( ) const
inline

◆ getSize()

template<typename T >
int gUbo< T >::getSize ( ) const
inline

◆ setData()

template<typename T >
void gUbo< T >::setData ( T *  newObject)
inline

◆ unbind()

template<typename T >
void gUbo< T >::unbind ( ) const
inline

◆ update() [1/2]

template<typename T >
void gUbo< T >::update ( )
inline

◆ update() [2/2]

template<typename T >
void gUbo< T >::update ( int  offset,
int  length 
)
inline

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