<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.oxeyegames.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SetScissorClip</id>
		<title>SetScissorClip - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SetScissorClip"/>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;action=history"/>
		<updated>2026-04-13T06:50:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;diff=369&amp;oldid=prev</id>
		<title>Thewreck at 02:05, 25 January 2010</title>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;diff=369&amp;oldid=prev"/>
				<updated>2010-01-25T02:05:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 02:05, 25 January 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{VideoMethod&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{VideoMethod&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;video.setScissorClip(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;x&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;y&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;width&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;height&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;video.setScissorClip(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;left&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;top&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;right&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bottom&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sets the video device's &amp;quot;scissor clip&amp;quot; area. This area is a rectangle on the screen in which rendering should be allowed. All pixels that are rendered outside of this rectangle will not be displayed.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sets the video device's &amp;quot;scissor clip&amp;quot; area. This area is a rectangle on the screen in which rendering should be allowed. All pixels that are rendered outside of this rectangle will not be displayed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thewreck</name></author>	</entry>

	<entry>
		<id>http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;diff=368&amp;oldid=prev</id>
		<title>Jeb at 10:14, 24 January 2010</title>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;diff=368&amp;oldid=prev"/>
				<updated>2010-01-24T10:14:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:14, 24 January 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Use [[clearScissorClip]] to reset the clip again.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Use [[clearScissorClip]] to reset the clip again.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;x&lt;/del&gt;|An integer|The left edge of the rectangle.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;left&lt;/ins&gt;|An integer|The left edge of the rectangle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(inclusive)&lt;/ins&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;y&lt;/del&gt;|An integer|The top edge of the rectangle.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;top&lt;/ins&gt;|An integer|The top edge of the rectangle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(inclusive)&lt;/ins&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;width&lt;/del&gt;|An integer|The &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;width &lt;/del&gt;of the rectangle.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;right&lt;/ins&gt;|An integer|The &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;right edge &lt;/ins&gt;of the rectangle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(exclusive)&lt;/ins&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;height&lt;/del&gt;|An integer|The &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;height &lt;/del&gt;of the rectangle.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bottom&lt;/ins&gt;|An integer|The &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bottom edge &lt;/ins&gt;of the rectangle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(exclusive)&lt;/ins&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Returns nothing.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Returns nothing.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jeb</name></author>	</entry>

	<entry>
		<id>http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;diff=27&amp;oldid=prev</id>
		<title>Jeb: Created page with '{{VideoMethod | video.setScissorClip(x, y, width, height) | Sets the video device's &quot;scissor clip&quot; area. This area is a rectangle on the screen in which rendering should be allow...'</title>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=SetScissorClip&amp;diff=27&amp;oldid=prev"/>
				<updated>2009-03-05T07:50:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;{{VideoMethod | video.setScissorClip(x, y, width, height) | Sets the video device&amp;#39;s &amp;quot;scissor clip&amp;quot; area. This area is a rectangle on the screen in which rendering should be allow...&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{VideoMethod&lt;br /&gt;
|&lt;br /&gt;
video.setScissorClip(x, y, width, height)&lt;br /&gt;
|&lt;br /&gt;
Sets the video device's &amp;quot;scissor clip&amp;quot; area. This area is a rectangle on the screen in which rendering should be allowed. All pixels that are rendered outside of this rectangle will not be displayed.&lt;br /&gt;
&lt;br /&gt;
The scissor clip can be used, for example, to create split-screen multiplayer. To do this, render the whole game twice, using an on-screen off-set for the second half. See the example below.&lt;br /&gt;
&lt;br /&gt;
Use [[clearScissorClip]] to reset the clip again.&lt;br /&gt;
|&lt;br /&gt;
{{MethodParam|x|An integer|The left edge of the rectangle.}}&lt;br /&gt;
{{MethodParam|y|An integer|The top edge of the rectangle.}}&lt;br /&gt;
{{MethodParam|width|An integer|The width of the rectangle.}}&lt;br /&gt;
{{MethodParam|height|An integer|The height of the rectangle.}}&lt;br /&gt;
|&lt;br /&gt;
Returns nothing.&lt;br /&gt;
}}&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local function renderSplit(offsetX, offsetY)&lt;br /&gt;
   -- render all sprites etc&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderAll()&lt;br /&gt;
&lt;br /&gt;
   local screenW, screenH = video.getScreenSize()&lt;br /&gt;
&lt;br /&gt;
   -- split vertically (one view on the left and one on the right)&lt;br /&gt;
   local halfWidth = screenW / 2&lt;br /&gt;
&lt;br /&gt;
   -- render player A's view&lt;br /&gt;
   video.setScissorClip(0, 0, halfWidth, screenH)&lt;br /&gt;
   renderSplit(0, 0)&lt;br /&gt;
&lt;br /&gt;
   -- render player B's view&lt;br /&gt;
   video.setScissorClip(halfWidth, 0, screenW, screenH)&lt;br /&gt;
   renderSplit(halfWidth, 0)&lt;br /&gt;
&lt;br /&gt;
   -- reset clip&lt;br /&gt;
   video.clearScissorClip()&lt;br /&gt;
&lt;br /&gt;
   -- render shared stuff here, such as top layer GUI etc&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeb</name></author>	</entry>

	</feed>