You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
30 lines
776 B
30 lines
776 B
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
// 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; |
|
}
|
|
|