Difference between revisions of "Quad (简体中文)"
(Created page with "这是带纹理坐标信息的四边形。 可以选择纹理的一部分进行绘画。用这种方法,能够读取一张大图 [http://en.wikipedia.org/wiki/Texture_atlas...") |
|||
Line 1: | Line 1: | ||
− | + | 携带纹理坐标信息的矩形区域。 | |
− | + | 矩形区域可以选择纹理的一部分进行绘制。使用这种方法,将一张大图读取进来 [http://en.wikipedia.org/wiki/Texture_atlas texture atlas],切分成一张张的小图片。 | |
− | {{notice| | + | {{notice|矩形区域被缩放、旋转后会失真, rotated or drawn at non-integer coordinates, even within [[SpriteBatch|SpriteBatches]], to compensate for this, use 1px borders around the textures inside the texture atlas (preferably with the same colors as the actual border)}} |
== 建立 == | == 建立 == |
Revision as of 12:45, 9 November 2015
携带纹理坐标信息的矩形区域。
矩形区域可以选择纹理的一部分进行绘制。使用这种方法,将一张大图读取进来 texture atlas,切分成一张张的小图片。
矩形区域被缩放、旋转后会失真, rotated or drawn at non-integer coordinates, even within SpriteBatches, to compensate for this, use 1px borders around the textures inside the texture atlas (preferably with the same colors as the actual border) |
建立
love.graphics.newQuad | Creates a new Quad. |
函数
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. | ||
Quad:flip | Flips this quad horizontally, vertically, or both. | 0.9.0 | |
Quad:getLayer | Gets the layer specified by Quad:setLayer. | 11.0 | |
Quad:getTextureDimensions | Gets reference texture dimensions initially specified in love.graphics.newQuad. | 0.10.2 | |
Quad:getViewport | Gets the current viewport of this Quad. | ||
Quad:setLayer | Sets the layer to use in Array Textures. | 11.0 | |
Quad:setViewport | Sets the texture coordinates according to a viewport. |
父类
更多信息
其他语言
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info