- Reestructuració masiva del codi

- afegit el WAD del Doom 1
- Ja llegim FLATS i TEXTURES del WAD, falten els PATCH
This commit is contained in:
2026-02-26 17:15:52 +01:00
parent 7102535deb
commit 8dbcd4fcb7
13 changed files with 525 additions and 216 deletions

21
wad.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <stdint.h>
#include "draw.h"
namespace wad {
struct filelump_t {
uint32_t filepos;
uint32_t size;
char name[8];
};
void init(const char *filename);
uint8_t *load(const char *name);
uint32_t *loadPalette(int index);
draw::surface_t *loadFlat(const char *name);
draw::surface_t *loadTexture(const char *name);
draw::surface_t *loadPatch(const char *name);
}