PySoy: Static instance calls
completed by: Samuel Kim
mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh
When building libsoy you see many warnings like this:
libsoy/src/scenes/Scene.gs:250.9-250.24:
warning: Access to static member
`soy.scenes.Scene.perspective' with an
instance reference
This error is caused by calls to static methods, in this case:
def static perspective (fovy : GLfloat, aspect : GLfloat,
zNear : GLfloat, zFar : GLfloat)
Thankfully these are very easy to fix, as this one recently was in this commit. Go through each of these files and correct each of these problems:
- src/controllers/graph/Grid.gs:34
- src/controllers/graph/Grid.gs:36
- src/controllers/graph/Grid.gs:218
- src/controllers/graph/Pathfinder.gs:53
- src/controllers/graph/Space.gs:34
- src/controllers/graph/Space.gs:36
- src/textures/Texture.gs:332
- src/widgets/Branch.gs:111
- src/widgets/Branch.gs:116
- src/widgets/HScroll.gs:64
- src/widgets/HScroll.gs:69
- src/widgets/VScroll.gs:62
- src/widgets/VScroll.gs:67
These line numbers may change due to other work being done on the repository and may not be a complete, current list. All valac warnings for access to a static member with an instance reference need to be fixed.
While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen.
When you've done, commit your work and post the resulting changeset url to this task.