First texture rendering (if broken)
This commit is contained in:
@@ -11,14 +11,20 @@ module('glm')
|
||||
screenSetBackground(colorLime())
|
||||
mapCamera = cameraCreate()
|
||||
text = "Hello, Dusk!"
|
||||
|
||||
x = -35
|
||||
y = 0
|
||||
|
||||
function sceneDispose()
|
||||
end
|
||||
function sceneUpdate()
|
||||
end
|
||||
function sceneRender()
|
||||
mapCamera.position = vec3(4, 4, 4)
|
||||
mapCamera.position = vec3(50, 50, 50)
|
||||
cameraPushMatrix(mapCamera)
|
||||
spriteBatchPush(nil, -1, -1, 1, 1, colorBlue())
|
||||
|
||||
textDraw(x, y, text, colorBlue())
|
||||
|
||||
spriteBatchFlush()
|
||||
cameraPopMatrix()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user