draw_floor.h 568 B

1234567891011121314151617181920212223
  1. #ifndef IGL_DRAW_FLOOR_H
  2. #define IGL_DRAW_FLOOR_H
  3. #ifndef IGL_NO_OPENGL
  4. #include "igl_inline.h"
  5. namespace igl
  6. {
  7. // Draw a checkerboard floor aligned with current (X,Z) plane using OpenGL
  8. // calls.
  9. //
  10. // Use glPushMatrix(), glScaled(), glTranslated() to arrange the floor.
  11. //
  12. // Inputs:
  13. // colorA float4 color
  14. // colorB float4 color
  15. IGL_INLINE void draw_floor(const float * colorA, const float * colorB);
  16. // Wrapper with default colors
  17. IGL_INLINE void draw_floor();
  18. }
  19. #ifdef IGL_HEADER_ONLY
  20. # include "draw_floor.cpp"
  21. #endif
  22. #endif
  23. #endif