Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


thefatshizms

Member Since 05 Jul 2013
Offline Last Active Sep 17 2014 01:00 AM

Posts I've Made

In Topic: class design

04 September 2014 - 01:23 PM

I seem to keep confusing myself. I've also been looking at this: http://code.google.com/p/gamecode4/source/browse/trunk/Source/GCC4/Graphics3D/

But the way they do it seems to confuse me in parts as well

In Topic: class design

02 September 2014 - 02:46 PM

Ah okay now I understand. Yes a scene class is what I need... How would I implement it? How would I invoke Render() of everything it contains?

In Topic: class design

02 September 2014 - 12:49 PM

Update:

Been reading my c++ book and there seems to be stuff in there about creating an application framework how I want. Now the only problem is how do I get my main loop to call a Render() function that will call all class render derivations of that function. I've seen some people do it (though can't remember where) by putting adresses of classes/objects or something within a vector and then looping through the vector to call all the Render() functions (or something like that).

In Topic: class design

02 September 2014 - 12:00 PM

I don't understand how that would allow me to call all OnRender etc functions within the main loop.

@Jason would you mind giving me a quick example? Thanks.

In Topic: class design

02 September 2014 - 06:58 AM

Thanks for the reply sean. I think I now understand. About the code, I can't seem to get it working... It seems that the virtual function isn't being called (DoRender() though OnRender does) inside the main loop.

PARTNERS