Test text rendering
This commit is contained in:
@@ -63,7 +63,7 @@ function cellDraw(x, y, type)
|
||||
slice = cellSliceDisabled
|
||||
end
|
||||
|
||||
spriteBatchPush(textureCell,
|
||||
spriteBatchPush(
|
||||
x, y,
|
||||
x + tilesetCell.tileWidth, y + tilesetCell.tileHeight,
|
||||
colorWhite(),
|
||||
@@ -185,7 +185,8 @@ end
|
||||
|
||||
function sceneRender()
|
||||
-- Update camera
|
||||
camera.bottom = screenGetHeight()
|
||||
camera.bottom = 0
|
||||
camera.top = screenGetHeight()
|
||||
camera.right = screenGetWidth()
|
||||
|
||||
shaderBind(SHADER_UNLIT)
|
||||
@@ -194,11 +195,13 @@ function sceneRender()
|
||||
view = cameraGetViewMatrix(camera)
|
||||
shaderSetMatrix(SHADER_UNLIT, SHADER_UNLIT_VIEW, view)
|
||||
|
||||
spriteBatchPush(
|
||||
x, y,
|
||||
x + 32, y + 32,
|
||||
colorWhite()
|
||||
)
|
||||
textDraw(10, 10, "Hello World\nHow are you?")
|
||||
|
||||
-- spriteBatchPush(
|
||||
-- x, y,
|
||||
-- x + 32, y + 32,
|
||||
-- colorWhite()
|
||||
-- )
|
||||
|
||||
-- Update mouse position
|
||||
-- if INPUT_POINTER then
|
||||
|
||||
Reference in New Issue
Block a user