Debian Codegraph @

src/scene/load/md3/x3dloadinternalmd3_structs.inc

raw
1 {%MainUnit x3dloadinternalmd3.pas}
2 {
3 Copyright 2007-2023 Michalis Kamburelis.
4
5 This file is part of "Castle Game Engine".
6
7 "Castle Game Engine" is free software; see the file COPYING.txt,
8 included in this distribution, for details about the copyright.
9
10 "Castle Game Engine" is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 ----------------------------------------------------------------------------
15 }
16
17 { Structures matching MD3 file binary layout. }
18
19 const
20 Md3MaxQPath = 64;
21 DefaultMd3Fps = 30;
22
23 type
24 TMd3Triangle = record
25 Indexes: array [0..2] of UInt32;
26 end;
27 TMd3TriangleList = {$ifdef FPC}specialize{$endif} TStructList<TMd3Triangle>;
28
29 TMd3Vertex = record
30 Position: array [0..2] of SmallInt;
31 Normal: SmallInt;
32 end;
33 PMd3Vertex = ^TMd3Vertex;
34 TMd3VertexList = {$ifdef FPC}specialize{$endif} TStructList<TMd3Vertex>;
35
36 TMd3TexCoord = TVector2;
37 TMd3TexCoordList = TVector2List;
38
39 TMd3Shader = record
40 Name: array [0..Md3MaxQPath - 1] of AnsiChar;
41 ShaderIndex: UInt32;
42 end;
43 TMd3ShaderList = {$ifdef FPC}specialize{$endif} TStructList<TMd3Shader>;
44
45 TMd3Tag = record
46 Name: array [0..Md3MaxQPath - 1] of AnsiChar;
47 Origin: TVector3;
48 Orientation: TMatrix3;
49 end;
50 PMd3Tag = ^TMd3Tag;
51 TMd3TagList = {$ifdef FPC}specialize{$endif} TStructList<TMd3Tag>;