fix
This commit is contained in:
parent
1da71680f7
commit
a310325a61
4 changed files with 15 additions and 15 deletions
|
|
@ -46,6 +46,8 @@ static void scene(GSClient client) {
|
|||
}
|
||||
|
||||
void GSClientStep(GSClient client) {
|
||||
static double r = 0;
|
||||
|
||||
GSGLClear(client->gl);
|
||||
GSGLCameraSetup(client->gl);
|
||||
GSGLSetLight(client->gl);
|
||||
|
|
@ -61,8 +63,6 @@ void GSClientStep(GSClient client) {
|
|||
|
||||
client->engine->param->gl_swapbuffer();
|
||||
|
||||
static double r = 0;
|
||||
|
||||
client->look_at[0] = 5 + cos(r) * 5;
|
||||
client->look_at[2] = 5 + sin(r) * 5;
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,11 @@ int GSFileRead(GSFile file, void* out, int size) {
|
|||
memcpy(out, file->data + file->seek, len);
|
||||
|
||||
file->seek += len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GSFileSeek(GSFile file, int pos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue