123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- /*
- * Graphic Manager - The TI-NESulator Project
- * os/macos/graphics.c
- *
- * Created by Manoel TRAPIER on 08/05/08.
- * Copyright (c) 2003-2016 986-Studio. All rights reserved.
- *
- * $LastChangedDate$
- * $Author$
- * $HeadURL$
- * $Revision$
- *
- */
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <stdint.h>
- #include <os_dependent.h>
- #include <GLFW/glfw3.h>
- //#include <OpenGL/glext.h>
- #include <palette.h>
- typedef struct GLWindow_t GLWindow;
- struct KeyArray
- {
- unsigned char lastState;
- unsigned char curState;
- unsigned char debounced;
- GLFWwindow* window;
- };
- struct GLWindow_t
- {
- struct KeyArray keyArray[512];
- GLFWwindow* windows;
- unsigned char *videoMemory;
- GLint videoTexture;
- int WIDTH;
- int HEIGHT;
- };
- #ifndef GL_TEXTURE_RECTANGLE_EXT
- #define GL_TEXTURE_RECTANGLE_EXT GL_TEXTURE_RECTANGLE_NV
- #endif
- void GLWindowInitEx(GLWindow *g, int w, int h)
- {
- }
- void GLWindowInit(GLWindow *g)
- {
- }
- void ShowScreen(GLWindow *g, int w, int h)
- {
- }
- void setupGL(GLWindow *g, int w, int h)
- {
- }
- void restoreGL(GLWindow *g, int w, int h)
- {
- }
- void kbHandler(GLFWwindow* window, int key, int scan, int action, int mod )
- {
- }
- void sizeHandler(GLFWwindow* window,int xs,int ys)
- {
- }
- void initDisplay(GLWindow *g)
- {
- }
- void drawPixel(GLWindow *gw, int x, int y, uint32_t colour)
- {
- }
- void drawLine(GLWindow *g, int x0, int y0, int x1, int y1, uint32_t colour)
- {
- }
- void drawCircle(GLWindow *g, int xc, int yc, int radius, uint32_t colour)
- {
- }
- void drawRect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
- {
- }
- void drawFillrect(GLWindow *g, int x0, int y0, int w, int h, uint32_t colour)
- {
- }
- void clearScreen(GLWindow *g)
- {
- }
- void updateScreen(GLWindow *g)
- {
- }
- void updateScreenAndWait(GLWindow *g)
- {
- }
- int graphics_init()
- {
- return 0;
- }
- int graphics_drawpixel(long x, long y, long color)
- {
- return 0;
- }
- int graphics_drawline(long x, long y, long x1, long y1, long color)
- {
- return 0;
- }
- int graphics_blit(long x, long y, long w, long h)
- {
- return 0;
- }
- int getKeyStatus(int key)
- {
- return 0;
- }
|