Apt Data

From Burnout Wiki
Revision as of 01:07, 25 September 2023 by Burninrubber0 (talk | contribs) (Created page with initial information (Criterion's structs only).)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
AptData
aka Flash
No Example
Resource names Unknown
Type ID 0x1E
Category Generic
Memory
distribution
Main Memory only
Imports Texture
Imported by Unknown
Editor
available?
No
Hmmm...
Hmmm...
To do:
Add an example image and add information from Bo98's Apt spec draft, among other sources.


Previous Versions
Information on previous versions of the Apt Data resource type.

Apt is a Flash-based format. It is used for animations in several EA games.

Structures

CgsGui::AptDataHeader

32-bit

Offset Length Type Name Description Comments
0x0 0x4 char* mpacMovieName Component name
0x4 0x4 char* ? Base component name
0x8 0x4 void* mpAptData Apt data
0xC 0x4 void* mpConstData Apt constant file
0x10 0x4 GuiGeometryObject* mpGeomStruct Geometry
0x14 0x4 uint32_t muSizeOfHeader Total file size
0x18 0x4 EAptDataState meCurrentState State

64-bit

Offset Length Type Name Description Comments
0x0 0x8 char* mpacMovieName Component name
0x8 0x8 char* ? Base component name
0x10 0x8 void* mpAptData Apt data
0x18 0x8 void* mpConstData Apt constant file
0x20 0x8 GuiGeometryObject* mpGeomStruct Geometry
0x28 0x4 uint32_t muSizeOfHeader Total file size
0x2C 0x4 EAptDataState meCurrentState State

CgsResource::GuiGeometryObject

32-bit

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muNumberOfFiles
0x4 0x4 uint32_t muNumberOfTexturePages
0x8 0x4 GuiGeometryFile** mppGeometryFiles

64-bit

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muNumberOfFiles
0x4 0x4 uint32_t muNumberOfTexturePages
0x8 0x8 GuiGeometryFile** mppGeometryFiles

CgsResource::GuiGeometryFile

32-bit

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muID
0x4 0x4 uint32_t muNumberOfMeshes
0x8 0x4 GuiGeometryMesh** mppGeometryMeshes

64-bit

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muID
0x4 0x4 uint32_t muNumberOfMeshes
0x8 0x8 GuiGeometryMesh** mppGeometryMeshes

CgsResource::GuiGeometryMesh

32-bit

Offset Length Type Name Description Comments
0x0 0x10 GuiGeometryMeshHeader mMeshHeader
0x10 0x4 uint32_t muNumberOfVerticies
0x14 0x4 GuiVertex** mppVerticies

64-bit

Offset Length Type Name Description Comments
0x0 0x18 GuiGeometryMeshHeader mMeshHeader
0x18 0x4 uint32_t muNumberOfVerticies
0x1C 0x4 Padding
0x20 0x8 GuiVertex** mppVerticies

CgsResource::GuiGeometryMeshHeader

32-bit

Offset Length Type Name Description Comments
0x0 0x4 int32_t miMeshType
0x4 0x4 int32_t miTextureMode
0x8 0x4 int32_t miTextureId
0xC 0x4 GuiTexture* mpTexture Imported resource (if present)

64-bit

Offset Length Type Name Description Comments
0x0 0x4 int32_t miMeshType
0x4 0x4 int32_t miTextureMode
0x8 0x4 int32_t miTextureId
0xC 0x4 Padding
0x10 0x8 GuiTexture* mpTexture Imported resource (if present)

CgsGraphics::Basic2dColouredTexturedVertex

Offset Length Type Name Description Comments
0x0 0x8 Vector2 mv2Pos
0x8 0x4 RGBA8 mv4Colour
0xC 0x8 Vector2 mv2Tex0UV

renderengine::RGBA8

Offset Length Type Name Description Comments
0x0 0x4 uint32_t m_rgba Color data

Typedefs

CgsResource::GuiGeometryMeshHeader::GuiTexture

Name Type Length Comments
GuiTexture Texture See platform-specific specs for details

CgsResource::GuiGeometryMeshMesh::GuiVertex

Name Type Length Comments
GuiVertex Im2dVertex 0x14

CgsGraphics::ImCommandBatchTransformTextureBlendRender::Im2dVertex

Name Type Length Comments
Im2dVertex Basic2dColouredTexturedVertex 0x14

Enumerations

CgsGui::AptDataHeader::EAptDataState

Name Value Comments
E_APTDATASTATE_LOADING 0
E_APTDATASTATE_LOADED 1
E_APTDATASTATE_ACTIVE 2