add tinygltfloader

This commit is contained in:
Hartmut Seichter 2019-01-10 22:07:45 +01:00
parent 5160ec4b0b
commit 4b695ecaf6
25 changed files with 10805 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#ifndef BUFFER_HPP
#define BUFFER_HPP
#endif // BUFFER_HPP

View file

@ -0,0 +1,45 @@
#ifndef PW_SCENE_MESH_HPP
#define PW_SCENE_MESH_HPP
#include <pw/core/matrix.hpp>
#include <pw/scene/component.hpp>
namespace pw {
class mesh : public component {
public:
using component::component;
typedef std::vector<int32_t> index_t;
typedef std::vector<float> vertex_t;
enum topology_type {
triangles,
triangle_strip,
triangle_fan,
quads,
lines,
line_strip,
points
};
protected:
// index data
// vertex d ata
// normal data
// color data
// uv data
// tangents data
// boundary
};
}
#endif

9
src/core/src/mesh.cpp Normal file
View file

@ -0,0 +1,9 @@
#include "pw/scene/mesh.hpp"
namespace pw {
}