[NEW] extended palette functions
[DEL] old palette functions [MODIF] mouse function names [MODIF] map function params now are ints [NEW] ascii function [NEW] strlen function
This commit is contained in:
28
mini.h
28
mini.h
@@ -121,11 +121,18 @@ void setmap(uint8_t surface);
|
||||
|
||||
void cls(uint8_t color=0);
|
||||
void color(uint8_t color=6);
|
||||
void pal();
|
||||
|
||||
void loadpal(const char* filename);
|
||||
void setpal(uint8_t index, uint32_t color);
|
||||
uint32_t getpal(uint8_t index);
|
||||
void settrans(uint8_t index);
|
||||
uint8_t gettrans();
|
||||
|
||||
/*void pal();
|
||||
void pal(uint8_t c0, uint8_t c1, uint8_t p = 0);
|
||||
void palt();
|
||||
void palt(uint16_t bits);
|
||||
void palt(uint8_t col, bool t);
|
||||
void palt(uint8_t col, bool t);*/
|
||||
|
||||
void pset(int x, int y);
|
||||
void pset(int x, int y, uint8_t color);
|
||||
@@ -182,17 +189,17 @@ void cline(int x0, int y0, int x1, int y1, uint8_t c0, uint8_t c1);
|
||||
void chline(int x0, int y, int x1, uint8_t c0, uint8_t c1);
|
||||
void cvline(int x, int y0, int y1, uint8_t c0, uint8_t c1);
|
||||
|
||||
uint8_t mget(uint8_t celx, uint8_t cely);
|
||||
void mset(uint8_t celx, uint8_t cely, uint8_t snum);
|
||||
void map(uint8_t celx, uint8_t cely, int sx, int sy, uint8_t celw, uint8_t celh, uint8_t layer=0);
|
||||
uint8_t mget(int celx, int cely);
|
||||
void mset(int celx, int cely, uint8_t snum);
|
||||
void map(int celx, int cely, int sx, int sy, uint8_t celw, uint8_t celh, uint8_t layer=0);
|
||||
|
||||
bool btn(uint8_t i);
|
||||
bool btnp(uint8_t i);
|
||||
|
||||
int mouseX();
|
||||
int mouseY();
|
||||
int mouseWheel();
|
||||
bool mouseButton(uint8_t i);
|
||||
int mousex();
|
||||
int mousey();
|
||||
int mwheel();
|
||||
bool mbtn(uint8_t i);
|
||||
|
||||
float time();
|
||||
|
||||
@@ -201,7 +208,7 @@ float time();
|
||||
float flr(float x);
|
||||
float sgn(float x);
|
||||
|
||||
#ifndef __LINUX__
|
||||
#ifdef __WINDOWS__
|
||||
float ceil(float x);
|
||||
float sin(float x);
|
||||
float cos(float x);
|
||||
@@ -221,3 +228,4 @@ const char* tostr(int val);
|
||||
void debug(const char *str);
|
||||
void pdebug();
|
||||
|
||||
uint8_t ascii(const char *str, uint8_t index);
|
||||
Reference in New Issue
Block a user