core_setup_message.cpp 776 B

123456789101112131415161718192021222324252627282930
  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
  3. ///////////////////////////////////////////////////////////////////////////////////////////////////
  4. // Created : 2011-05-31
  5. // Updated : 2011-05-31
  6. // Licence : This source is under MIT License
  7. // File : test/core/setup_message.cpp
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////
  9. #define GLM_MESSAGES
  10. #include <glm/glm.hpp>
  11. static int test_operators()
  12. {
  13. glm::vec3 A(1.0f);
  14. glm::vec3 B(1.0f);
  15. bool R = A != B;
  16. bool S = A == B;
  17. return (S && !R) ? 0 : 1;
  18. }
  19. int main()
  20. {
  21. int Error = 0;
  22. Error += test_operators();
  23. return Error;
  24. }