video.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //
  2. // Copyright (c) 2009, Wei Mingzhi <whistler_wmz@users.sf.net>.
  3. // All rights reserved.
  4. //
  5. // This file is part of SDLPAL.
  6. //
  7. // SDLPAL is free software: you can redistribute it and/or modify
  8. // it under the terms of the GNU General Public License as published by
  9. // the Free Software Foundation, either version 3 of the License, or
  10. // (at your option) any later version.
  11. //
  12. // This program is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. //
  20. #ifndef VIDEO_H
  21. #define VIDEO_H
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. #include "common.h"
  27. extern SDL_Surface *gpScreen;
  28. extern SDL_Surface *gpScreenBak;
  29. INT
  30. #ifdef GEKKO // Rikku2000: Crash on compile, allready define on WIISDK
  31. VIDEO_Init_GEKKO(
  32. #else
  33. VIDEO_Init(
  34. #endif
  35. WORD wScreenWidth,
  36. WORD wScreenHeight,
  37. BOOL fFullScreen
  38. );
  39. VOID
  40. VIDEO_Shutdown(
  41. VOID
  42. );
  43. VOID
  44. VIDEO_UpdateScreen(
  45. const SDL_Rect *lpRect
  46. );
  47. VOID
  48. VIDEO_SetPalette(
  49. SDL_Color rgPalette[256]
  50. );
  51. VOID
  52. VIDEO_Resize(
  53. INT w,
  54. INT h
  55. );
  56. SDL_Color *
  57. VIDEO_GetPalette(
  58. VOID
  59. );
  60. VOID
  61. VIDEO_ToggleFullscreen(
  62. VOID
  63. );
  64. VOID
  65. VIDEO_SaveScreenshot(
  66. VOID
  67. );
  68. VOID
  69. VIDEO_BackupScreen(
  70. VOID
  71. );
  72. VOID
  73. VIDEO_RestoreScreen(
  74. VOID
  75. );
  76. VOID
  77. VIDEO_ShakeScreen(
  78. WORD wShakeTime,
  79. WORD wShakeLevel
  80. );
  81. VOID
  82. VIDEO_SwitchScreen(
  83. WORD wSpeed
  84. );
  85. VOID
  86. VIDEO_FadeScreen(
  87. WORD wSpeed
  88. );
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92. #endif