Sets the texture coordinates according to a viewport.

== 関数 ==
=== 概要 ===
<source lang="lua">
Quad:setViewport( x, y, w, h, sw, sh )
</source>
=== 引数 ===
{{param (日本語)|number|x|The top-left corner along the x-axis.}}
{{param (日本語)|number|y|The top-left corner along the y-axis.}}
{{param (日本語)|number|w|The width of the viewport.}}
{{param (日本語)|number|h|The height of the viewport.}}
{{New feature (日本語)|0.9.0|
{{param (日本語)|number|sw|The reference width, the width of the [[Image]]. (Must be greater than 0.)}}
{{param (日本語)|number|sh|The reference height, the height of the [[Image]]. (Must be greater than 0.)}}
}}
=== 返値 ===
ありません。

== 関連 ==
* [[parent::Quad (日本語)]]
* [[Quad:getViewport (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sets the texture coordinates according to a viewport.}}
{{#set:Since=000}}

== そのほかの言語 ==
{{i18n (日本語)|Quad:setViewport}}