graphics_dummy.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. * $LastChangedDate$
  9. * $Author$
  10. * $HeadURL$
  11. * $Revision$
  12. *
  13. */
  14. #include <stdlib.h>
  15. #include <stdio.h>
  16. #include <string.h>
  17. #include <stdint.h>
  18. #include <os_dependent.h>
  19. #include <GLFW/glfw3.h>
  20. //#include <OpenGL/glext.h>
  21. #include <palette.h>
  22. typedef struct GLWindow_t GLWindow;
  23. struct KeyArray
  24. {
  25. unsigned char lastState;
  26. unsigned char curState;
  27. unsigned char debounced;
  28. GLFWwindow* window;
  29. };
  30. struct GLWindow_t
  31. {
  32. struct KeyArray keyArray[512];
  33. GLFWwindow* windows;
  34. unsigned char *videoMemory;
  35. GLint videoTexture;
  36. int WIDTH;
  37. int HEIGHT;
  38. };
  39. #ifndef GL_TEXTURE_RECTANGLE_EXT
  40. #define GL_TEXTURE_RECTANGLE_EXT GL_TEXTURE_RECTANGLE_NV
  41. #endif
  42. void GLWindowInitEx(GLWindow *g, int w, int h)
  43. {
  44. }
  45. void GLWindowInit(GLWindow *g)
  46. {
  47. }
  48. void ShowScreen(GLWindow *g, int w, int h)
  49. {
  50. }
  51. void setupGL(GLWindow *g, int w, int h)
  52. {
  53. }
  54. void restoreGL(GLWindow *g, int w, int h)
  55. {
  56. }
  57. void kbHandler(GLFWwindow* window, int key, int scan, int action, int mod )
  58. {
  59. }
  60. void sizeHandler(GLFWwindow* window,int xs,int ys)
  61. {
  62. }
  63. void initDisplay(GLWindow *g)
  64. {
  65. }
  66. void drawPixel(GLWindow *gw, int x, int y, uint32_t colour)
  67. {
  68. }
  69. void drawLine(GLWindow *g, int x0, int y0, int x1, int y1, uint32_t colour)
  70. {
  71. }
  72. void drawCircle(GLWindow *g, int xc, int yc, int radius, uint32_t colour)
  73. {
  74. }
  75. void drawRect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
  76. {
  77. }
  78. void drawFillrect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
  79. {
  80. }
  81. void clearScreen(GLWindow *g)
  82. {
  83. }
  84. void updateScreen(GLWindow *g)
  85. {
  86. }
  87. void updateScreenAndWait(GLWindow *g)
  88. {
  89. }
  90. int graphics_init()
  91. {
  92. return 0;
  93. }
  94. int graphics_drawpixel(long x, long y, long color)
  95. {
  96. return 0;
  97. }
  98. int graphics_drawline(long x, long y, long x1, long y1, long color)
  99. {
  100. return 0;
  101. }
  102. int graphics_blit(long x, long y, long w, long h)
  103. {
  104. return 0;
  105. }
  106. int getKeyStatus(int key)
  107. {
  108. return 0;
  109. }