aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


client/runtime/linux_graphics.h (746B)


      1 #ifndef LINUX_GRAPHICS_H
      2 #define LINUX_GRAPHICS_H
      3 #include "recomp_types.h"
      4 
      5 recomp_func_t linux_graphics_lookup(const char *name);
      6 recomp_func_t linux_graphics_virtual(uint32_t address);
      7 /* Call on the render thread before the browser proxies process exit to main. */
      8 void linux_graphics_shutdown(void);
      9 struct SDL_Window;
     10 struct SDL_Window *linux_graphics_window(void);
     11 struct SDL_DisplayMode;
     12 int linux_graphics_display_mode(struct SDL_DisplayMode *mode);
     13 int linux_graphics_resize(unsigned width, unsigned height, uint32_t drawing_surface);
     14 int linux_graphics_project(const float position[3], float screen[3]);
     15 
     16 uint32_t linux_graphics_begin_texture_update(uint32_t address);
     17 void linux_graphics_end_texture_update(uint32_t address);
     18 
     19 #endif