1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/framework/LoaderDFF.h
2013-07-01 02:40:23 +02:00

36 lines
669 B
C++

#pragma once
#include "rwbinarystream.h"
#include <vector>
#include <string>
class LoaderDFF
{
private:
template<class T> T readStructure(char *data, size_t &dataI);
RW::BSSectionHeader readHeader(char *data, size_t &dataI);
RW::BSClump clump;
public:
void loadFromMemory(char *data);
struct Texture {
std::string name;
std::string alphaName;
};
struct Geometry {
RW::BSGeometryBounds geometryBounds;
std::vector<RW::BSGeometryUV> texcoords;
std::vector<RW::BSGeometryTriangle> triangles;
std::vector<RW::BSTVector3> vertices;
std::vector<RW::BSTVector3> normals;
std::vector<Texture> textures;
};
std::vector<Geometry> geometries;
};