Пример #1
0
        /// <summary>
        /// Removes and destroys a ManualObject from the SceneManager.
        /// </summary>
        /// <param name="obj">The object to destroy.</param>
        public void destroyManualObject(ManualObject obj)
        {
            IntPtr ogreManual = obj.OgreObject;

            manualObjects.destroyObject(ogreManual);
            SceneManager_destroyManualObject(ogreSceneManager, ogreManual);
        }
Пример #2
0
        public void destroyStaticGeometry(StaticGeometry obj)
        {
            IntPtr ptr = obj.Ptr;

            staticGeometries.destroyObject(ptr);
            SceneManager_destroyStaticGeometry(ogreSceneManager, ptr);
        }
Пример #3
0
        /// <summary>
        /// Destroys the Entity passed.
        /// </summary>
        /// <param name="entity">The Entity to destroy.</param>
        public void destroyEntity(Entity entity)
        {
            IntPtr ogreEntity = entity.OgreObject;

            entities.destroyObject(ogreEntity);
            SceneManager_destroyEntity(ogreSceneManager, ogreEntity);
        }
Пример #4
0
        /// <summary>
        /// Destroys the passed camera
        /// </summary>
        /// <param name="camera">The camera to destroy.</param>
        public void destroyCamera(Camera camera)
        {
            IntPtr ogreCamera = camera.OgreObject;

            cameras.destroyObject(ogreCamera);
            SceneManager_destroyCamera(ogreSceneManager, ogreCamera);
        }
Пример #5
0
        /// <summary>
        /// Destroys the passed light
        /// </summary>
        /// <param name="light">The light to destroy.</param>
        public void destroyLight(Light light)
        {
            IntPtr ogreLight = light.OgreObject;

            lights.destroyObject(ogreLight);
            SceneManager_destroyLight(ogreSceneManager, ogreLight);
        }
Пример #6
0
        /// <summary>
        /// Removes an Animation from this skeleton.
        /// </summary>
        /// <param name="name">The name of the animation to remove.</param>
        public void removeAnimation(String name)
        {
            IntPtr ogreAnim = Skeleton_getAnimation(skeleton, name);

            animations.destroyObject(ogreAnim);
            Skeleton_removeAnimation(skeleton, name);
        }
Пример #7
0
 static void widgetDestructor(IntPtr widget)
 {
     if (MyGUIInterface.TrackMemoryLeaks)
     {
         allocationStackTraces.Remove(widget);
     }
     widgets.destroyObject(widget);
 }
Пример #8
0
        /// <summary>
        /// Unload a layout. This will remove it from the scene and cleanup all
        /// pointers and wrapper classes.
        /// </summary>
        /// <param name="layout">The layout to destroy.</param>
        public void unloadLayout(Layout layout)
        {
            IntPtr vectorWidgetPtr = layout.VectorWidgetPtr;

            LayoutManager_unloadLayout(layoutManager, layouts.destroyObject(vectorWidgetPtr));
            //The loadLayout functions will return a new VectorWidgetPtr on the heap so it must be deleted here.
            VectorWidgetPtr_Delete(vectorWidgetPtr);
        }
        public override void removeKeyFrame(ushort index)
        {
            switch (VertexAnimationTrack_getAnimationType(animationTrack))
            {
            case VertexAnimationType.VAT_MORPH:
                morphKeyFrames.destroyObject(VertexAnimationTrack_getKeyFrame(animationTrack, index));
                break;

            case VertexAnimationType.VAT_POSE:
                poseKeyFrames.destroyObject(VertexAnimationTrack_getKeyFrame(animationTrack, index));
                break;

            default:
                throw new NotImplementedException();
            }
            VertexAnimationTrack_removeKeyFrame(animationTrack, index);
        }
Пример #10
0
 public static IntPtr destroyViewport(Viewport vp)
 {
     return(viewports.destroyObject(vp.OgreViewport));
 }
Пример #11
0
 public override void removeKeyFrame(ushort index)
 {
     keyFrames.destroyObject(NodeAnimationTrack_getKeyFrame(animationTrack, index));
     NodeAnimationTrack_removeKeyFrame(animationTrack, index);
 }
Пример #12
0
 /// <summary>
 /// Remove animation state with the given name.
 /// </summary>
 /// <param name="name">The name of the state to remove.</param>
 public void removeAnimationState(String name)
 {
     states.destroyObject(AnimationStateSet_getAnimationState(animationStateSet, name));
     AnimationStateSet_removeAnimationState(animationStateSet, name);
 }
Пример #13
0
 public void removeTechnique(ushort index)
 {
     techniques.destroyObject(Material_getTechniqueIndex(resource, index));
     Material_removeTechnique(resource, index);
 }
Пример #14
0
 public void removePose(ushort index)
 {
     poses.destroyObject(Mesh_getPose(resource, index));
     Mesh_removePose(resource, index);
 }
Пример #15
0
 /// <summary>
 /// Destroys the numeric track with the given handle.
 /// </summary>
 /// <param name="handle">The numeric track to destroy.</param>
 public void destroyNumericTrack(ushort handle)
 {
     numericAnimations.destroyObject(Animation_getNumericTrack(animation, handle));
     Animation_destroyNumericTrack(animation, handle);
 }
Пример #16
0
 public void removePass(ushort index)
 {
     passes.destroyObject(Technique_getPass(technique, index));
     Technique_removePass(technique, index);
 }
Пример #17
0
 internal static void destroyManagedNode(SceneNode sceneNode)
 {
     sceneNodes.destroyObject(sceneNode.ogreNode);
 }
Пример #18
0
 /// <summary>
 /// Destroys the node track with the given handle.
 /// </summary>
 /// <param name="handle">The node track to destroy.</param>
 public void destroyNodeTrack(ushort handle)
 {
     nodeAnimations.destroyObject(Animation_getNodeTrack(animation, handle));
     Animation_destroyNodeTrack(animation, handle);
 }
Пример #19
0
 static void elementDestructor(IntPtr element)
 {
     elements.destroyObject(element);
 }
Пример #20
0
 /// <summary>
 /// Destroys the Vertex track with the given handle.
 /// </summary>
 /// <param name="handle">The vertex track to destroy.</param>
 public void destroyVertexTrack(ushort handle)
 {
     vertexAnimations.destroyObject(Animation_getVertexTrack(animation, handle));
     Animation_destroyVertexTrack(animation, handle);
 }
Пример #21
0
 /// <summary>
 /// Remove the element at the given index from this declaration.
 /// </summary>
 /// <param name="elemIndex">The element to remove.</param>
 public void removeElement(ushort elemIndex)
 {
     vertexElements.destroyObject(VertexDeclaration_getElement(vertexDeclaration, elemIndex));
     VertexDeclaration_removeElement(vertexDeclaration, elemIndex);
 }
Пример #22
0
 static void contextDestructor(IntPtr context)
 {
     contexts.destroyObject(context);
 }
Пример #23
0
 public void removeTextureUnitState(ushort index)
 {
     textureUnits.destroyObject(Pass_getTextureUnitStateIdx(pass, index));
     Pass_removeTextureUnitState(pass, index);
 }
 public IntPtr deleteWrapper(IntPtr widget)
 {
     return(wrappers.destroyObject(widget));
 }
Пример #25
0
 public void removeAnimation(String name)
 {
     animations.destroyObject(Mesh_getAnimation(resource, name));
     Mesh_removeAnimation(resource, name);
 }