Abstracted away the creation of buffers
Added a transform Updated the TODO.md Updated default shaders to include the apropriate three 4x4 matrices to render in 3D
This commit is contained in:
19
MyGraphicsEngine/include/MyGraphicsEngine/Buffer.h
Normal file
19
MyGraphicsEngine/include/MyGraphicsEngine/Buffer.h
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include <glad/glad.h>
|
||||
class Buffer {
|
||||
private:
|
||||
unsigned int id;
|
||||
public:
|
||||
|
||||
int getBufferID();
|
||||
|
||||
void createBuffer();
|
||||
|
||||
void setBufferData(void* data, size_t dataSize, bool elementBuffer );
|
||||
|
||||
void Bind(bool elementBuffer);
|
||||
void Unbind(bool elementBuffer);
|
||||
|
||||
void Delete();
|
||||
|
||||
};
|
8
MyGraphicsEngine/include/MyGraphicsEngine/Transform.h
Normal file
8
MyGraphicsEngine/include/MyGraphicsEngine/Transform.h
Normal file
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
struct Transform {
|
||||
glm::vec3 Position;
|
||||
glm::vec3 Rotation;
|
||||
glm::vec3 Scale;
|
||||
};
|
Reference in New Issue
Block a user