refactor pyray into separate module
This commit is contained in:
parent
8666f0cff8
commit
ec752bdab7
24 changed files with 2394 additions and 2055 deletions
|
@ -18,6 +18,30 @@ from inspect import ismethod,getmembers,isbuiltin
|
|||
import inflection
|
||||
|
||||
class PyRay:
|
||||
|
||||
print("""
|
||||
|
||||
***********************************************
|
||||
|
||||
WARNING
|
||||
|
||||
Class raylib.PyRay() is depreciated.
|
||||
|
||||
Instead please use module, e.g.
|
||||
|
||||
import pyray
|
||||
pyray.init_window(500, 500, '')
|
||||
|
||||
or even:
|
||||
|
||||
import * from pyray
|
||||
init_window(500, 500, '')
|
||||
|
||||
|
||||
**********************************************
|
||||
|
||||
""")
|
||||
|
||||
def pointer(self, struct):
|
||||
return ffi.addressof(struct)
|
||||
|
||||
|
|
Reference in a new issue