DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
common.h
1
#pragma once
2
3
#include "kazarov/port.h"
4
5
#include "dungeon.h"
6
#include "language.h"
7
#include "mathconst.h"
8
#include "sound_effect.h"
9
#include "types.h"
10
11
#define STATIC_ASSERT(expr) typedef char _static_assert_##__COUNTER__[(expr) ? 1 : -1]
12
13
#ifdef PAL
14
#define SCREEN_HEIGHT 480
15
#define SCREEN_HALF_HEIGHT 240
16
#define SCREEN_HEIGHT_F 480.0f
17
#define SCREEN_HALF_HEIGHT_F 240.0f
18
#define SCREEN_QUARTER_HEIGHT_F 120.0f
19
#define GS_Y_OFFSET 0x7880
20
#define SCREEN_HEIGHT_STR "480"
21
#define HALF_BUFFER_HEIGHT_STR "256"
22
#else
23
#define SCREEN_HEIGHT 448
24
#define SCREEN_HALF_HEIGHT 224
25
#define SCREEN_HEIGHT_F 448.0f
26
#define SCREEN_HALF_HEIGHT_F 224.0f
27
#define SCREEN_QUARTER_HEIGHT_F 112.0f
28
#define GS_Y_OFFSET 0x7900
29
#define SCREEN_HEIGHT_STR "448"
30
#define HALF_BUFFER_HEIGHT_STR "224"
31
#endif
ps2
include
common.h
Generated by
1.9.8