diff options
| author | raven <citrons@mondecitronne.com> | 2026-04-08 22:51:39 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-04-08 22:51:39 -0500 |
| commit | 18a86e1038b20cb6f8922beead08dcc24ba2a4d3 (patch) | |
| tree | 85cb74210d67d42763a4709d18af93aa60a8f400 /memview.h | |
| parent | 4a3429a96b5b5ea7468540349aeb4535d5738053 (diff) | |
rewrite and port to SDL3
Diffstat (limited to 'memview.h')
| -rw-r--r-- | memview.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/memview.h b/memview.h deleted file mode 100644 index 47aab27..0000000 --- a/memview.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef CORE_MEMVIEW_H -#define CORE_MEMVIEW_H - -#include <stdlib.h> -#include <stdint.h> -#include <stdbool.h> -#include <SDL.h> - -#include "procfs.h" - -#ifndef PAGE_WIDTH -#define PAGE_WIDTH (256) -#endif - -#define PAGE_HEIGHT ((PAGE_SIZE * CHAR_BIT) / PAGE_WIDTH) - -uintptr_t to_addr(int x, int y); -void to_pos(uintptr_t addr, int *x, int *y); - -struct viewer; -struct viewer *create_viewer(int fd, SDL_Renderer *renderer); -void destroy_viewer(struct viewer *v); - -bool render_pages(struct viewer *v, - int x, int y, int width, int height, double scale, bool refresh); -void pencil(struct viewer *v, - double x1, double y1, double x2, double y2, bool bit); - -#endif |
