Files
deltaengine/include/renderer/calls.hpp
T
2026-02-13 22:53:09 +01:00

12 lines
563 B
C++

#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);
void rasterizeTriangleFast(SDL_Surface* surface, const DeltaVector2& v0, const DeltaVector2& v1, const DeltaVector2& v2, uint32_t color);
void rasterizeTriangleSurface(SDL_Surface* surface, const DeltaVector2& a, const DeltaVector2& b, const DeltaVector2& c, uint32_t color);
void setPixel(SDL_Surface* surface, int x, int y, uint32_t color);
#endif