Instantly share code, notes, and snippets.

Embed
What would you like to do?
6.3 Tell Fantom Engine to render objects
' main.monkey OnRender function
Method OnRender()
engine.Clear(255, 0, 0)
engine.Render()
engine.SetColor(0, 70, 70)
engine.GetCanvas().DrawText("Last Touch: " + engine.GetTouchX() + ", " + engine.GetTouchY(),
engine.GetLocalX(10), engine.GetLocalY(10))
engine.RenderFlush()
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment