YAGE  0.02
Yet Another Game Engine
yage Namespace Reference

Templated matrix class. More...

Namespaces

 detail
 
 matrix
 Namespace containing functions that operate on matrices.
 

Classes

class  Body
 
class  Camera2D
 
class  Collider
 
class  CollisionBody
 
struct  Color
 
class  GlslProgram
 
class  Glyph
 Glyph with information of the texture. More...
 
class  ImageLoader
 
class  InputManager
 
class  IoManager
 
class  Matrix
 Base Matrix class used by other similar classes. More...
 
class  ParticleBody
 
struct  Position
 
class  RectangleCollider
 
class  RenderBatch
 
class  ResourceManager
 
class  RigidBody
 
class  Sprite
 
class  SpriteBatch
 
struct  Texture
 
class  TextureCache
 
struct  UV
 
class  Vector
 
class  Vector2
 2D Vector class. More...
 
struct  Vertex
 
class  Window
 

Typedefs

using Vector2d = Vector2< double >
 Definition of a 2D vector. More...
 

Enumerations

enum  WindowFlags : unsigned { SHOWN = 0x1, HIDDEN = 0x2, FULLSCREEN = 0x4, BORDERLESS = 0x8 }
 

Functions

template<int M, int N, class T >
Matrix< M, N, T > operator+ (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator- (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator+ (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator+ (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator- (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator- (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator* (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator* (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator/ (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
bool operator== (const Matrix< M, N, T > &lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
std::ostream & operator<< (std::ostream &os, const Matrix< M, N, T > &mat)
 
int decodePNG (std::vector< unsigned char > &out_image, unsigned long &image_width, unsigned long &image_height, const unsigned char *in_png, size_t in_size, bool convert_to_rgba32=true)
 
bool init ()
 
void quit ()
 

Detailed Description

Matrix

This is a very general matrix class that can then be inherited by vectors and other similar data structures to minimize code density.

Typedef Documentation

◆ Vector2d

using yage::Vector2d = typedef Vector2<double>

Enumeration Type Documentation

◆ WindowFlags

enum yage::WindowFlags : unsigned
Enumerator
SHOWN 
HIDDEN 
FULLSCREEN 
BORDERLESS 

Function Documentation

◆ decodePNG()

int yage::decodePNG ( std::vector< unsigned char > &  out_image,
unsigned long &  image_width,
unsigned long &  image_height,
const unsigned char *  in_png,
size_t  in_size,
bool  convert_to_rgba32 = true 
)

◆ init()

bool yage::init ( )

◆ operator*() [1/2]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator* ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator*() [2/2]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator* ( const T &  lhs,
Matrix< M, N, T >  rhs 
)

◆ operator+() [1/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator+ ( Matrix< M, N, T >  lhs,
const Matrix< M, N, T > &  rhs 
)

◆ operator+() [2/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator+ ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator+() [3/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator+ ( const T &  lhs,
Matrix< M, N, T >  rhs 
)

◆ operator-() [1/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator- ( Matrix< M, N, T >  lhs,
const Matrix< M, N, T > &  rhs 
)

◆ operator-() [2/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator- ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator-() [3/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::operator- ( const T &  lhs,
Matrix< M, N, T >  rhs 
)

◆ operator/()

template<int M, int N, class T >
Matrix<M, N, T> yage::operator/ ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator<<()

template<int M, int N, class T >
std::ostream& yage::operator<< ( std::ostream &  os,
const Matrix< M, N, T > &  mat 
)

◆ operator==()

template<int M, int N, class T >
bool yage::operator== ( const Matrix< M, N, T > &  lhs,
const Matrix< M, N, T > &  rhs 
)

◆ quit()

void yage::quit ( )