Gorgon Game Engine
Types.h File Reference

contains type definitions for Gorgon system More...

Include dependency graph for Types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AssumeOwnershipTag
 Where acceptable, denotes that the object will assume the ownership. More...
 
class  Empty
 A class that has no members and can be used as placeholder. More...
 
class  Range< T_ >
 This class represents a range of values. More...
 
class  Updatable
 Marks an object that can be updated. More...
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 

Macros

#define ENUMCLASS
 

Typedefs

typedef unsigned char Byte
 Represents smallest cell in memory. More...
 
typedef uint32_t Char
 
typedef float Float
 Represents floating point data type. More...
 

Enumerations

enum  ItemPosition {
  Nowhere, Alone, First, Middle,
  Last
}
 Defines where an item is located in a list. More...
 
enum  Parity { None, Odd, Even }
 Marks the parity as Odd or Even. More...
 
enum  YesNoAuto { No, Yes, Auto }
 This enumeration helps with systems that has boolen parameters that can be detected automatically, but can also be overriden. More...
 
enum  YesNoUnset { No, Yes, Unset }
 This enumeration helps with systems that has boolen parameters that can be unset/empty. More...
 

Functions

template<class T_ >
bool Between (Range< T_ > range, T_ v)
 Returns if the given number is within the given range including min but excluding max. More...
 
template<class T_ >
bool Between (T_ v, T_ min, T_ max)
 Returns if the given number is within the given range including min but excluding max. More...
 
template<class T_ >
bool BetweenInclusive (T_ v, T_ min, T_ max)
 Returns if the given number is within the given range including min and max. More...
 
uint32_t CeilToPowerOf2 (uint32_t v)
 Calculate the smalllest power of two larger than this value. More...
 
template<class T_ >
T_ Clamp (T_ v, T_ min, T_ max)
 Performs clamping on the given value and returns the result. More...
 
template<class T_ >
void FitInto (T_ &v, T_ min, T_ max)
 Performs clamping on the given value. More...
 
int NumberOfSetBits (uint32_t i)
 Returns the number of bits that are 1 in a number. More...
 
template<typename T_ >
T_ PositiveMod (T_ value, T_ mod)
 
template<typename T_ >
int Sign (T_ val)
 

Detailed Description

contains type definitions for Gorgon system

Macro Definition Documentation

◆ ENUMCLASS

#define ENUMCLASS