Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - thekevinbutler

Pages: [1]
1
Window / Static RenderWindow pointer
« on: December 29, 2015, 08:13:57 am »
Put down the torches! I know we aren't supposed to have a static RenderWindow. I get that. But, will a pointer have the same issue? I've tested it out and it runs fine.

If I may say why I would need multiple objects to have a reference to the main window: Point-and-click mechanics. Passing window as an argument gets heavy since the objects are buried under layers of parent classes that don't necessarily need any window information.

I ask you, is a static RenderWindow pointer bad? Might there be a workaround?

Pages: [1]