Added Rectangle struct and core_input_gestures example (#12)

* Added Rectangle struct

* Added core_input_gestures example to utilize the Rectangle struct

* Removed unused imports
This commit is contained in:
Matt Lebrun 2020-07-30 20:52:12 +08:00 committed by GitHub
parent 76e945e1c9
commit 6854ec4a3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 108 additions and 1 deletions

View file

@ -45,7 +45,7 @@ for name, attr in getmembers(rl):
else:
setattr(PyRay, name, attr)
for struct in ('Vector2','Vector3','Vector4','Camera2D', 'Camera3D', 'Quaternion', 'Color'):
for struct in ('Vector2','Vector3','Vector4','Camera2D', 'Camera3D', 'Quaternion', 'Color', 'Rectangle'):
f = makeStructHelper(struct)
setattr(PyRay, struct, f)