graphics_dummy.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * Graphic Manager - The peTI-NESulator Project
  3. * os/macos/graphics.c
  4. *
  5. * Created by Manoel TRAPIER on 08/05/08.
  6. * Copyright (c) 2003-2018 986-Studio. All rights reserved.
  7. *
  8. */
  9. #include <stdlib.h>
  10. #include <stdio.h>
  11. #include <string.h>
  12. #include <stdint.h>
  13. #include <os_dependent.h>
  14. #include <GLFW/glfw3.h>
  15. //#include <OpenGL/glext.h>
  16. #include <palette.h>
  17. typedef struct GLWindow_t GLWindow;
  18. struct KeyArray
  19. {
  20. uint8_t lastState;
  21. uint8_t curState;
  22. uint8_t debounced;
  23. };
  24. struct GLWindow_t
  25. {
  26. struct KeyArray keyArray[512];
  27. GLFWwindow* windows;
  28. uint8_t *videoMemory;
  29. GLint videoTexture;
  30. int WIDTH;
  31. int HEIGHT;
  32. };
  33. #ifndef GL_TEXTURE_RECTANGLE_EXT
  34. #define GL_TEXTURE_RECTANGLE_EXT GL_TEXTURE_RECTANGLE_NV
  35. #endif
  36. void GLWindowInitEx(GLWindow *g, int w, int h)
  37. {
  38. }
  39. void GLWindowInit(GLWindow *g)
  40. {
  41. }
  42. void ShowScreen(GLWindow *g, int w, int h)
  43. {
  44. }
  45. void setupGL(GLWindow *g, int w, int h)
  46. {
  47. }
  48. void restoreGL(GLWindow *g, int w, int h)
  49. {
  50. }
  51. void kbHandler(GLFWwindow* window, int key, int scan, int action, int mod )
  52. {
  53. }
  54. void sizeHandler(GLFWwindow* window,int xs,int ys)
  55. {
  56. }
  57. void initDisplay(GLWindow *g)
  58. {
  59. }
  60. void drawPixel(GLWindow *gw, int x, int y, uint32_t colour)
  61. {
  62. }
  63. void drawLine(GLWindow *g, int x0, int y0, int x1, int y1, uint32_t colour)
  64. {
  65. }
  66. void drawCircle(GLWindow *g, int xc, int yc, int radius, uint32_t colour)
  67. {
  68. }
  69. void drawRect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
  70. {
  71. }
  72. void drawFillrect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
  73. {
  74. }
  75. void clearScreen(GLWindow *g)
  76. {
  77. }
  78. void updateScreen(GLWindow *g)
  79. {
  80. }
  81. void updateScreenAndWait(GLWindow *g)
  82. {
  83. }
  84. int graphics_init()
  85. {
  86. return 0;
  87. }
  88. int graphics_drawpixel(long x, long y, long color)
  89. {
  90. return 0;
  91. }
  92. int graphics_drawline(long x, long y, long x1, long y1, long color)
  93. {
  94. return 0;
  95. }
  96. int graphics_blit(long x, long y, long w, long h)
  97. {
  98. return 0;
  99. }
  100. int getKeyStatus(int key)
  101. {
  102. return 0;
  103. }