Re: Examples/tutorials for OpenGL games which works out-of-the-box on linux

2018-05-20 Thread rikki cattermole via Digitalmars-d-learn

On 20/05/2018 8:06 PM, Prokop Hapala wrote:

Hi,

I'm looking for examples of OpenGL games which I can use as templates 
for making my own stuff. But I'm quite discouraged that everything I 
found on github is probably outdated and fails to compile. Since I'm not 
very familiar with dub environment I don't feel able to correct the 
errors in dependences etc.


e.g.:

* https://github.com/Circular-Studios/Dash (depends on old version of 
vibe.d, when update theĀ  dub.json it gives this error:
source/dash/components/mesh.d(8,19): Error: module `stream` is in file 
'std/stream.d' which cannot be read


Not a dub issue, the module was removed from Phobos.

* https://github.com/d-gamedev-team/opengl-tutorials - depends on some 
libs like `glad-drey,glfw-drey,glwtf-dray` which are perhaps old 
versions of Derelict bindings, but I won't try to set it up


Not registered on dub repo. I don't think it was ever completed.

* https://github.com/Extrawurst/unecht - There is no setup/build readme, 
when I just hit `dub run` I get errors about missing parts
No package file found in 
/home/prokop/git_SW/_Dlang/unecht/submodules/tharsis.prof/, expected one 
of dub.json/dub.sdl/package.json


$ dub build --config=app
Should work for the application.

Tharsis.prof does have a dub file. Did you clone with the submodules 
(requiring sub modules is not ok for dub just an FYI)?


Examples/tutorials for OpenGL games which works out-of-the-box on linux

2018-05-20 Thread Prokop Hapala via Digitalmars-d-learn

Hi,

I'm looking for examples of OpenGL games which I can use as 
templates for making my own stuff. But I'm quite discouraged that 
everything I found on github is probably outdated and fails to 
compile. Since I'm not very familiar with dub environment I don't 
feel able to correct the errors in dependences etc.


e.g.:

* https://github.com/Circular-Studios/Dash (depends on old 
version of vibe.d, when update the  dub.json it gives this error:
source/dash/components/mesh.d(8,19): Error: module `stream` is in 
file 'std/stream.d' which cannot be read


* https://github.com/d-gamedev-team/opengl-tutorials - depends on 
some libs like `glad-drey,glfw-drey,glwtf-dray` which are perhaps 
old versions of Derelict bindings, but I won't try to set it up


* https://github.com/Extrawurst/unecht - There is no setup/build 
readme, when I just hit `dub run` I get errors about missing parts
No package file found in 
/home/prokop/git_SW/_Dlang/unecht/submodules/tharsis.prof/, 
expected one of dub.json/dub.sdl/package.json