Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +--------------------------------------------+
- | Model Resource Entry (Example - 152 Bytes) |
- +--------------------------------------------+
- | Example lacks a source file, and contains |
- | one vertex buffer, one index buffer, one |
- | mesh, and one model; basically a custom |
- | resource the user created during runtime. |
- +-----------------------------------------+--+
- | Resource::Model::Description (48 Bytes) |
- +-------------------------+---------------+
- | (Byte*) Source |
- | (Buffer*) VertexBuffers |
- | (Buffer*) IndexBuffers |
- | (Mesh*) Meshes |
- | (Model*) Models |
- +-------------------------+
- | (uByte) SourceLength |
- | (Byte) NumVertexBuffers |
- | (Byte) NumIndexBuffers |
- | (Byte) NumMeshes |
- | (Byte) NumModels |
- +--------------------+----+
- | (uByte) Padding[0] |
- | (uByte) Padding[1] |
- | (uByte) Padding[2] |
- +--------------------+--------+
- | Resource::Buffer (24 Bytes) |
- +-------------------+---------+
- | (IBuffer*) Handle |
- | (Group*) Groups |
- +-----------------+-+
- | (Int) NumGroups |
- | (Int) Padding |
- +-----------------+-----------------+
- | Resource::Buffer::Group (8 Bytes) |
- +--------------+--------------------+
- | (Int) Offset |
- | (Int) Count |
- +--------------+--------------+
- | Resource::Buffer (24 Bytes) |
- +-------------------+---------+
- | (IBuffer*) Handle |
- | (Group*) Groups |
- +-----------------+-+
- | (Int) NumGroups |
- | (Int) Padding |
- +-----------------+-----------------+
- | Resource::Buffer::Group (8 Bytes) |
- +--------------+--------------------+
- | (Int) Offset |
- | (Int) Count |
- +--------------+------------+
- | Resource::Mesh (16 Bytes) |
- +----------------------+----+
- | (Int) VertexBufferID |
- | (Int) IndexBufferID |
- | (Int) MaterialID |
- | (Byte) VertexGroup |
- | (Byte) IndexGroup |
- | (Byte) Padding0 |
- | (Byte) Padding1 |
- +----------------------+-----+
- | Resource::Model (16 Bytes) |
- +--------------------+-------+
- | (Mesh::ID*) Meshes |
- | (Int) NumMeshes |
- | (Int) Padding |
- +--------------------+---------+
- | Resource::Mesh::ID (8 Bytes) |
- +---------------+--------------+
- | (UInt) Group |
- | (UInt) Handle |
- +---------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement