neat implementation up to mutate
This commit is contained in:
parent
4a05baa103
commit
cf4d773c10
8 changed files with 468 additions and 144 deletions
Client
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue