initial commit
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user