Grid.h 727 B

12345678910111213141516171819202122232425262728
  1. #ifndef GRID_H_
  2. #define GRID_H_
  3. #include "gameplay.h"
  4. using namespace gameplay;
  5. static const unsigned int DEFAULT_LINE_COUNT = 81;
  6. /**
  7. * Creates a new grid mesh.
  8. *
  9. * @param lineCount The number of lines in the grid. (Rows or columns). Should be odd.
  10. *
  11. * @return A new grid mesh or NULL if there was an error.
  12. */
  13. Mesh* createGridMesh(unsigned int lineCount = DEFAULT_LINE_COUNT);
  14. /**
  15. * Creates a model that contains a new grid mesh.
  16. *
  17. * @param lineCount The number of lines in the grid. (Rows or columns). Should be odd.
  18. *
  19. * @return A new model containing a grid mesh or NULL if there was an error.
  20. */
  21. Model* createGridModel(unsigned int lineCount = DEFAULT_LINE_COUNT);
  22. #endif