dreamcast/geometry/geometry.hpp
Zack Buhman 4bb04a0362 example: add maple_analog
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.
2023-12-30 10:53:39 +08:00

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];