test crate
This commit is contained in:
parent
4baba0f155
commit
c7bfbf72db
1 changed files with 13 additions and 0 deletions
|
|
@ -43,7 +43,20 @@ void GSClientDestroy(GSClient client) {
|
||||||
GSLog(GSLogInfo, "Destroyed client");
|
GSLog(GSLogInfo, "Destroyed client");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GSModel m = NULL;
|
||||||
|
GSVector3 rot = {0, 0, 0};
|
||||||
|
|
||||||
static void scene(GSClient client) {
|
static void scene(GSClient client) {
|
||||||
|
if(m == NULL) m = GSModelOpen(client->engine, "game:/mdl/crate.gsm");
|
||||||
|
|
||||||
|
rot[0]++;
|
||||||
|
rot[1]++;
|
||||||
|
rot[2]++;
|
||||||
|
|
||||||
|
GSGLPushMatrix(client->gl);
|
||||||
|
GSGLSetRotation(client->gl, rot);
|
||||||
|
GSModelDraw(m);
|
||||||
|
GSGLPopMatrix(client->gl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSClientStep(GSClient client) {
|
void GSClientStep(GSClient client) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue