updated makefile for supporting different target architectures

use "ARCH=arch_name make"

restructured project folder, implementations and headers together under sources/
This commit is contained in:
beno
2026-03-16 00:10:52 +01:00
parent 6c125fb35e
commit bbede61723
73 changed files with 786 additions and 379 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include <glm/glm.hpp>
#include <GLES2/gl2.h>
#include <string>
using namespace std;
class WorldInstanceable {
private:
glm::vec3 localFront, localUp;
void setup(glm::vec3 position);
public:
glm::mat4 scaleMat;
glm::mat4 rotation;
glm::vec3 position;
WorldInstanceable(glm::vec3 position);
WorldInstanceable(glm::vec3 position, glm::vec3 scale);
WorldInstanceable(glm::vec3 position, glm::vec3 axis, float angle);
WorldInstanceable(glm::vec3 position, glm::vec3 scale, glm::vec3 axis, float angle);
void setPosition(glm::vec3 position);
void rotate(glm::vec3 axis, float angle);
void scale(float factor);
void scale(glm::vec3 factors);
glm::mat4 getLocalTransform();
glm::mat4 getGlobalTransform();
void alignTo(glm::vec3 direction);
};