NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

37 líneas
824B

  1. #ifndef NESE_SDL_OVERLAY_
  2. #define NESE_SDL_OVERLAY_
  3. #include <stdint.h>
  4. #include <SDL.h>
  5. #include "overlay.h"
  6. typedef struct {
  7. const char* chars;
  8. const uint8_t* charbits;
  9. int char_count;
  10. SDL_Texture** textures;
  11. } sdl_overlay_font;
  12. int sdl_overlay_font_init(SDL_Renderer*, sdl_overlay_font*);
  13. void sdl_overlay_font_done(sdl_overlay_font*);
  14. int sdl_overlay_frame(Overlay*, sdl_overlay_font*, SDL_Renderer*,
  15. int vx, int vy, int sx, int sy);
  16. void measure_string(sdl_overlay_font* font, const char* string,
  17. int* w, int* h);
  18. void render_string(SDL_Renderer* rend, int ox, int oy,
  19. int vx, int vy, int sx, int sy,
  20. sdl_overlay_font* font, const char* string,
  21. uint32_t color);
  22. #endif // NESE_SDL_OVERLAY_