add tinygltfloader
This commit is contained in:
parent
5160ec4b0b
commit
4b695ecaf6
25 changed files with 10805 additions and 0 deletions
4
src/core/include/pw/core/buffer.hpp
Normal file
4
src/core/include/pw/core/buffer.hpp
Normal file
|
@ -0,0 +1,4 @@
|
|||
#ifndef BUFFER_HPP
|
||||
#define BUFFER_HPP
|
||||
|
||||
#endif // BUFFER_HPP
|
45
src/core/include/pw/core/mesh.hpp
Normal file
45
src/core/include/pw/core/mesh.hpp
Normal 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
9
src/core/src/mesh.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "pw/scene/mesh.hpp"
|
||||
|
||||
|
||||
namespace pw {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue