Also adds the incomplete modifier_volume example. This also adds vec2 for UV coordinates, and obj_to_cpp has been modified to parse vertex texture coordinates from obj files.
20 lines
313 B
C++
20 lines
313 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "math/vec2.hpp"
|
|
#include "math/vec3.hpp"
|
|
#include "math/vec4.hpp"
|
|
|
|
using vec2 = vec<2, float>;
|
|
using vec3 = vec<3, float>;
|
|
using vec4 = vec<4, float>;
|
|
|
|
struct vertex__normal {
|
|
uint16_t vertex;
|
|
uint16_t texture;
|
|
uint16_t normal;
|
|
};
|
|
|
|
using face = vertex__normal[3];
|