initial commit

This commit is contained in:
2026-02-12 19:55:21 +01:00
commit 5cd6abdd48
11 changed files with 389 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#ifndef DELTA_RENDERCALLS
#define DELTA_RENDERCALLS
#include <SDL3/SDL.h>
#include "math.hpp"
void rasterizeTriangle(SDL_Renderer *renderer, const DeltaVector2 &a, const DeltaVector2 &b, const DeltaVector2 &c);
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef DELTA_CAMERA
#define DELTA_CAMERA
#include "math.hpp"
class DeltaCamera {
public:
DeltaVector3 pos;
DeltaVector2 angle;
DeltaCamera(float x, float y, float z);
DeltaVector2 projectPointVec(const DeltaVector3 &worldPos);
DeltaVector2 projectPoint(float worldX, float worldY, float worldZ);
};
#endif