persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
RenderTypes.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <aegis/ndsTypes.hpp>
4#include <aegis/types.hpp>
5#include <fpm/fixed.hpp>
6
7#include <nds.h>
8
12struct RGBA
13{
14 int8_t red;
15 int8_t green;
16 int8_t blue;
17 int8_t alpha;
18
27 RGBA(int8_t r, int8_t g, int8_t b, int8_t a) : red(r), green(g), blue(b), alpha(a)
28 {
29 }
30};
31
36{
40 uint32_t polyParams = POLY_ALPHA(31) | POLY_CULL_BACK;
41
42 RGBA clearColor = RGBA(0, 0, 0, 31);
43 int clearDepth = 0x7FFF;
44 int clearPolyID = 0;
45
46 int fov = 55;
47 ae::q20_12_t aspect = ae::q20_12_t{256} / ae::q20_12_t{192};
49 ae::q20_12_t nearPlane = ae::q20_12_t{0.1};
51 int farPlane = 40;
52
54 rgb outlineColor = -1;
55
57 RGBA fogColor = RGBA(-1, 0, 0, 0);
58 uint8_t shift = 1;
60 uint8_t mass = 1;
62 uint16_t depth = 0x6000;
63};
Data structure to store RGBA values as 8-bit signed integers.
int8_t green
int8_t blue
RGBA(int8_t r, int8_t g, int8_t b, int8_t a)
Constructor to initialize RGBA data structure .
int8_t red
int8_t alpha
Data structure to store 3D view configuration parameters.
ae::q20_12_t aspect
uint8_t mass
How thick (translucent) the fog is.
rgb outlineColor
Outline color in RGB15 format. If -1, outline will not be enabled.
int settings
This is a bitmask of various settings, which will be passed to glEnable().
int farPlane
Defines how far the camera can see.
ae::q20_12_t nearPlane
Defines how close the cmaera can see.
RGBA fogColor
RGBA values for the foh color. If the r value is -1, fog will not be enabled.
uint32_t polyParams
This is a bitmask of various polygon parameters, which will be passed to glPolyFmt().
uint16_t depth
How far the fog is (0x0000 to 0x8000).