示例#1
0
 /// <summary>
 /// Free resources used by OpenGL
 /// </summary>
 public void destroy()
 {
     SelectManager.FreeGUID(myGUID);
     foreach (VBOMesh mesh in models)
     {
         mesh.destroy();
     }
 }
示例#2
0
        /// <summary>
        /// Create a new OGL_RigidNode from existing data
        /// </summary>
        /// <remarks>
        /// This is used primarily for converting another subclass of RigidNode_Base to an OGL_RigidNode.
        /// For conversion from a RigidNode_Base, casting will suffice.
        /// </remarks>
        /// <param name="baseData">The rigid node containing existing model data</param>
        public OGL_RigidNode(RigidNode_Base baseData)
            : base(baseData.GUID)
        {
            myGUID        = SelectManager.AllocateGUID(this);
            ModelFullID   = baseData.ModelFullID;
            ModelFileName = baseData.ModelFileName;

            foreach (KeyValuePair <SkeletalJoint_Base, RigidNode_Base> child in baseData.Children)
            {
                AddChild(child.Key, new OGL_RigidNode(child.Value));
            }
        }
示例#3
0
 /// <summary>
 /// Create a blank OGL_RigidNode with a unique GUID
 /// </summary>
 public OGL_RigidNode(Guid guid)
     : base(guid)
 {
     myGUID = SelectManager.AllocateGUID(this);
 }