graphics_dummy.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. };
  29. struct GLWindow_t
  30. {
  31. struct KeyArray keyArray[512];
  32. GLFWwindow* windows;
  33. unsigned char *videoMemory;
  34. GLint videoTexture;
  35. int WIDTH;
  36. int HEIGHT;
  37. };
  38. #ifndef GL_TEXTURE_RECTANGLE_EXT
  39. #define GL_TEXTURE_RECTANGLE_EXT GL_TEXTURE_RECTANGLE_NV
  40. #endif
  41. void GLWindowInitEx(GLWindow *g, int w, int h)
  42. {
  43. }
  44. void GLWindowInit(GLWindow *g)
  45. {
  46. }
  47. void ShowScreen(GLWindow *g, int w, int h)
  48. {
  49. }
  50. void setupGL(GLWindow *g, int w, int h)
  51. {
  52. }
  53. void restoreGL(GLWindow *g, int w, int h)
  54. {
  55. }
  56. void kbHandler(GLFWwindow* window, int key, int scan, int action, int mod )
  57. {
  58. }
  59. void sizeHandler(GLFWwindow* window,int xs,int ys)
  60. {
  61. }
  62. void initDisplay(GLWindow *g)
  63. {
  64. }
  65. void drawPixel(GLWindow *gw, int x, int y, uint32_t colour)
  66. {
  67. }
  68. void drawLine(GLWindow *g, int x0, int y0, int x1, int y1, uint32_t colour)
  69. {
  70. }
  71. void drawCircle(GLWindow *g, int xc, int yc, int radius, uint32_t colour)
  72. {
  73. }
  74. void drawRect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
  75. {
  76. }
  77. void drawFillrect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
  78. {
  79. }
  80. void clearScreen(GLWindow *g)
  81. {
  82. }
  83. void updateScreen(GLWindow *g)
  84. {
  85. }
  86. void updateScreenAndWait(GLWindow *g)
  87. {
  88. }
  89. int graphics_init()
  90. {
  91. return 0;
  92. }
  93. int graphics_drawpixel(long x, long y, long color)
  94. {
  95. return 0;
  96. }
  97. int graphics_drawline(long x, long y, long x1, long y1, long color)
  98. {
  99. return 0;
  100. }
  101. int graphics_blit(long x, long y, long w, long h)
  102. {
  103. return 0;
  104. }
  105. int getKeyStatus(int key)
  106. {
  107. return 0;
  108. }