mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 08:19:11 +00:00
Added HMDL outputting from blender intermediate
This commit is contained in:
33
hecl/include/HECL/HMDLMeta.hpp
Normal file
33
hecl/include/HECL/HMDLMeta.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef HMDLMETA_HPP
|
||||
#define HMDLMETA_HPP
|
||||
|
||||
#include <HECL/HECL.hpp>
|
||||
#include <Athena/DNA.hpp>
|
||||
|
||||
namespace HECL
|
||||
{
|
||||
|
||||
enum HMDLTopology : atUint32
|
||||
{
|
||||
TopologyTriangles,
|
||||
TopologyTriStrips,
|
||||
};
|
||||
|
||||
#define HECL_HMDL_META_SZ 32
|
||||
|
||||
struct HMDLMeta : Athena::io::DNA<Athena::BigEndian>
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> magic = SBIG('TACO');
|
||||
Value<HMDLTopology> topology;
|
||||
Value<atUint32> vertStride;
|
||||
Value<atUint32> vertCount;
|
||||
Value<atUint32> indexCount;
|
||||
Value<atUint32> colorCount;
|
||||
Value<atUint32> uvCount;
|
||||
Value<atUint32> weightCount;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // HMDLMETA_HPP
|
||||
@@ -115,10 +115,14 @@ public:
|
||||
/**
|
||||
* @brief Integrated reader/constructor/container for HMDL data
|
||||
*/
|
||||
class HMDLData
|
||||
struct HMDLData
|
||||
{
|
||||
public:
|
||||
HMDLData(boo::IGraphicsDataFactory* factory, const void* data);
|
||||
boo::IGraphicsBufferS* m_vbo;
|
||||
boo::IGraphicsBufferS* m_ibo;
|
||||
boo::IVertexFormat* m_vtxFmt;
|
||||
|
||||
HMDLData(boo::IGraphicsDataFactory* factory,
|
||||
const void* metaData, const void* vbo, const void* ibo);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user