This repository has been archived on 2026-11-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
my-first-apex-internal/inc/render.h
T
2026-11-05 02:19:09 +01:00

17 lines
927 B
C++

#pragma once
class c_render
{
public:
size_t get_text_width(const char* text, size_t font_size);
void draw_rect(respawn::color_t color, int x1, int y1, int x2, int y2, int opacity = 255);
void draw_rect_filled(respawn::color_t color, int x1, int y1, int x2, int y2, int opacity = 255);
void draw_line(respawn::color_t color, int x1, int y1, int x2, int y2, int opacity = 255);
void draw_rect_bordered(respawn::color_t sColor, float flX0, float flY0, float flX1, float flY1, int opacity = 255);
void draw_circle(respawn::color_t color, int x, int y, int radius, int segments = 100, int opacity = 255);
void draw_text(respawn::color_t color, ulong font, int size, int x, int y, const char* text);
void draw_text_ex(respawn::color_t color, ulong font, int size, int x, int y, const char* text, ...);
void draw_text_centered(respawn::color_t color, ulong font, int size, int x, int y, const char* text, ...);
private:
};