You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scene.h 817B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * =====================================================================================
  3. *
  4. * Filename: scene.h
  5. *
  6. * Description:
  7. *
  8. * Version: 1.0
  9. * Created: 03/24/2014 04:10:43 PM
  10. * Revision: none
  11. * Compiler: gcc
  12. *
  13. * Author: YOUR NAME (),
  14. * Organization:
  15. *
  16. * =====================================================================================
  17. */
  18. #pragma once
  19. #include <SDL2/SDL.h>
  20. namespace vtk {
  21. class Game;
  22. class Scene {
  23. public:
  24. void link(Game* game);
  25. virtual void init() = 0; // Called first time the scene is set
  26. virtual void reInit() = 0; // Called when switching from another scene
  27. virtual void update(const float& dTime) = 0; //Logic
  28. virtual void draw() = 0; //Graphics
  29. protected:
  30. Game* linkedGame;
  31. };
  32. }