| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- // CodeGear C++Builder
- // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
- // All rights reserved
- // (DO NOT EDIT: machine generated header) 'Formatx.MD2.pas' rev: 36.00 (Windows)
- #ifndef Formatx_MD2HPP
- #define Formatx_MD2HPP
- #pragma delphiheader begin
- #pragma option push
- #if defined(__BORLANDC__) && !defined(__clang__)
- #pragma option -w- // All warnings off
- #pragma option -Vx // Zero-length empty class member
- #endif
- #pragma pack(push,8)
- #include <System.hpp>
- #include <SysInit.hpp>
- #include <System.Classes.hpp>
- #include <System.SysUtils.hpp>
- #include <Stage.VectorTypes.hpp>
- //-- user supplied -----------------------------------------------------------
- namespace Formatx
- {
- namespace Md2
- {
- //-- forward type declarations -----------------------------------------------
- struct TMD2VertexIndex;
- struct TMD2Triangle;
- struct TMD2TriangleVertex;
- struct TMD2AliasFrame;
- struct TMD2Header;
- class DELPHICLASS TFileMD2;
- //-- type declarations -------------------------------------------------------
- typedef TMD2VertexIndex *PMD2VertexIndex;
- struct DECLSPEC_DRECORD TMD2VertexIndex
- {
- public:
- int A;
- int B;
- int C;
- float A_S;
- float A_T;
- float B_S;
- float B_T;
- float C_S;
- float C_T;
- };
- struct DECLSPEC_DRECORD TMD2Triangle
- {
- public:
- Stage::Vectortypes::TVector3s VertexIndex;
- Stage::Vectortypes::TVector3s TextureCoordIndex;
- };
- struct DECLSPEC_DRECORD TMD2TriangleVertex
- {
- public:
- System::StaticArray<System::Byte, 3> Vert;
- System::Byte LightnormalIndex;
- };
- typedef TMD2AliasFrame *PMD2AliasFrame;
- struct DECLSPEC_DRECORD TMD2AliasFrame
- {
- public:
- Stage::Vectortypes::TVector3f Scale;
- Stage::Vectortypes::TVector3f Translate;
- System::StaticArray<char, 16> Name;
- System::StaticArray<TMD2TriangleVertex, 1> Vertices;
- };
- struct DECLSPEC_DRECORD TMD2Header
- {
- public:
- int Ident;
- int Version;
- int SkinWidth;
- int SkinHeight;
- int FrameSize;
- int Num_Skins;
- int Num_Vertices;
- int Num_TextureCoords;
- int Num_VertexIndices;
- int Num_GLCommdands;
- int Num_Frames;
- int Offset_skins;
- int Offset_st;
- int Offset_tris;
- int Offset_frames;
- int Offset_glcmds;
- int Offset_end;
- };
- typedef System::DynamicArray<TMD2VertexIndex> TIndexList;
- typedef System::DynamicArray<Stage::Vectortypes::TVector3f> Formatx_Md2__1;
- typedef System::DynamicArray<System::DynamicArray<Stage::Vectortypes::TVector3f> > TGLVertexList;
- #pragma pack(push,4)
- class PASCALIMPLEMENTATION TFileMD2 : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- System::LongInt FiFrames;
- System::LongInt FiVertices;
- System::LongInt FiTriangles;
- void __fastcall FreeLists();
-
- public:
- TIndexList fIndexList;
- TGLVertexList fVertexList;
- System::Classes::TStrings* FrameNames;
- __fastcall virtual TFileMD2();
- __fastcall virtual ~TFileMD2();
- void __fastcall LoadFromStream(System::Classes::TStream* aStream);
- __property System::LongInt iFrames = {read=FiFrames, nodefault};
- __property System::LongInt iVertices = {read=FiVertices, nodefault};
- __property System::LongInt iTriangles = {read=FiTriangles, nodefault};
- __property TIndexList IndexList = {read=fIndexList};
- __property TGLVertexList VertexList = {read=fVertexList};
- };
- #pragma pack(pop)
- //-- var, const, procedure ---------------------------------------------------
- static _DELPHI_CONST System::Word MAX_MD2_TRIANGLES = System::Word(0x1000);
- static _DELPHI_CONST System::Word MAX_MD2_VERTICES = System::Word(0x800);
- static _DELPHI_CONST System::Word MAX_MD2_FRAMES = System::Word(0x200);
- static _DELPHI_CONST System::Int8 MAX_MD2_SKINS = System::Int8(0x20);
- static _DELPHI_CONST System::Int8 MAX_MD2_SKINNAME = System::Int8(0x40);
- } /* namespace Md2 */
- } /* namespace Formatx */
- #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FORMATX_MD2)
- using namespace Formatx::Md2;
- #endif
- #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FORMATX)
- using namespace Formatx;
- #endif
- #pragma pack(pop)
- #pragma option pop
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // Formatx_MD2HPP
|