Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
samurai Namespace Reference

Namespaces

namespace  assert
 
namespace  GL
 
namespace  memory
 
namespace  samuraiImgui
 

Classes

struct  AssetManagerWindow
 
struct  Button
 
struct  ContainerInformation
 
struct  ContainerManager
 
struct  ContainersWindow
 
struct  Context
 
struct  Editor
 
struct  Input
 
struct  LogManager
 
struct  LogWindow
 
struct  RuntimeContainer
 
struct  ShortcutManager
 
struct  ShortcutsWindow
 
struct  StaticString
 
struct  StaticVector
 
struct  Window
 
struct  WindowState
 

Typedefs

using containerId_t = unsigned int
 

Enumerations

enum  logType { logNormal = 0 , logWarning = 1 , logError = 2 }
 

Functions

size_t constexpr KB (size_t x)
 
size_t constexpr MB (size_t x)
 
size_t constexpr GB (size_t x)
 
size_t constexpr TB (size_t x)
 
float constexpr BYTES_TO_KB (size_t x)
 
float constexpr BYTES_TO_MB (size_t x)
 
float constexpr BYTES_TO_GB (size_t x)
 
void align64 (size_t &val)
 
void align64 (char *&val)
 
void removeCharacters (char *dest, const char *source, const char *charsToRemove, size_t destSize)
 
void toLower (char *dest, const char *source, size_t size)
 
void toUpper (char *dest, const char *source, size_t size)
 
bool findChar (const char *source, char c)
 
size_t strlcpy (char *dst, const char *src, size_t size)
 
size_t strlcpy (char *dst, std::string src, size_t size)
 
std::vector< std::string > split (const char *source, char c)
 
void logToFile (const char *fileName, const char *l, int type=samurai::logNormal)
 
std::vector< std::string > tokenizeShortcutSimple (const char *shortcut)
 
std::vector< std::string > tokenizeShortcutNormalized (const char *shortcut)
 
std::string normalizeShortcutName (const char *shortcut)
 
bool shortcut (const samurai::Input &input, const char *shortcut)
 
bool MenuItem (const samurai::Input &input, const char *label, const char *shortcut, bool *p_selected, bool enabled)
 
void initShortcutApi ()
 

Typedef Documentation

◆ containerId_t

using samurai::containerId_t = unsigned int

Definition at line 14 of file containerManager.h.

Enumeration Type Documentation

◆ logType

Enumerator
logNormal 
logWarning 
logError 

Definition at line 8 of file log.h.

Function Documentation

◆ align64() [1/2]

void samurai::align64 ( char *& val)
inline

Definition at line 19 of file Sizes.h.

◆ align64() [2/2]

void samurai::align64 ( size_t & val)
inline

Definition at line 14 of file Sizes.h.

Here is the caller graph for this function:

◆ BYTES_TO_GB()

float constexpr samurai::BYTES_TO_GB ( size_t x)
inlineconstexpr

Definition at line 12 of file Sizes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BYTES_TO_KB()

float constexpr samurai::BYTES_TO_KB ( size_t x)
inlineconstexpr

Definition at line 10 of file Sizes.h.

Here is the caller graph for this function:

◆ BYTES_TO_MB()

float constexpr samurai::BYTES_TO_MB ( size_t x)
inlineconstexpr

Definition at line 11 of file Sizes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findChar()

bool samurai::findChar ( const char * source,
char c )

Definition at line 44 of file stringManipulation.cpp.

Here is the caller graph for this function:

◆ GB()

size_t constexpr samurai::GB ( size_t x)
inlineconstexpr

Definition at line 7 of file Sizes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initShortcutApi()

void samurai::initShortcutApi ( )

Definition at line 16 of file shortcutApi.cpp.

Here is the caller graph for this function:

◆ KB()

size_t constexpr samurai::KB ( size_t x)
inlineconstexpr

Definition at line 5 of file Sizes.h.

Here is the caller graph for this function:

◆ logToFile()

void samurai::logToFile ( const char * fileName,
const char * l,
int type = samurai::logNormal )

Definition at line 69 of file log.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MB()

size_t constexpr samurai::MB ( size_t x)
inlineconstexpr

Definition at line 6 of file Sizes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MenuItem()

bool samurai::MenuItem ( const samurai::Input & input,
const char * label,
const char * shortcut,
bool * p_selected,
bool enabled )

Definition at line 191 of file shortcutApi.cpp.

Here is the call graph for this function:

◆ normalizeShortcutName()

std::string samurai::normalizeShortcutName ( const char * shortcut)

Definition at line 117 of file shortcutApi.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeCharacters()

void samurai::removeCharacters ( char * dest,
const char * source,
const char * charsToRemove,
size_t destSize )

Definition at line 7 of file stringManipulation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shortcut()

bool samurai::shortcut ( const samurai::Input & input,
const char * shortcut )

Definition at line 140 of file shortcutApi.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ split()

std::vector< std::string > samurai::split ( const char * source,
char c )

Definition at line 78 of file stringManipulation.cpp.

Here is the caller graph for this function:

◆ strlcpy() [1/2]

size_t samurai::strlcpy ( char * dst,
const char * src,
size_t size )

Definition at line 58 of file stringManipulation.cpp.

Here is the caller graph for this function:

◆ strlcpy() [2/2]

size_t samurai::strlcpy ( char * dst,
std::string src,
size_t size )

Definition at line 73 of file stringManipulation.cpp.

Here is the call graph for this function:

◆ TB()

size_t constexpr samurai::TB ( size_t x)
inlineconstexpr

Definition at line 8 of file Sizes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tokenizeShortcutNormalized()

std::vector< std::string > samurai::tokenizeShortcutNormalized ( const char * shortcut)

Definition at line 87 of file shortcutApi.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tokenizeShortcutSimple()

std::vector< std::string > samurai::tokenizeShortcutSimple ( const char * shortcut)

Definition at line 75 of file shortcutApi.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toLower()

void samurai::toLower ( char * dest,
const char * source,
size_t size )

Definition at line 26 of file stringManipulation.cpp.

Here is the caller graph for this function:

◆ toUpper()

void samurai::toUpper ( char * dest,
const char * source,
size_t size )

Definition at line 35 of file stringManipulation.cpp.