Added Camera
This commit is contained in:
parent
89e47fa56c
commit
3842a877ac
7 changed files with 233 additions and 67 deletions
|
|
@ -15,7 +15,7 @@ class Mesh
|
|||
public:
|
||||
unsigned int VBO, VAO, EBO;
|
||||
std::size_t indexCount = 0;
|
||||
|
||||
|
||||
Mesh(const std::vector<Vertex>& vertices, const std::vector<unsigned int>& indices) : indexCount(indices.size())
|
||||
{
|
||||
if (vertices.empty() || indices.empty()) {
|
||||
|
|
@ -55,7 +55,7 @@ public:
|
|||
std::cout << "Failed to load mesh" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Draw() const
|
||||
{
|
||||
glDrawArrays(GL_TRIANGLES, 0, 36);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue