add draw types

This commit is contained in:
2026-02-16 22:41:20 -06:00
parent 5fd5eb892b
commit fda88a906b
4 changed files with 64 additions and 15 deletions

View File

@@ -5,17 +5,40 @@
#include "extratools.h"
#include "utils/Renderer/RenderTarget.h"
namespace Archimedes {
class Object {
public:
Object() {};
Object(RenderTarget rt) : mesh(rt) {};
Object(VertexBuffer vb, IndexArray ia, VertexLayout vl, Shader s, glm::mat4 t)
: mesh(vb, ia, vl, s), worldTransform(t) {}
Object() {}
~Object() {};
///scales an object absolutely
void scaleTo() {}
void scaleRel() {}
void moveTo() {}
void moveRel() {}
void rotateTo() {}
void rotateRel() {}
private:
glm::vec3 position = glm::vec3(0);
glm::vec3 rotation = glm::vec3(0);
glm::mat4 worldTransform = glm::mat4(1.0f);
RenderTarget mesh;
};
}