forked from pyrite-dev/milsko
introduce MWAPI
This commit is contained in:
parent
77ca92452e
commit
2dd2c3870f
41 changed files with 189 additions and 166 deletions
|
|
@ -13,7 +13,7 @@ double deg2rad(double deg) {
|
|||
return (360.0 - deg) / 180.0 * M_PI;
|
||||
}
|
||||
|
||||
void tick(MwWidget handle, void* user, void* call) {
|
||||
void MWAPI tick(MwWidget handle, void* user, void* call) {
|
||||
time_t t = time(NULL);
|
||||
int i;
|
||||
double rad;
|
||||
|
|
@ -104,7 +104,7 @@ void tick(MwWidget handle, void* user, void* call) {
|
|||
MwOpenGLSwapBuffer(opengl);
|
||||
}
|
||||
|
||||
void resize(MwWidget handle, void* user, void* call) {
|
||||
void MWAPI resize(MwWidget handle, void* user, void* call) {
|
||||
int w = MwGetInteger(handle, MwNwidth);
|
||||
int h = MwGetInteger(handle, MwNheight);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue