Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

Game development walkthrough: A simple example using Bare Game

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dmitry Boyarintsev
to Anthony Walter

Criticism: mixing low-level opengl functions with higher-level APIs is a bad design.
Either higher-level apis needs to be updated to allow the desired functionality(which is achieved by direct calling gl functions) or not used at all.

thanks,
Dmitry

Anthony Walter wrote 11 lines
A walkthrough of the new draw example in Bare Game is here: http://www.getlazarus.org/videos/baregame/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150209/fc1b2956/attachment.html>

Reply by email

Anthony Walter
to Dmitry Boyarintsev

1) as noted in the source, for that case you could use the camera instead
2) being minimal, there will always be places where opengl makes sense, like if someone wanted to make a shadow map implementation using a stencil buffer, or if someone wanted to make bone animations using a quaternions interweaved with vertex data, i will not provide every possible concept neatly wrapped in a class. as such you're free to mix in opengl whenever without restriction, which is what the small example is demonstrating at that point
3) it's called Bare Game, as in it's minimal
4) if you think the design is bad, look at the documentation, then decide

http://www.baregame.org/#bare_game
http://www.baregame.org/#bare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150209/e8c3e048/attachment.html>

Reply by email

Dmitry Boyarintsev
to Anthony Walter

The GL wrapper (bare.games in this case ) depends on the GL settings not to be modified outside of it. The example does the exact hack. The functionality can be achieved should be implemented using Cameras, then the example should show it. Camer should be in "minimal" set for APIs

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150209/80211719/attachment-0001.html>

Reply by email