Matrix.toString

struct Matrix(E, uint rows_, uint cols_, Layout layout = Layout.rowMajor)
@property const
void
toString
(
scope void delegate
(
scope const(char)[]
)
@safe
sink
)
if (
rows_ >= 1 &&
cols_ >= 1
)

Return Value

Type: void

The pointer to the stored values as OpenGL requires it. Note this will return a pointer to a row-major _matrix, this means you've to set the transpose argument to GL_TRUE when passing it to OpenGL. Examples: --- // 3rd argument = GL_TRUE glUniformMatrix4fv(programs.main.model, 1, GL_TRUE, mat4.translation(-0.5f, -0.5f, 1.0f).value_ptr); --- Returns: The current _matrix formatted as flat string.

Meta