102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
#ifndef PCDOGS_MATERIAL_CONSTANTS_H
2
#define PCDOGS_MATERIAL_CONSTANTS_H
3
4
#include <stdint.h>
5
6
/* Descriptor flags and table-entry flags occupy distinct packed fields. */
7
#define MATERIAL_DESCRIPTOR_FORMAT_LOW ((int32_t)(1 << 0))
8
#define MATERIAL_DESCRIPTOR_FORMAT_HIGH ((int32_t)(1 << 1))
9
#define MATERIAL_DESCRIPTOR_HAS_SURFACES ((int32_t)(1 << 2))
10
#define MATERIAL_DESCRIPTOR_PROCESSED ((int32_t)(1 << 7))
11
#define MATERIAL_PIXEL_PALETTED ((int32_t)(1 << 3))
12
#define MATERIAL_PIXEL_SHARED_REFERENCE ((int32_t)(1 << 6))
13
#define MATERIAL_REFERENCE_SHARED_DESCRIPTOR ((int32_t)(1 << 3))
14
#define MATERIAL_SHARED_TEXTURE ((int32_t)(1 << 22))
15
#define MATERIAL_SHARED_TEXTURE_UNSIGNED ((uint32_t)MATERIAL_SHARED_TEXTURE)
16
#define MATERIAL_TINT_PRECOMPUTED ((int32_t)(1 << 7))
17
#define MATERIAL_NODE_INDEX_MASK 0x1ff
18
#define MATERIAL_NODE_REFERENCE_NONE UINT32_MAX
19
#define MATERIAL_CONTROLLER_MODE_MASK 0xf
20
#define MATERIAL_CONTROLLER_MODE_SHIFT 25
21
#define MATERIAL_MAX_FRAME_LAYERS 4
22
#define MATERIAL_MAX_EXPANDED_PIXEL_BYTES 0x40000
23
24
#define MATERIAL_TWO_SIDED 0x1
25
#define MATERIAL_FLIP_U 0x8
26
#define MATERIAL_FLIP_V 0x10
27
#define MATERIAL_BLEND_MODE_LOW 0x20
28
#define MATERIAL_BLEND_MODE_HIGH 0x40
29
#define MATERIAL_BLEND_ENABLED 0x80
30
#define MATERIAL_EXPLICIT_UV 0x100
31
#define MATERIAL_NEAR_LOD 0x200
32
#define MATERIAL_ENVIRONMENT_UV 0x400
33
#define MATERIAL_TILE_U_FIRST 0x2000
34
#define MATERIAL_TILE_U_SECOND 0x4000
35
#define MATERIAL_TILE_V_FIRST 0x8000
36
#define MATERIAL_TILE_V_SECOND 0x10000
37
#define MATERIAL_FAR_LOD 0x40000
38
#define MATERIAL_LINKED_PASS 0x100000
39
#define MATERIAL_DEPTH_SORT 0x400000
40
#define MATERIAL_UV_ROTATE_QUARTER 0x20000000
41
#define MATERIAL_UV_ROTATE_HALF 0x40000000
42
43
enum
Material_NodeKind
44
{
45
MATERIAL_NODE_TEXTURE_FRAMES
= 3
46
};
47
48
#define MATERIAL_TEXTURE_HANDLE_COUNT 25
49
50
#define MATERIAL_BLEND_MODE_SHIFT 5
51
#define MATERIAL_BLEND_MODE_MASK (MATERIAL_BLEND_MODE_LOW | MATERIAL_BLEND_MODE_HIGH)
52
53
#endif
Material_NodeKind
Material_NodeKind
Definition
constants.h:44
MATERIAL_NODE_TEXTURE_FRAMES
@ MATERIAL_NODE_TEXTURE_FRAMES
Definition
constants.h:45
include
pcdogs
material
constants.h
Generated by
1.17.0