mirror of
https://github.com/GayPizzaSpecifications/padlab.git
synced 2025-08-04 05:31:33 +00:00
Modularise drawing code a little
This commit is contained in:
17
draw.h
Normal file
17
draw.h
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef DRAW_H
|
||||
#define DRAW_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct SDL_Renderer SDL_Renderer;
|
||||
extern SDL_Renderer* rend;
|
||||
|
||||
void SetDrawColour(uint32_t c);
|
||||
void DrawClear(void);
|
||||
void DrawPoint(int x, int y);
|
||||
void DrawRect(int x, int y, int w, int h);
|
||||
void DrawLine(int x1, int y1, int x2, int y2);
|
||||
void DrawCircle(int x, int y, int r);
|
||||
void DrawCircleSteps(int x, int y, int r, int steps);
|
||||
|
||||
#endif//DRAW_H
|
Reference in New Issue
Block a user