Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualGeometrian

Posted 25 April 2013 - 10:00 AM

Why are you creating a dummy window?
That should be done only if you need multisampling without FBO, in order to find appropriate pixel format.

That's actually the eventual plan.

However, the real reason is to make the design cleaner. Contexts require a window to be created, but this supposes that that window will be around forever. The way I've structured the architecture is to have a context wrapper object contain its own invisible window. So, the window that "owns" the context is guaranteed to be around for as long as the life of the context. This allows the user to create and destroy windows at will without affecting the context's existence.

 

In all other cases, you should do the following:
[...]

Don't I need to load extensions before using wglCreateContextAttribsARB?


#3Geometrian

Posted 25 April 2013 - 09:58 AM

Why are you creating a dummy window?
That should be done only if you need multisampling without FBO, in order to find appropriate pixel format.

That's actually the eventual plan.

However, the real reason is to make the design cleaner. Contexts require a window to be created, but this supposes that that window will be around forever. The way I've structured the architecture is to have a context wrapper object contain its own invisible window. So, the window that "owns" the context is guaranteed to be around for as long as the life of the context. It also allows the user to create and destroy windows at will.

 

In all other cases, you should do the following:
[...]

Don't I need to load extensions before using wglCreateContextAttribsARB?


#2Geometrian

Posted 25 April 2013 - 09:56 AM

Why are you creating a dummy window?
That should be done only if you need multisampling without FBO, in order to find appropriate pixel format.

That's actually the eventual plan.

However, the real reason is to make the design cleaner. Contexts require a window to be created, but this supposes that that window will be around forever. The way I've structured the architecture instead is to have a context wrapper object contain its own invisible window. That way, the existence of the context is independent of any windows that the user wants to create/destroy.

In all other cases, you should do the following:
[...]

Don't I need to load extensions before using wglCreateContextAttribsARB?


#1Geometrian

Posted 25 April 2013 - 09:53 AM

Why are you creating a dummy window?
That should be done only if you need multisampling without FBO, in order to find appropriate pixel format.[/quote]That's actually the eventual plan. However, the real reason is to make the design cleaner. Contexts require a window to be created, but this supposes that that window will be around forever.

The way I've structured the architecture instead is to have a context wrapper object own its own invisible window. That way, the existence of the context is independent of any windows the user wants to create/destroy.[/quote]In all other cases, you should do the following:
[...][/quote]Don't I need to load extensions before using wglCreateContextAttribsARB?


PARTNERS