|
| function | clone (local newName) |
| |
| function | create (local name, local texture, local x, local y, local w, local h, local a, local b, local colliType) |
| |
| function | createWithSprite (local name, local sprite, local a, local b, local colliType) |
| |
| function | getInfo () |
| |
| function | getNormalMap () |
| |
| function | getSprite () |
| |
| function | getTexture () |
| |
| function | render (local x, local y, local rot, local hscale, local vscale, local z) |
| |
| function | render4v (local x1, local y1, local z1, local x2, local y2, local z2, local x3, local y3, local z3, local x4, local y4, local z4) |
| |
| function | renderRect (local x1, local y1, local x2, local y2) |
| |
| function | setNormalMap (local texture) |
| |
| function | getColor () |
| |
| function | getInfo () |
| |
| function | getRenderMode () |
| |
| function | getVertex () |
| |
| function | setAlpha (local alpha) |
| |
| function | setColor (local color, local i) |
| |
| function | setRenderMode (local m) |
| |
| function | setVertex (local v) |
| |
| function | getColliderType () |
| |
| function | getHalfSizeX () |
| |
| function | getHalfSizeY () |
| |
| function | getInfo () |
| |
| function | getInfo () |
| |
| function | getName () |
| |
| function | getPath () |
| |
| function | getType () |
| |
◆ clone()
◆ create()
◆ createWithSprite()
- Parameters
-
| name | string |
| sprite | cc.Sprite |
| a | number |
| b | number |
| colliType | number |
- Returns
- lstg.ResSprite
◆ getInfo()
◆ getNormalMap()
◆ getSprite()
◆ getTexture()
◆ render()
- Parameters
-
| x | number |
| y | number |
| rot | number |
| hscale | number |
| vscale | number |
| z | number |
- Returns
- boolean
◆ render4v()
| function render4v |
( |
local |
x1, |
|
|
local |
y1, |
|
|
local |
z1, |
|
|
local |
x2, |
|
|
local |
y2, |
|
|
local |
z2, |
|
|
local |
x3, |
|
|
local |
y3, |
|
|
local |
z3, |
|
|
local |
x4, |
|
|
local |
y4, |
|
|
local |
z4 |
|
) |
| |
- Parameters
-
| x1 | number |
| y1 | number |
| z1 | number |
| x2 | number |
| y2 | number |
| z2 | number |
| x3 | number |
| y3 | number |
| z3 | number |
| x4 | number |
| y4 | number |
| z4 | number |
- Returns
- boolean
◆ renderRect()
- Parameters
-
| x1 | number |
| y1 | number |
| x2 | number |
| y2 | number |
- Returns
- boolean
◆ setNormalMap()
The documentation for this class was generated from the following file: