mirror of https://github.com/axmolengine/axmol.git
issue #3626:Add namespace’s support for manual lua binding functions for classes related OpenGL and update the related test cases
This commit is contained in:
parent
fdac224a7b
commit
811aa69d39
|
@ -1 +1 @@
|
|||
bcec27eb626dbcf63b810cce7f0f48b2d02c2158
|
||||
bc70bac577759c95fbcf25da6937dbd9109da8d5
|
|
@ -147,7 +147,7 @@ local function OpenGLTestMainLayer()
|
|||
local i = 0
|
||||
local len = table.getn(children)
|
||||
for i= 0 ,len - 1 do
|
||||
local child = tolua.cast(children[i + 1], "Sprite")
|
||||
local child = tolua.cast(children[i + 1], "cc.Sprite")
|
||||
local oldPosX,oldPosY = child:getPosition()
|
||||
child:setPosition(oldPosX,math.sin(accum * 2 + i / 2.0) * 20)
|
||||
local scaleY = math.sin(accum * 2 + i / 2.0 + 0.707)
|
||||
|
@ -558,7 +558,7 @@ local function OpenGLTestMainLayer()
|
|||
|
||||
local function getCurrentResult()
|
||||
local var = {}
|
||||
local glProgam = tolua.cast(sprite:getShaderProgram(),"GLProgram")
|
||||
local glProgam = tolua.cast(sprite:getShaderProgram(),"cc.GLProgram")
|
||||
if nil ~= glProgam then
|
||||
local p = glProgam:getProgram()
|
||||
local aaSize,aaType,aaName = gl.getActiveAttrib(p,0)
|
||||
|
|
Loading…
Reference in New Issue