It looks like you're new here. If you want to get involved, click one of these buttons!
function Layout.new(p, d) local self = Mesh.new() Mesh.setIndexArray(self, 1, 2, 3, 1, 3, 4) Mesh.setVertices(self, 1,0,0, 2,0,0, 3,0,0, 4,0,0) setmetatable(self, Layout) self.backup = {} for k,v in pairs(p) do if tonumber(k) then self:addChild(self.ext and self:ext(v) or v) elseif Layout[k] ~= nil or (d and d[k] ~= nil) then self[k] = v else error("Layout: unknown key `"..tostring(k).."`", 2) end end if self.init then self:init(p) end if self.texture then self:setTexture(self.texture) end |
Comments
http://docs.giderosmobile.com/reference/gideros/TextureRegion#TextureRegion
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
TextureRegion.new is used to define a new texture region from the whole specified texture (1 param) or from a portion of it (4 params).