neat implementation up to mutate

This commit is contained in:
zomseffen 2022-08-12 15:48:30 +02:00
parent 4a05baa103
commit cf4d773c10
8 changed files with 468 additions and 144 deletions
Client

View file

@ -52,6 +52,7 @@ class Client:
self.pos = pos
self.time = time.time()
self.projMatrix = perspectiveMatrix(45.0, 400 / 400, 0.01, MAX_DISTANCE)
glutReshapeFunc(self.resize)
glutDisplayFunc(self.display)
@ -195,7 +196,7 @@ class Client:
glutSwapBuffers()
print('fps', 1.0 / (time.time() - self.time))
# print('fps', 1.0 / (time.time() - self.time))
self.time = time.time()
glutPostRedisplay()