ImGui.Core.new

From GiderosMobile
Revision as of 15:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2020.9
Class: ImGui

Description

Initializes a new ImGui instance. <syntaxhighlight lang="lua"> ImGui.new(xxx) </source>

Parameters

xxx: (table) parameters optional

Example

A minimum example <syntaxhighlight lang="lua"> require "ImGui"

local imgui = ImGui.new() stage:addChild(imgui)

function onEnterFrame(e) imgui:newFrame(e.deltaTime) imgui:setClassicStyle()

imgui:showDemoWindow()

imgui:render() imgui:endFrame() end

stage:addEventListener(Event.ENTER_FRAME, onEnterFrame) </source>