Goal: | Basic render loop |
Difficulty: | Beginner |
Duration: | 5 minutes |
Language: | All |
import harfang as hg hg.LoadPlugins() plus = hg.GetPlus() plus.RenderInit(400, 300) while not plus.IsAppEnded(): plus.Flip() plus.EndFrame() plus.RenderUninit()
hg = require("harfang") hg.LoadPlugins() plus = hg.GetPlus() plus:RenderInit(400, 300) while not plus:IsAppEnded() do plus:Flip() plus:EndFrame() end