El Octavio  1.0
This is a video game about adventures.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Matrix< Columns, Rows > Struct Template Reference

Matrix type, used to set uniforms in GLSL. More...

Public Member Functions

 Matrix (const float *pointer)
 Construct from raw data. More...
 
 Matrix (const Transform &transform)
 Construct implicitly from SFML transform. More...
 

Public Attributes

float array [Columns *Rows]
 Array holding matrix data. More...
 

Detailed Description

template<std::size_t Columns, std::size_t Rows>
struct Matrix< Columns, Rows >

Matrix type, used to set uniforms in GLSL.

Definition at line 55 of file Glsl.inl.

Constructor & Destructor Documentation

◆ Matrix() [1/2]

template<std::size_t Columns, std::size_t Rows>
Matrix< Columns, Rows >::Matrix ( const float *  pointer)
inlineexplicit

Construct from raw data.

Parameters
pointerPoints to the beginning of an array that has the size of the matrix. The elements are copied to the instance.

Definition at line 65 of file Glsl.inl.

+ Here is the call graph for this function:

◆ Matrix() [2/2]

template<std::size_t Columns, std::size_t Rows>
Matrix< Columns, Rows >::Matrix ( const Transform &  transform)
inline

Construct implicitly from SFML transform.

This constructor is only supported for 3x3 and 4x4 matrices.

Parameters
transformObject containing a transform.

Definition at line 79 of file Glsl.inl.

+ Here is the call graph for this function:

Member Data Documentation

◆ array

template<std::size_t Columns, std::size_t Rows>
float Matrix< Columns, Rows >::array[Columns *Rows]

Array holding matrix data.

Definition at line 84 of file Glsl.inl.


The documentation for this struct was generated from the following file: