31 lines
776 B
C++
31 lines
776 B
C++
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Created : 2011-05-31
|
|
// Updated : 2011-05-31
|
|
// Licence : This source is under MIT License
|
|
// File : test/core/setup_message.cpp
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#define GLM_MESSAGES
|
|
#include <glm/glm.hpp>
|
|
|
|
static int test_operators()
|
|
{
|
|
glm::vec3 A(1.0f);
|
|
glm::vec3 B(1.0f);
|
|
bool R = A != B;
|
|
bool S = A == B;
|
|
|
|
return (S && !R) ? 0 : 1;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int Error = 0;
|
|
|
|
Error += test_operators();
|
|
|
|
return Error;
|
|
}
|