Maximized

This function can be used to tell if a window is maximized.

Syntax

Returns

Returns true if the window is maximized, otherwise false is returned.

Example

--Create a window
window = Window:Create()
context = Context:Create(window)
world = World:Create()
camera = Camera:Create()
camera:Move(0,0,-3)
local light = DirectionalLight:Create()
light:SetRotation(35,35,0)

model = Model:Box()
model:SetColor(0.0,0.0,1.0)

--Maximize the window
window:Maximize()

while true do
if window:Closed() or window:KeyHit(Key.Escape) then return false end

model:Turn(0,Time:GetSpeed(),0)

Time:Update()
world:Update()

if (window:Maximized()) then
world:Render()
context:Sync(false)
end

end