diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-10-01 16:53:49 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-10-01 16:53:49 +0200 |
| commit | aadff4d1cf17cc23f6f38ab0da51baabfeb9f9d1 (patch) | |
| tree | f2755f80c5067ae97b667b4c5607d4502805d078 /graphics.c | |
| parent | 4ea5261f32ec8acd4cdad7c364f57e6ebc86866a (diff) | |
checkpoint
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/graphics.c b/graphics.c deleted file mode 100644 index 66a00bc..0000000 --- a/graphics.c +++ /dev/null @@ -1,32 +0,0 @@ -typedef unsigned int u32; -typedef unsigned char u8; - -#define WIDTH 600 -#define HEIGHT 600 -u32 BUFFER[WIDTH * HEIGHT]; - -extern u8 __heap_base; -u32 BumpPointer = (u32)&__heap_base; - -void* Malloc(u32 Size) -{ - u32 Result = BumpPointer; - Result += Size; - return (void *)Result; -} - -void Free(u32 Size) -{ - BumpPointer -= Size; -} - -void go(u32 *Pixels, int Width, int Height) { - for(int Y = 0; Y < Height; Y++) - { - for(int X = 0; X < Width; X++) - { - u32 Color = 0xFFFF0000; - Pixels[Y*Width + X] = Color; - } - } -} |
