Add sdl_gpu demo, add more glyph positions and text rendering
This commit is contained in:
parent
458d0ea598
commit
ee2f3065b8
12 changed files with 312 additions and 78 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue