You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
531 B
25 lines
531 B
#include <cmath>
|
|
#include <vector>
|
|
#include <glm/glm.hpp>
|
|
|
|
class Sphere{
|
|
private:
|
|
int numVertices;
|
|
int numIndices;
|
|
std::vector<int> indices;
|
|
std::vector<glm::vec3> vertices;
|
|
std::vector<glm::vec2> texCoords;
|
|
std::vector<glm::vec3> normals;
|
|
void init(int);
|
|
float toRadians(float degrees);
|
|
|
|
public:
|
|
Sphere();
|
|
Sphere(int prec);
|
|
int getNumVertices();
|
|
int getNumIndices();
|
|
std::vector<int> getIndices();
|
|
std::vector<glm::vec3> getVertices();
|
|
std::vector<glm::vec2> getTexCoords();
|
|
std::vector<glm::vec3> getNormals();
|
|
}; |