Advertisement
Ember

layout

Dec 5th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. +--------------------------------------------+
  2. | Model Resource Entry (Example - 152 Bytes) |
  3. +--------------------------------------------+
  4. | Example lacks a source file, and contains |
  5. | one vertex buffer, one index buffer, one |
  6. | mesh, and one model; basically a custom |
  7. | resource the user created during runtime. |
  8. +-----------------------------------------+--+
  9. | Resource::Model::Description (48 Bytes) |
  10. +-------------------------+---------------+
  11. | (Byte*) Source |
  12. | (Buffer*) VertexBuffers |
  13. | (Buffer*) IndexBuffers |
  14. | (Mesh*) Meshes |
  15. | (Model*) Models |
  16. +-------------------------+
  17. | (uByte) SourceLength |
  18. | (Byte) NumVertexBuffers |
  19. | (Byte) NumIndexBuffers |
  20. | (Byte) NumMeshes |
  21. | (Byte) NumModels |
  22. +--------------------+----+
  23. | (uByte) Padding[0] |
  24. | (uByte) Padding[1] |
  25. | (uByte) Padding[2] |
  26. +--------------------+--------+
  27. | Resource::Buffer (24 Bytes) |
  28. +-------------------+---------+
  29. | (IBuffer*) Handle |
  30. | (Group*) Groups |
  31. +-----------------+-+
  32. | (Int) NumGroups |
  33. | (Int) Padding |
  34. +-----------------+-----------------+
  35. | Resource::Buffer::Group (8 Bytes) |
  36. +--------------+--------------------+
  37. | (Int) Offset |
  38. | (Int) Count |
  39. +--------------+--------------+
  40. | Resource::Buffer (24 Bytes) |
  41. +-------------------+---------+
  42. | (IBuffer*) Handle |
  43. | (Group*) Groups |
  44. +-----------------+-+
  45. | (Int) NumGroups |
  46. | (Int) Padding |
  47. +-----------------+-----------------+
  48. | Resource::Buffer::Group (8 Bytes) |
  49. +--------------+--------------------+
  50. | (Int) Offset |
  51. | (Int) Count |
  52. +--------------+------------+
  53. | Resource::Mesh (16 Bytes) |
  54. +----------------------+----+
  55. | (Int) VertexBufferID |
  56. | (Int) IndexBufferID |
  57. | (Int) MaterialID |
  58. | (Byte) VertexGroup |
  59. | (Byte) IndexGroup |
  60. | (Byte) Padding0 |
  61. | (Byte) Padding1 |
  62. +----------------------+-----+
  63. | Resource::Model (16 Bytes) |
  64. +--------------------+-------+
  65. | (Mesh::ID*) Meshes |
  66. | (Int) NumMeshes |
  67. | (Int) Padding |
  68. +--------------------+---------+
  69. | Resource::Mesh::ID (8 Bytes) |
  70. +---------------+--------------+
  71. | (UInt) Group |
  72. | (UInt) Handle |
  73. +---------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement