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.

91 lines
3.6 KiB

  1. /**********************************************************************************************
  2. *
  3. * raylib - Advance Game template
  4. *
  5. * Screens Functions Declarations (Init, Update, Draw, Unload)
  6. *
  7. * Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
  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, OPTIONS, GAMEPLAY, ENDING } GameScreen;
  31. //----------------------------------------------------------------------------------
  32. // Global Variables Definition
  33. //----------------------------------------------------------------------------------
  34. GameScreen currentScreen;
  35. #ifdef __cplusplus
  36. extern "C" { // Prevents name mangling of functions
  37. #endif
  38. //----------------------------------------------------------------------------------
  39. // Logo Screen Functions Declaration
  40. //----------------------------------------------------------------------------------
  41. void InitLogoScreen(void);
  42. void UpdateLogoScreen(void);
  43. void DrawLogoScreen(void);
  44. void UnloadLogoScreen(void);
  45. int FinishLogoScreen(void);
  46. //----------------------------------------------------------------------------------
  47. // Title Screen Functions Declaration
  48. //----------------------------------------------------------------------------------
  49. void InitTitleScreen(void);
  50. void UpdateTitleScreen(void);
  51. void DrawTitleScreen(void);
  52. void UnloadTitleScreen(void);
  53. int FinishTitleScreen(void);
  54. //----------------------------------------------------------------------------------
  55. // Options Screen Functions Declaration
  56. //----------------------------------------------------------------------------------
  57. void InitOptionsScreen(void);
  58. void UpdateOptionsScreen(void);
  59. void DrawOptionsScreen(void);
  60. void UnloadOptionsScreen(void);
  61. int FinishOptionsScreen(void);
  62. //----------------------------------------------------------------------------------
  63. // Gameplay Screen Functions Declaration
  64. //----------------------------------------------------------------------------------
  65. void InitGameplayScreen(void);
  66. void UpdateGameplayScreen(void);
  67. void DrawGameplayScreen(void);
  68. void UnloadGameplayScreen(void);
  69. int FinishGameplayScreen(void);
  70. //----------------------------------------------------------------------------------
  71. // Ending Screen Functions Declaration
  72. //----------------------------------------------------------------------------------
  73. void InitEndingScreen(void);
  74. void UpdateEndingScreen(void);
  75. void DrawEndingScreen(void);
  76. void UnloadEndingScreen(void);
  77. int FinishEndingScreen(void);
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif // SCREENS_H