/// <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); }
public void destroyStaticGeometry(StaticGeometry obj) { IntPtr ptr = obj.Ptr; staticGeometries.destroyObject(ptr); SceneManager_destroyStaticGeometry(ogreSceneManager, ptr); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
static void widgetDestructor(IntPtr widget) { if (MyGUIInterface.TrackMemoryLeaks) { allocationStackTraces.Remove(widget); } widgets.destroyObject(widget); }
/// <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); }
public static IntPtr destroyViewport(Viewport vp) { return(viewports.destroyObject(vp.OgreViewport)); }
public override void removeKeyFrame(ushort index) { keyFrames.destroyObject(NodeAnimationTrack_getKeyFrame(animationTrack, index)); NodeAnimationTrack_removeKeyFrame(animationTrack, index); }
/// <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); }
public void removeTechnique(ushort index) { techniques.destroyObject(Material_getTechniqueIndex(resource, index)); Material_removeTechnique(resource, index); }
public void removePose(ushort index) { poses.destroyObject(Mesh_getPose(resource, index)); Mesh_removePose(resource, index); }
/// <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); }
public void removePass(ushort index) { passes.destroyObject(Technique_getPass(technique, index)); Technique_removePass(technique, index); }
internal static void destroyManagedNode(SceneNode sceneNode) { sceneNodes.destroyObject(sceneNode.ogreNode); }
/// <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); }
static void elementDestructor(IntPtr element) { elements.destroyObject(element); }
/// <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); }
/// <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); }
static void contextDestructor(IntPtr context) { contexts.destroyObject(context); }
public void removeTextureUnitState(ushort index) { textureUnits.destroyObject(Pass_getTextureUnitStateIdx(pass, index)); Pass_removeTextureUnitState(pass, index); }
public IntPtr deleteWrapper(IntPtr widget) { return(wrappers.destroyObject(widget)); }
public void removeAnimation(String name) { animations.destroyObject(Mesh_getAnimation(resource, name)); Mesh_removeAnimation(resource, name); }