os_dependent.h 957 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * OS Dependent functions - The TI-NESulator Project
  3. * os_dependent.h
  4. *
  5. * Created by Manoel TRAPIER on 08/05/08.
  6. * Copyright (c) 2003-2008 986Corp. All rights reserved.
  7. *
  8. * $LastChangedDate$
  9. * $Author$
  10. * $HeadURL$
  11. * $Revision$
  12. *
  13. */
  14. #ifndef OS_DEPENDENT_H
  15. #define OS_DEPENDENT_H
  16. /* File related functions */
  17. /* Graphics related functions */
  18. int graphics_init();
  19. int graphics_drawpixel(long x, long y, long color);
  20. int graphics_blit(long x, long y, long w, long h);
  21. /* Sound related functions */
  22. /* IO functions */
  23. void *LoadFilePtr(char * filename);
  24. /* Console functions */
  25. typedef enum ConsoleLevel_t
  26. {
  27. Console_Error = 0,
  28. Console_Warning,
  29. Console_Alert,
  30. Console_Default,
  31. Console_Verbose,
  32. Console_Debug,
  33. } ConsoleLevel;
  34. int console_init(ConsoleLevel DefaultLevel);
  35. int console_printf(const ConsoleLevel level, const char *format, ...);
  36. int console_printf_d(const char *format, ...);
  37. #endif /* OS_DEPENDENT_H */