MINI v.0.9.64d:
- [NEW] origin(x,y) sets the origin of the coordinate system. - [FIX] false extern declaration removed. - MINI_VERSION has its own header file.
This commit is contained in:
7
mini.cpp
7
mini.cpp
@@ -9,7 +9,7 @@
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
extern DECLSPEC int SDLCALL (*event_handler_ptr)(SDL_Event*) = &SDL_PollEvent;
|
||||
DECLSPEC int SDLCALL (*event_handler_ptr)(SDL_Event*) = &SDL_PollEvent;
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
@@ -671,6 +671,11 @@ void view() {
|
||||
ds::clp[0] = ds::clp[1] = 0; ds::clp[2] = screen_width-1; ds::clp[3] = screen_height-1;
|
||||
}
|
||||
|
||||
void origin(int x, int y) {
|
||||
ds::cam[0] = -(ds::clip[0]+x);
|
||||
ds::cam[1] = -(ds::clip[1]+y);
|
||||
}
|
||||
|
||||
void _drawcirc(int xc, int yc, int x, int y) {
|
||||
pset(xc+x, yc+y);
|
||||
pset(xc-x, yc+y);
|
||||
|
||||
Reference in New Issue
Block a user