Created
November 26, 2016 18:30
-
-
Save codetravis/0c4b28cd17b8f5293e0d4d5a535aca41 to your computer and use it in GitHub Desktop.
6.3 Tell Fantom Engine to render objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' 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