Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Game Engine/Factories/PrimitiveFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ void PrimitiveFactory::calcAverageNormals(unsigned int* indices, unsigned int in
vertices[nOffset] = vec.x; vertices[nOffset + 1] = vec.y; vertices[nOffset + 2] = vec.z;
}
}

Mesh* PrimitiveFactory::CreateIcoSphere(unsigned int subdivisions) {
return nullptr;
}
2 changes: 2 additions & 0 deletions src/Game Engine/Factories/PrimitiveFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class PrimitiveFactory {
void calcAverageNormals(unsigned int* indices, unsigned int indiceCount, GLfloat* vertices, unsigned int verticeCount,
unsigned int vLength, unsigned int normalOffset);

Mesh* CreateIcoSphere(unsigned int subdivisions);

GLfloat pyramidVertices[32] = {
// x y z u v nx ny nz
-1.0f, -1.0f, -0.6f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
Expand Down