Skip to content

Commit

Permalink
proper versions in nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 committed Oct 26, 2017
1 parent 5c57671 commit 0ad0313
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples-run
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# always change into the directory of the script so that it doesn't
# matter for where the script is called
# Always change into the directory of the script so that it doesn't
# matter for the script from where is called.
cd "$( dirname "${BASH_SOURCE[0]}" )"

if nimble build; then
Expand Down
10 changes: 2 additions & 8 deletions examples/tetris.nim
Original file line number Diff line number Diff line change
Expand Up @@ -376,16 +376,10 @@ proc validBlockPos(pos: Vec2i, rot,typ: int): bool =

return true



proc getPrefPath(): string =
var cstr = getPrefPath("Arne Döring GmbH", "Tetris")
var cstr: cstring = getPrefPath("Arne Döring GmbH", "Tetris")
result = $cstr
when compiles(free(cstr)):
free(cstr) # from sdl2
else:
warning("memory leak detected")
echo result
free(cstr) # free from sdl not the free equivalent in system

let prefPath = getPrefPath()

Expand Down
11 changes: 3 additions & 8 deletions fancygl.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[ Package ]#

version = "0.2.1"
version = "0.3.1"
author = "Arne Döring"
description = "nice way of handling render code"
license = "MIT"
Expand All @@ -26,11 +26,6 @@ bin = @[
"examples/waves"
]

#kdtree
#octree
#openmesh
#test_animation_code.nim

skipDirs = @["tests"]

#[ Dependencies ]#
Expand All @@ -39,7 +34,7 @@ requires @[
"nim >= 0.17.3",
"opengl >= 1.1.0",
"AntTweakBar >= 1.0.0",
"sdl2_nim >= 2.0.6.1",
"glm >= 1.0.1"
#"fftw3 >= 0.1.0", # add this if you want audiotest to work
"sdl2_nim#head",
"glm#head"
]

0 comments on commit 0ad0313

Please sign in to comment.