This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/renderer.hpp

19 lines
522 B
C++

#pragma once
#include "libmath.hpp"
#include "texture.hpp"
#include "pch.hpp"
#include "glhelpfunc.hpp"
class Renderer final {
public:
static void Init();
static void Shutdown();
static void SetClearColor(const Color& color);
static void SetDrawColor(const Color& color);
static void Clear();
static void DrawLine(const Point& p1, const Point& p2);
static void DrawRect(const Rect& rect);
static void FillRect(const Rect& rect);
static void SetViewport(int x, int y, int w, int h);
};