This togheter with the previous commit has drastically improved compile time
32 lines
522 B
C++
32 lines
522 B
C++
#pragma once
|
|
#include "../Graphics/Memory/Buffer.h"
|
|
#include "../Graphics/Memory/VertexArray.h"
|
|
|
|
namespace YoggieEngine {
|
|
|
|
class RenderSurface
|
|
{
|
|
public:
|
|
RenderSurface();
|
|
~RenderSurface();
|
|
|
|
void Draw();
|
|
|
|
private:
|
|
// would normally be a material
|
|
// however rendersurface is special and
|
|
// thus does not contain a material
|
|
Shader* shader;
|
|
|
|
// Basically a mesh
|
|
std::vector<glm::vec3> verts;
|
|
std::vector<unsigned int > indices;
|
|
|
|
Buffer vertexBuffer;
|
|
Buffer elementBuffer;
|
|
|
|
VertexArray VAO;
|
|
};
|
|
|
|
}
|