mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-23 20:59:58 +01:00
COntinue city
This commit is contained in:
parent
b8c97ca36a
commit
9c5024dcd2
1 changed files with 4 additions and 0 deletions
|
@ -228,8 +228,12 @@ int main()
|
||||||
{
|
{
|
||||||
clock_t frameStartT = clock();
|
clock_t frameStartT = clock();
|
||||||
|
|
||||||
|
models[1].transform.rotation.y += models[1].transform.rotation.z; // overturn the car for the rendering
|
||||||
|
|
||||||
draw();
|
draw();
|
||||||
|
|
||||||
|
models[1].transform.rotation.y -= models[1].transform.rotation.z; // turn the car back for the physics
|
||||||
|
|
||||||
fps++;
|
fps++;
|
||||||
|
|
||||||
SDL_UpdateTexture(textureSDL,NULL,pixels,S3L_RESOLUTION_X * sizeof(uint32_t));
|
SDL_UpdateTexture(textureSDL,NULL,pixels,S3L_RESOLUTION_X * sizeof(uint32_t));
|
||||||
|
|
Loading…
Reference in a new issue