We can detail the
OnRender method as follows:
Clsstatement to clear the screen before we render anything.
Method OnRender:Int() Cls
Rendermethod of the fantomEngine, which is stored inside the
eng.Render() Return 0 End
With one simple call to the
Render method of the fantomEngine, we have rendered every single object that was active and visible. By using this framework, you won't need to think about rendering your game objects anymore. Cool isn't it?