Anvil Engine
Loading...
Searching...
No Matches
AMesh.h
Go to the documentation of this file.
1#pragma once
2#include "ACore.h"
3#include "AMath.h"
4#include <vector>
5#include <cstdint>
6
7struct MVertex
8{
9 glm::vec3 pos;
10 glm::vec2 uv;
11 glm::vec3 normal;
12};
13
19{
20 public:
21 AMesh(std::vector<MVertex> verts, std::vector<uint32_t> indices, uint32_t texID = 0);
22 ~AMesh();
23 void Draw();
24
25 private:
26 uint32_t VAO, VBO, EBO;
27 uint32_t indexCount;
28 uint32_t m_textureID;
29};
#define ANVIL_API
Definition ACore.h:6
void Draw()
Definition AMesh.cpp:4
AMesh(std::vector< MVertex > verts, std::vector< uint32_t > indices, uint32_t texID=0)
Definition AMesh.cpp:20
Definition AMesh.h:8
glm::vec2 uv
Definition AMesh.h:10
glm::vec3 pos
Definition AMesh.h:9
glm::vec3 normal
Definition AMesh.h:11