DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
MDT_HEADER Struct Reference

#include <mdt.hpp>

Public Attributes

int unk_00 [2]
 
unsigned int size
 
int vertex_num
 
int vertex_ofs
 
int normal [2]
 
int colour_count
 
int colour_ofs
 
int unk_24
 
int mesh_ofs
 
int uv [3]
 
int info_ofs
 

Detailed Description

Describes the sections and vertex data of an MDT resource.

Definition at line 10 of file mdt.hpp.

Member Data Documentation

◆ unk_00

int MDT_HEADER::unk_00[2]

Definition at line 11 of file mdt.hpp.

◆ size

unsigned int MDT_HEADER::size

Size of the whole resource in bytes.

Definition at line 12 of file mdt.hpp.

◆ vertex_num

int MDT_HEADER::vertex_num

Number of vertex positions.

Definition at line 13 of file mdt.hpp.

◆ vertex_ofs

int MDT_HEADER::vertex_ofs

Byte offset from the header to the vertex positions.

Definition at line 14 of file mdt.hpp.

◆ normal

int MDT_HEADER::normal[2]

Normal vectors; the second word is their byte offset from the header.

Definition at line 15 of file mdt.hpp.

◆ colour_count

int MDT_HEADER::colour_count

Number of editable per-vertex colour vectors.

Definition at line 16 of file mdt.hpp.

◆ colour_ofs

int MDT_HEADER::colour_ofs

Byte offset from the header to those colour vectors.

Definition at line 17 of file mdt.hpp.

◆ unk_24

int MDT_HEADER::unk_24

Definition at line 18 of file mdt.hpp.

◆ mesh_ofs

int MDT_HEADER::mesh_ofs

Byte offset from the header to the mesh section: draw strips, collision triangles or shadow shapes.

Definition at line 19 of file mdt.hpp.

◆ uv

int MDT_HEADER::uv[3]

Texture coordinates; the second word is their byte offset from the header.

Definition at line 20 of file mdt.hpp.

◆ info_ofs

int MDT_HEADER::info_ofs

Byte offset from the header to the material table, or to the polygon attributes of a collision mesh.

Definition at line 21 of file mdt.hpp.