flatten 20260225
This commit is contained in:
38
tjp/core/graphics/Geometry.h
Normal file
38
tjp/core/graphics/Geometry.h
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// 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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user