54template <std::
size_t Columns, std::
size_t Rows>
65 explicit Matrix(
const float* pointer)
129 template <
typename U>
131 x(static_cast<T>(other.
x)),
132 y(static_cast<T>(other.
y)),
133 z(static_cast<T>(other.
z)),
134 w(static_cast<T>(other.
w))
void SFML_GRAPHICS_API copyMatrix(const Transform &source, Matrix< 3, 3 > &dest)
Helper functions to copy sf::Transform to sf::Glsl::Mat3/4.
void SFML_GRAPHICS_API copyVector(const Color &source, Vector4< float > &dest)
Helper functions to copy sf::Color to sf::Glsl::Vec4/Ivec4.
#define SFML_GRAPHICS_API
Matrix type, used to set uniforms in GLSL.
float array[Columns *Rows]
Array holding matrix data.
Matrix(const Transform &transform)
Construct implicitly from SFML transform.
Matrix(const float *pointer)
Construct from raw data.
4D vector type, used to set uniforms in GLSL
T x
1st component (X) of the 4D vector
T z
3rd component (Z) of the 4D vector
Vector4(const Vector4< U > &other)
Conversion constructor.
T w
4th component (W) of the 4D vector
T y
2nd component (Y) of the 4D vector
Vector4(T X, T Y, T Z, T W)
Construct from 4 vector components.
Vector4(const Color &color)
Construct float vector implicitly from color.
Vector4()
Default constructor, creates a zero vector.