Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Singleton and gl object not handled correctly #207

Closed
cedricpinson opened this issue Dec 30, 2014 · 0 comments
Closed

Singleton and gl object not handled correctly #207

cedricpinson opened this issue Dec 30, 2014 · 0 comments

Comments

@cedricpinson
Copy link
Owner

Singleton and gl object does not handle to instantiate multiple viewer on the same page. The idea is to attach singletong / gl object to the viewer

  • Options should not be singleton in case we instantiate different viewer
  • ShaderGeneratorProxy should not be a singleton too for the same reason
  • TextureManager needs also to be linked to State
  • GUI performance needs also to be instanciate by viewer ( html id issue )

One way could be to add State as parameters and map uniforms in osg.State

cedricpinson pushed a commit that referenced this issue Dec 31, 2014
- Also improve the gui stats to be positioned relative to the Viewer
- It fixes #189 and a part of #207
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant