Sign in to follow this  


Recommended Posts

Hi I have a little problem figuring out at how i should render the object in opengl game.
I have useally make it so that object contains a pointer to model which contains a mesh or a multiple mesh. Objects are in list in scene. Scene has method Render whitch call objects render method, whits calls model render method and model calls mesh render method. Mesh has vertex array object handler, texture handler and shader handler. If i have understand correctly the rendering should separate from object, but how this should do?
i'm also wondered that i probably should separate mesh and the opengl vertex array object but where i should put the VAO?
I'm sory if this is confused and contains a lot of spelling errors. My english language skill isn't best one. I hope you can understund.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this