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.

73 lines
2.9 KiB

  1. /**********************************************************************************************
  2. *
  3. * raylib - Simple Game template
  4. *
  5. * Screens Functions Declarations (Init, Update, Draw, Unload)
  6. *
  7. * Copyright (c) 2014 Ramon Santamaria (@raysan5)
  8. *
  9. * This software is provided "as-is", without any express or implied warranty. In no event
  10. * will the authors be held liable for any damages arising from the use of this software.
  11. *
  12. * Permission is granted to anyone to use this software for any purpose, including commercial
  13. * applications, and to alter it and redistribute it freely, subject to the following restrictions:
  14. *
  15. * 1. The origin of this software must not be misrepresented; you must not claim that you
  16. * wrote the original software. If you use this software in a product, an acknowledgment
  17. * in the product documentation would be appreciated but is not required.
  18. *
  19. * 2. Altered source versions must be plainly marked as such, and must not be misrepresented
  20. * as being the original software.
  21. *
  22. * 3. This notice may not be removed or altered from any source distribution.
  23. *
  24. **********************************************************************************************/
  25. #ifndef SCREENS_H
  26. #define SCREENS_H
  27. //----------------------------------------------------------------------------------
  28. // Types and Structures Definition
  29. //----------------------------------------------------------------------------------
  30. typedef enum GameScreen { LOGO, TITLE, GAMEPLAY, ENDING } GameScreen;
  31. #ifdef __cplusplus
  32. extern "C" { // Prevents name mangling of functions
  33. #endif
  34. //----------------------------------------------------------------------------------
  35. // Logo Screen Functions Declaration
  36. //----------------------------------------------------------------------------------
  37. void InitLogoScreen(void);
  38. void UpdateLogoScreen(void);
  39. void DrawLogoScreen(void);
  40. void UnloadLogoScreen(void);
  41. //----------------------------------------------------------------------------------
  42. // Title Screen Functions Declaration
  43. //----------------------------------------------------------------------------------
  44. void InitTitleScreen(void);
  45. void UpdateTitleScreen(void);
  46. void DrawTitleScreen(void);
  47. void UnloadTitleScreen(void);
  48. //----------------------------------------------------------------------------------
  49. // Gameplay Screen Functions Declaration
  50. //----------------------------------------------------------------------------------
  51. void InitGameplayScreen(void);
  52. void UpdateGameplayScreen(void);
  53. void DrawGameplayScreen(void);
  54. void UnloadGameplayScreen(void);
  55. //----------------------------------------------------------------------------------
  56. // Ending Screen Functions Declaration
  57. //----------------------------------------------------------------------------------
  58. void InitEndingScreen(void);
  59. void UpdateEndingScreen(void);
  60. void DrawEndingScreen(void);
  61. void UnloadEndingScreen(void);
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif // SCREENS_H