TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
TeaPacket Namespace Reference

Namespaces

namespace  Assets
 Functionality relating to files.
 
namespace  Error
 Custom errors specific to TeaPacket.
 
namespace  Files
 Functionality relating to files.
 
namespace  Graphics
 Functionality relating to drawing graphics to the screen.
 
namespace  Interface
 Functionality relating to core application management, such as event-handling and process management.
 
namespace  Math
 Math related functions and classes for TeaPacket.
 
namespace  Memory
 

Functions

void Print (const std::string &message)
 Prints a string to the debugging console.
 
template<typename T>
std::enable_if_t< std::is_arithmetic_v< T > > Print (const T &val)
 Prints arithmetic values.
 
template<>
std::enable_if_t< std::is_arithmetic_v< char > > Print (const char &val)
 Prints a character.
 
template<typename T>
std::enable_if_t<!std::is_arithmetic_v< T > > Print (const T &val)
 Prints a non-arithmetic, but string-convertable type.
 
void Print (const char *const &message)
 Prints a C string.
 
void Print (char *const &message)
 Also prints a C string.
 
template<typename T>
void PrintLine (const T &val)
 Prints a value, followed by a line.
 
bool Initialize ()
 
bool ShouldRun ()
 
void Tick ()
 Perform all engine functionality for 1 frame (or Tick).
 
void DeInitialize ()
 De-initialize all engine functionality.
 
void RunEngine ()
 A helper function which handles the basic engine loop automatically.
 

Function Documentation

◆ DeInitialize()

void TeaPacket::DeInitialize ( )

De-initialize all engine functionality.

◆ Initialize()

bool TeaPacket::Initialize ( )

Initialize all engine functionality.

Returns
Whether the engine successfully initialized or not.

◆ Print() [1/6]

void TeaPacket::Print ( char *const & message)
inline

Also prints a C string.

◆ Print() [2/6]

template<>
std::enable_if_t< std::is_arithmetic_v< char > > TeaPacket::Print ( const char & val)
inline

Prints a character.

◆ Print() [3/6]

void TeaPacket::Print ( const char *const & message)
inline

Prints a C string.

◆ Print() [4/6]

void TeaPacket::Print ( const std::string & message)

Prints a string to the debugging console.

◆ Print() [5/6]

template<typename T>
std::enable_if_t< std::is_arithmetic_v< T > > TeaPacket::Print ( const T & val)

Prints arithmetic values.

◆ Print() [6/6]

template<typename T>
std::enable_if_t<!std::is_arithmetic_v< T > > TeaPacket::Print ( const T & val)

Prints a non-arithmetic, but string-convertable type.

◆ PrintLine()

template<typename T>
void TeaPacket::PrintLine ( const T & val)

Prints a value, followed by a line.

◆ RunEngine()

void TeaPacket::RunEngine ( )

A helper function which handles the basic engine loop automatically.

◆ ShouldRun()

bool TeaPacket::ShouldRun ( )

Returns whether the app should continue running.

Returns
If the app should continue running.

◆ Tick()

void TeaPacket::Tick ( )

Perform all engine functionality for 1 frame (or Tick).