mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 15:23:53 +00:00
gne
This commit is contained in:
parent
3e359b820a
commit
e91f414269
2 changed files with 11 additions and 11 deletions
|
@ -113,12 +113,12 @@ namespace detail
|
|||
_apply_op(that, op_div());
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER T& operator[](size_t i)
|
||||
GLM_FUNC_QUALIFIER T& operator[](int i)
|
||||
{
|
||||
const int offset_dst[4] = { E0, E1, E2, E3 };
|
||||
return this->elem(offset_dst[i]);
|
||||
}
|
||||
GLM_FUNC_QUALIFIER T operator[](size_t i) const
|
||||
GLM_FUNC_QUALIFIER T operator[](int i) const
|
||||
{
|
||||
const int offset_dst[4] = { E0, E1, E2, E3 };
|
||||
return this->elem(offset_dst[i]);
|
||||
|
@ -147,7 +147,7 @@ namespace detail
|
|||
|
||||
GLM_FUNC_QUALIFIER _swizzle_base2& operator= (Stub const&) { return *this; }
|
||||
|
||||
GLM_FUNC_QUALIFIER T operator[] (size_t i) const
|
||||
GLM_FUNC_QUALIFIER T operator[] (int i) const
|
||||
{
|
||||
const int offset_dst[4] = { E0, E1, E2, E3 };
|
||||
return this->elem(offset_dst[i]);
|
||||
|
|
|
@ -123,19 +123,19 @@ static int test_bvec1_ctor()
|
|||
{
|
||||
int Error = 0;
|
||||
|
||||
glm::bvec1 const A(true);
|
||||
glm::bvec1 const B(true);
|
||||
glm::bvec1 const C(false);
|
||||
glm::bvec1 const D = A && B;
|
||||
glm::bvec1 const E = A && C;
|
||||
glm::bvec1 const F = A || C;
|
||||
glm::bvec1 A(true);
|
||||
glm::bvec1 B(true);
|
||||
glm::bvec1 C(false);
|
||||
glm::bvec1 D = A && B;
|
||||
glm::bvec1 E = A && C;
|
||||
glm::bvec1 F = A || C;
|
||||
|
||||
Error += D == glm::bvec1(true) ? 0 : 1;
|
||||
Error += E == glm::bvec1(false) ? 0 : 1;
|
||||
Error += F == glm::bvec1(true) ? 0 : 1;
|
||||
|
||||
bool const G = A == C;
|
||||
bool const H = A != C;
|
||||
bool G = A == C;
|
||||
bool H = A != C;
|
||||
Error += !G ? 0 : 1;
|
||||
Error += H ? 0 : 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue