Multiple Views Sharing Some Data

Started by
0 comments, last by swiftcoder 16 years, 2 months ago
I've spent some time digging and I'm not pulling what I need. Is there a general way in opengl to have multiple views of shared rendering data? What I mean is something like this. In window A, I have 3 Textures being rendered. In window B, I'm rendering only two of those textures, but with the same model data. Do I in essence have to load 5 of the six textures twice, one for each opengl rendering context? And the same for models? Can I share model's vertices across different views, but not necessarially render the same scene in each view? Thanks in advance...
Advertisement
Most OpenGL windowing APIs allow you to 'share contexts', i.e. initialise two or more contexts that use the same textures, VBOs, etc. but maintain different state.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement