29 lines
412 B
Lua
29 lines
412 B
Lua
module('spritebatch')
|
|
-- module('time')
|
|
module('camera')
|
|
-- module('glm')
|
|
module('color')
|
|
|
|
camera = cameraCreate(CAMERA_PROJECTION_TYPE_PERSPECTIVE)
|
|
|
|
function sceneDispose()
|
|
-- print('Disposing initial scene')
|
|
end
|
|
|
|
function sceneUpdate()
|
|
|
|
end
|
|
|
|
function sceneRender()
|
|
cameraPushMatrix(camera)
|
|
|
|
spriteBatchPush(
|
|
nil,
|
|
0, 0,
|
|
1, 2,
|
|
colorBlue()
|
|
)
|
|
spriteBatchFlush()
|
|
|
|
cameraPopMatrix()
|
|
end |