packages feed

atuin-0.1.1: sdl/sdlrun.h

#ifndef __SDLRUN_H
#define __SDLRUN_H

// Start SDL, open a window with dimensions (x,y)
void* startSDL(int x, int y);

void flipBuffers(void* s_in);

// Drawing primitives

void filledRect(void *s,
	        int x, int y, int w, int h,
	        int r, int g, int b, int a);
void filledEllipse(void* s_in,
		   int x, int y, int rx, int ry,
                   int r, int g, int b, int a);
void drawLine(void* s_in,
	      int x, int y, int ex, int ey,
	      int r, int g, int b, int a);

// Events
void* pollEvent(); // builds an Epic value
void* waitEvent(); // builds an Epic value

void pressAnyKey(); 

#endif