Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2. PHL stands for Portable Homebrew Library
  3. */
  4. #ifndef PHL_H
  5. #define PHL_H
  6.  
  7. #ifdef _3DS
  8.         #include "3ds/system.h"
  9.         #include "3ds/graphics.h"
  10.         #include "3ds/input.h"
  11.         #include "3ds/audio.h"
  12. #endif
  13.  
  14. #ifdef _WII
  15.         #include "wii/system.h"
  16.         #include "wii/graphics.h"
  17.         #include "wii/input.h"
  18.         #include "wii/audio.h"
  19. #endif
  20.  
  21. #ifdef _PSP
  22.         #include "psp/system.h"
  23.         #include "psp/graphics.h"
  24.         #include "psp/input.h"
  25.         #include "psp/audio.h"
  26. #endif
  27.  
  28. #ifdef _SDL
  29.         #ifdef _SDL2
  30.                 #include "sdl2/system.h"
  31.                 #include "sdl2/graphics.h"
  32.                 #include "sdl2/input.h"
  33.                 #include "sdl2/audio.h"
  34.         #else
  35.                 #include "sdl/system.h"
  36.                 #include "sdl/graphics.h"
  37.                 #include "sdl/input.h"
  38.                 #include "sdl/audio.h"
  39.         #endif
  40. #endif
  41.  
  42.  
  43. typedef struct {
  44.         int x, y, w, h;
  45. } PHL_Rect;
  46.  
  47. void PHL_Init();
  48. void PHL_Deinit();
  49.  
  50. extern int WHITE, RED, YELLOW;
  51.  
  52. PHL_Surface PHL_LoadQDA(char* fname);
  53. void PHL_DrawTextBold(char* txt, int dx, int dy, int col);
  54. void PHL_DrawTextBoldCentered(char* txt, int dx, int dy, int col);
  55.  
  56. #endif
  57.