Torch
Loading...
Searching...
No Matches
DisplayListOverrides.h
1#pragma once
2
3#include "DisplayListFactory.h"
4#include <yaml-cpp/yaml.h>
5#include <cstdint>
6#include <tuple>
7#include <string>
8
9typedef struct {
10 uint32_t w0;
11 uint32_t w1;
12} N64Words;
13
14typedef union {
15 N64Words words;
16 long long int force_structure_alignment;
17} N64Gfx;
18
19typedef struct {
20 int16_t ob[3];
21 uint16_t flag;
22 int16_t tc[2];
23 unsigned char cn[4];
24} N64Vtx_t;
25
26typedef struct {
27 int16_t ob[3];
28 uint16_t flag;
29 int16_t tc[2];
30 signed char n[3];
31 unsigned char a;
32} N64Vtx_tn;
33
34typedef union {
35 N64Vtx_t v;
36 N64Vtx_tn n;
37} N64Vtx;
38
39namespace GFXDOverride {
40#ifdef STANDALONE
41void Quadrangle(const N64Gfx* gfx);
42void Triangle2(const N64Gfx* gfx);
43int Vtx(uint32_t vtx, int32_t num);
44int Texture(uint32_t timg, int32_t fmt, int32_t siz, int32_t width, int32_t height, int32_t pal);
45int Palette(uint32_t tlut, int32_t idx, int32_t count);
46int Lights(uint32_t lightsn, int32_t count);
47int Light(uint32_t light);
48int DisplayList(uint32_t dl);
49int Viewport(uint32_t vp);
50int Matrix(uint32_t mtx);
51#endif
52void RegisterVTXOverlap(uint32_t ptr, std::tuple<std::string, YAML::Node>& vtx);
53std::optional<std::tuple<std::string, YAML::Node>> GetVtxOverlap(uint32_t ptr);
54void ClearVtx();
55};
Definition DisplayListOverrides.h:19
Definition DisplayListOverrides.h:26
Definition DisplayListOverrides.h:9
Definition DisplayListOverrides.h:14
Definition DisplayListOverrides.h:34