Difference between revisions of "Viewport:setClip"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 6: Line 6:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
Viewport:setClip(x,y,width,height)
 
Viewport:setClip(x,y,width,height)
</source>
+
</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