Difference between revisions of "Viewport:setClip"
From GiderosMobile
(remove language stuff) |
|||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
Sets the viewport size. | Sets the viewport size. | ||
− | < | + | <syntaxhighlight lang="lua"> |
Viewport:setClip(x,y,width,height) | Viewport:setClip(x,y,width,height) | ||
− | </ | + | </syntaxhighlight> |
=== Parameters === | === Parameters === |
Latest revision as of 16:10, 20 February 2024
Available since: Gideros 2016.04
Class: Viewport
Description
Sets the viewport size.
Viewport:setClip(x,y,width,height)
Parameters
x: (number) x coordinate
y: (number) y coordinate
width: (number) viewport width
height: (number) viewport height