Added EXT_vec1: *vec1 types
This commit is contained in:
@@ -364,6 +364,13 @@ namespace detail
|
||||
|
||||
// -- Operations --
|
||||
|
||||
template<typename T, qualifier Q>
|
||||
GLM_FUNC_QUALIFIER T dot(tquat<T, Q> const& x, tquat<T, Q> const& y)
|
||||
{
|
||||
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'dot' accepts only floating-point inputs");
|
||||
return detail::compute_dot<tquat<T, Q>, T, detail::is_aligned<Q>::value>::call(x, y);
|
||||
}
|
||||
|
||||
template<typename T, qualifier Q>
|
||||
GLM_FUNC_QUALIFIER T length(tquat<T, Q> const& q)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "../geometric.hpp"
|
||||
#include "../exponential.hpp"
|
||||
#include "../trigonometric.hpp"
|
||||
#include "../ext/vec1.hpp"
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <cassert>
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#pragma once
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
#include "../detail/type_vec1.hpp"
|
||||
#include "../ext/vec1.hpp"
|
||||
|
||||
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
|
||||
# pragma message("GLM: GLM_GTC_vec1 extension included")
|
||||
@@ -22,81 +21,6 @@
|
||||
|
||||
namespace glm
|
||||
{
|
||||
/// 1 component vector of high qualifier floating-point numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef highp_vec1_t highp_vec1;
|
||||
|
||||
/// 1 component vector of medium qualifier floating-point numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef mediump_vec1_t mediump_vec1;
|
||||
|
||||
/// 1 component vector of low qualifier floating-point numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef lowp_vec1_t lowp_vec1;
|
||||
|
||||
/// 1 component vector of high qualifier floating-point numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef highp_dvec1_t highp_dvec1;
|
||||
|
||||
/// 1 component vector of medium qualifier floating-point numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef mediump_dvec1_t mediump_dvec1;
|
||||
|
||||
/// 1 component vector of low qualifier floating-point numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef lowp_dvec1_t lowp_dvec1;
|
||||
|
||||
/// 1 component vector of high qualifier signed integer numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef highp_ivec1_t highp_ivec1;
|
||||
|
||||
/// 1 component vector of medium qualifier signed integer numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef mediump_ivec1_t mediump_ivec1;
|
||||
|
||||
/// 1 component vector of low qualifier signed integer numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef lowp_ivec1_t lowp_ivec1;
|
||||
|
||||
/// 1 component vector of high qualifier unsigned integer numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef highp_uvec1_t highp_uvec1;
|
||||
|
||||
/// 1 component vector of medium qualifier unsigned integer numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef mediump_uvec1_t mediump_uvec1;
|
||||
|
||||
/// 1 component vector of low qualifier unsigned integer numbers.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef lowp_uvec1_t lowp_uvec1;
|
||||
|
||||
/// 1 component vector of high qualifier boolean.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef highp_bvec1_t highp_bvec1;
|
||||
|
||||
/// 1 component vector of medium qualifier boolean.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef mediump_bvec1_t mediump_bvec1;
|
||||
|
||||
/// 1 component vector of low qualifier boolean.
|
||||
/// There is no guarantee on the actual qualifier.
|
||||
/// @see gtc_vec1 extension.
|
||||
typedef lowp_bvec1_t lowp_bvec1;
|
||||
|
||||
//////////////////////////
|
||||
// vec1 definition
|
||||
|
||||
|
||||
Reference in New Issue
Block a user