Jump to content
  • Advertisement
Sign in to follow this  

OpenGL MFC Document/View and OpenGL model loading and drawing..

This topic is 2091 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

Hi there,


I've gone ahead with setting up an MFC application through the visual studio wizard. So far with my MFC app I've initialised everything, wrapped OpenGL into a class held by the view, and I won blue from glClearColour() :)

I've got other projects with model loaders and OpenGL rendering, and a nice wrapper for shaders with ->SetUniformMat4() etc

So what goes where in terms of loading a model, and drawing it? We have the geometry from the file, the VAO created from said geometry, and the shader used to render the VAO.

I get that the view draws its document, and that a document can have more than one view..


I think I'm looking at having a scenegraph in the document that the view can render, yes? (I've got some code for this anyways)


So the document should be responsible for initialising GL VAOs, VBOs.. and rendering them? Or the View? Help?


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!