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.
rendering
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement