Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

sab3156

RC and DC

This topic is 5736 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have two probably simple questions.. what is a rendering context? what is a device context? i am just beginning opengl programming. thanks.

Share this post


Link to post
Share on other sites
Advertisement
When I started OpenGL with NeHe''s tutorials, I just ignored them as something that is for windows. I say that you can just copy and paste that code because it is essentially the same for all projects ever made.

Share this post


Link to post
Share on other sites
The device context is a way that the windows program refers to the device you are attaching to. Could it possibly get any more vague? Another way of explaining it is through the device context you would be able to access simple graphics functions like those within GDI, and affect the display in various ways simply by using the device context as a parameter.

The rendering context, which is created after the device context, and uses the device context as a parameter in its creation, is the pathway through which OpenGL refers to whatever resources are required to render 3D scenes.

Other than that, you can pretty much ignore them. You create them in the beginning, and get rid of them in the end. OpenGL does the rest.

[edited by - Waverider on November 5, 2002 1:44:16 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!