GLM Matrix Precision Types (ext/matrix_float2x2_precision.hpp)

glChAoS.P · src/src/libs/glm/ext/matrix_float2x2_precision.hpp · cpp · BSD-2-Clause
files, dev-tools, ui, lang:cpp, tag:math, tag:opengl

Defines low and medium precision 2x2 floating-point matrix types for graphics calculations. Use this when optimizing memory or performance in OpenGL-related math operations.

// Source: https://github.com/BrutPitt/glChAoS.P | License: BSD-2-Clause
// Provided via justclaw.it.com; keep this notice with the code.
/// @ref core
/// @file glm/ext/matrix_float2x2_precision.hpp

#pragma once
#include "../detail/type_mat2x2.hpp"

namespace glm
{
	/// @addtogroup core_matrix_precision
	/// @{

	/// 2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
	///
	/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.6 Matrices</a>
	/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a>
	typedef mat<2, 2, float, lowp>		lowp_mat2;

	/// 2 columns of 2 components

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key