gameLayer.h 769 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <glm/vec2.hpp>
  3. bool initGame();
  4. bool gameLogic(float deltaTime);
  5. void closeGame();
  6. namespace platform
  7. {
  8. ///sets the mouse pos relative to the window's drawing area
  9. void setRelMousePosition(int x, int y);
  10. bool isFullScreen();
  11. void setFullScreen(bool f);
  12. //gets the drawing region sizes
  13. glm::ivec2 getWindowSize();
  14. inline int getWindowSizeX() { return getWindowSize().x; }
  15. inline int getWindowSizeY() { return getWindowSize().y; }
  16. ///gets the mouse pos relative to the window's drawing area
  17. glm::ivec2 getRelMousePosition();
  18. void showMouse(bool show);
  19. bool isFocused();
  20. bool mouseMoved();
  21. bool writeEntireFile(const char *name, void *buffer, size_t size);
  22. bool readEntireFile(const char *name, void *buffer, size_t size);
  23. };