ONE.h 404 B

123456789101112131415
  1. #ifndef IGL_ONE_H
  2. #define IGL_ONE_H
  3. // Often one needs a reference to a dummy variable containing zero as its
  4. // value, for example when using AntTweakBar's
  5. // TwSetParam( "3D View", "opened", TW_PARAM_INT32, 1, &INT_ONE);
  6. namespace igl
  7. {
  8. const char CHAR_ONE = 1;
  9. const int INT_ONE = 1;
  10. const unsigned int UNSIGNED_INT_ONE = 1;
  11. const double DOUBLE_ONE = 1;
  12. const float FLOAT_ONE = 1;
  13. }
  14. #endif