GetScreenWidth

Definition

int GetScreenWidth()

Description

This function returns the width of the screen in pixels.

Return Value

Width of the screen in pixels.

Example

width = 0

function Init()
    width = GetScreenWidth()

    message = string.format("\nScreen width is > %d" , width)
    PrintConsole(message)
end

function Update()

end
adminGetScreenWidth