hx3d  1
2D/3D Simple Game Framework
Namespaces | Classes | Typedefs | Functions | Variables
hx3d Namespace Reference

hx3d framework namespace More...

Namespaces

 algo
 Useful algorithm helpers.
 
 audio
 Audio components.
 
 ecs
 Entity-Component-System & Scene Graph components.
 
 graphics
 2D and 3D graphics components.
 
 gui
 2D/3D GUI components
 
 math
 Math structures and functions.
 
 net
 Network management components.
 
 physics2d
 2D physics components
 
 tweens
 Inbetweening animations.
 
 window
 Windowing and event components.
 

Classes

class  AssetManager
 Asset management. More...
 
class  Bitset
 Bitset helper in an unsigned int. More...
 
class  CallbackProperty
 Callback-on-change property. More...
 
class  CallbackTimer
 Improved timer with callback execution. More...
 
class  Chronometer
 Simple chronometer. Measures time. More...
 
class  Core
 Centralized framework management. More...
 
class  File
 File loading abstraction. More...
 
class  LogImpl
 Logging implementation: to log, use hx3d::Log. More...
 
class  ObjectMap
 Map of whatever you want. Useful for user data. More...
 
class  Pool
 Manage poolable elements. More...
 
class  Poolable
 Reutilisable elements. Recycling is good for your memory. More...
 
class  Property
 Observable property. More...
 
class  PropertyObserver
 Property observer (Observer pattern) More...
 
class  Resource
 Resource type: to use in an asset manager. More...
 
class  Timer
 Simple timer. More...
 
class  TimerManager
 Manages multiple callback timers. More...
 

Typedefs

template<class T >
using Ptr = std::shared_ptr< T >
 Quick-typing shared ptr.
 
template<class T >
using UPtr = std::unique_ptr< T >
 Quick-typing unique ptr.
 
template<class T >
using EnableSharedThis = std::enable_shared_from_this< T >
 Quick-typing enable shared from this.
 

Functions

template<class T , class... Args>
Ptr< T > Make (Args &&...args)
 Quick-typing make shared.
 
std::string format (const std::string fmt,...)
 Format a string using printf notation. More...
 
std::string format (const std::string fmt, va_list args)
 Format a string using printf notation (va_list version). More...
 
std::vector< std::string > & split (const std::string &s, char delim, std::vector< std::string > &elems)
 Split a string using a delimiter and a container. More...
 
std::vector< std::string > split (const std::string &s, char delim)
 Split a string using a delimiter. More...
 
void checkGLError (const char *file, int line)
 Display the last unchecked OpenGL errors. More...
 

Variables

static hx3d::LogImpl Log
 Current log implementation.
 

Detailed Description

hx3d framework namespace

Function Documentation

void hx3d::checkGLError ( const char *  file,
int  line 
)

Display the last unchecked OpenGL errors.

Parameters
fileCurrent file
lineCurrent line

Definition at line 28 of file error.cpp.

std::string hx3d::format ( const std::string  fmt,
  ... 
)

Format a string using printf notation.

Parameters
fmtText
...Arguments
Returns
Formatted string

Definition at line 27 of file string.cpp.

std::string hx3d::format ( const std::string  fmt,
va_list  args 
)

Format a string using printf notation (va_list version).

Parameters
fmtText
argsArguments
Returns
Formatted string

Definition at line 50 of file string.cpp.

std::vector< std::string > & hx3d::split ( const std::string &  s,
char  delim,
std::vector< std::string > &  elems 
)

Split a string using a delimiter and a container.

Parameters
sString
delimDelimiter
elemsContainer
Returns
Split string

Definition at line 70 of file string.cpp.

std::vector< std::string > hx3d::split ( const std::string &  s,
char  delim 
)

Split a string using a delimiter.

Parameters
sString
delimDelimiter
Returns
Split string

Definition at line 80 of file string.cpp.