Hi,
I see different methods used in examples and in forums.
Is the proper "2014 way" to place a single instance on application level where a canvas asks for it when needed.
Or is it best to have an instance in every canvas you might have?
Thanks,
Daniel Dekkers
Best place to put wxGLContext
-
- Experienced Solver
- Posts: 79
- Joined: Wed Aug 15, 2012 8:04 am
Re: Best place to put wxGLContext
It depends on how many window-parameters (colors, buffer depth, etc.) and model data are common to all canvas.
If two canvas differ only in the camera, I would share the context because it saves resources. If they have different models, I prefer to create a context for each window.
If two canvas differ only in the camera, I would share the context because it saves resources. If they have different models, I prefer to create a context for each window.