Files
core_graphics/tjp/core/graphics/Geometry.h
Timothy Prepscius d7e2ba6fcc flatten 20260225
2026-02-25 12:30:52 -05:00

39 lines
688 B
C++

//
// vuku.h
// Core
//
// Created by Timothy Prepscius on 9/8/20.
// Copyright © 2020 Timothy Prepscius. All rights reserved.
//
#pragma once
#include <tjp/core/math/Vector3.hpp>
#include <tjp/core/math/Vector2.hpp>
#include <vector>
namespace tjp {
namespace core {
namespace graphics {
namespace geometry
{
template<typename R, typename I=int>
struct Geometry
{
std::vector<math::Vector3<R>> vertices;
std::vector<I> indices;
std::vector<math::Vector3<R>> normals;
std::vector<math::Vector2<R>> uvs;
} ;
template<typename Real, typename Index>
Geometry<Real,Index> sphere(unsigned int numZSamples,
unsigned int numRadialSamples, Real radius, bool outside);
}
}
}
}