Add sdl_gpu demo, add more glyph positions and text rendering

This commit is contained in:
Joey Yakimowich-Payne 2020-04-25 15:26:03 -06:00
commit ee2f3065b8
12 changed files with 312 additions and 78 deletions

View file

@ -8,12 +8,12 @@ srcDir = "src"
# Dependencies
requires "nim >= 1.0.0",
requires "nim >= 1.0.6",
"nimterop#head",
"regex >= 0.12.0",
"opengl >= 1.2.2",
"nim-glfw#head",
"sdl2_nim >= 2.0.12.0"
"sdl2"
import os
@ -56,6 +56,10 @@ task buildSDL2ExampleDebug, "Build SDL2 example debug":
let buildDir = setupSDL2()
exec "nimble c --app:gui --debugger:native -o:" & buildDir & "/" & "demo_sdl2_debug".toExe & " -r examples/demo_sdl2.nim"
task buildSDL2GPUExample, "Build SDL2 GPU example":
let buildDir = setupSDL2()
exec "nimble c --app:gui --debugger:native -o:" & buildDir & "/" & "demo_sdl2_gpu".toExe & " -r examples/demo_sdl2_gpu.nim"
task buildGLFWExample, "Build GLFW example":
let buildDir = setupGLFW()
exec "nimble c --app:gui -d:useGlfw -d:release -d:danger -o:" & buildDir & "/" & "demo_glfw".toExe & " -r examples/demo.nim"