Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411430 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 19, 2024, 08:59:53 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)C++ Game Development Templates library
Pages: [1]
Print
Author Topic: C++ Game Development Templates library  (Read 1835 times)
RLofC
Level 0
***



View Profile WWW
« on: February 25, 2017, 10:40:12 AM »

Started working on a new 3D platformer when I realized, yet again, that I want to do everything from scratch  Well, hello there!
So, went about and wrote my own game dev toolkit in C++  Facepalm
Just pushed it to https://github.com/rlofc/GameDevTemplates - might be useful for the adventurous..

« Last Edit: February 25, 2017, 10:48:29 AM by RLofC » Logged

elastico90
Level 0
**


View Profile
« Reply #1 on: February 25, 2017, 01:27:15 PM »

Looks very decent, I'm not into 3D, but I like your code, so I may read it through Smiley
Logged
oahda
Level 10
*****



View Profile
« Reply #2 on: February 26, 2017, 11:29:43 AM »

Heh, the template style to configure the app with backends for things like rendering and so in is very similar to something I've been figuring out lately!
Logged

RLofC
Level 0
***



View Profile WWW
« Reply #3 on: February 26, 2017, 12:30:13 PM »

elastico90 - Thanks! check out my earlier 2D toolkit at http://libcage.org
Prinsessa - it's been a while since I used C++ up until recently - got myself a copy of Effective Modern C++ and went nuts with templates and CRTP. Happy to learn more tricks.
Logged

buto
Level 0
***



View Profile WWW
« Reply #4 on: March 06, 2017, 11:13:21 AM »

It looks nicely designed and coded. However, I wondered if you considered compile times in your design. The larger those template based codes get, the more annoying the compile times tend to be. Especially in experimental game-dev, where frequent recompilation may be necessary, this really is noticeable. This changes if you have a majored code base and data/script based game creation, of course. Just wondering...

Kind regards,
Sebastian
Logged

smartyMARTY
Level 0
**


I write, code, sometimes nicely


View Profile WWW
« Reply #5 on: April 12, 2017, 06:51:17 AM »

I starred it, interesting way to do dependency injection with templates. While I work in C++ I don't get to do it professionally (make sense of that). Any ideas on getting a compute backend put in there?
Logged

RLofC
Level 0
***



View Profile WWW
« Reply #6 on: June 18, 2017, 12:25:30 AM »

@buto, yes, compile time could become an issue Sad I'll have to look deeper into this, especially for the asset classes which could introduce numerous template instances in a single module.
 
@smartyMARTY, thanks! I have very little experience using GPUs for compute. My next step in the project is to write a GPU-based particle system, so I suspect I will have to add some elements of compute-like functionality in.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic