electronstudio / raylib-python-cffi

Python CFFI bindings for Raylib
http://electronstudio.github.io/raylib-python-cffi
Eclipse Public License 2.0
142 stars 29 forks source link

TextFormat - difficult to hold right... #20

Closed chriscamacho closed 3 years ago

chriscamacho commented 3 years ago

feels like I'm holding this wrong...

#rl.DrawText(f"Frame: {int(frame)}".encode('UTF-8') , 10, 28, 20, MAROON)
rl.DrawText(rl.TextFormat(b"Frame: %i",ffi.cast("int", frame)), 10, 28, 20, MAROON)
electronstudio commented 3 years ago

Not really sure what the issue is and probably solved yourself by now but reopen if not.