Class SoBaseContextObject


  • public class SoBaseContextObject
    extends Inventor
    Context dependent object management class. A helper base class used to store context dependent objects.
    • Constructor Detail

      • SoBaseContextObject

        public SoBaseContextObject​(SoDeviceContextSharedGroup sharedContextGroup)
        Constructor.

        Parameters:
        sharedContextGroup - context shared group from which it depends.
    • Method Detail

      • release

        public void release()
        This function is called by the attached context when it has been requested to delete the context through the SoDeviceContext.dispose() method. As some object might be still attached, it triggers all attached object release() method to ask them to detach (and then get it refcount to zero).
      • getContextSharedGroup

        public SoDeviceContextSharedGroup getContextSharedGroup()
        Returns the OpenGL context in which the OpenGL objects were created.