public bool MoveNext() { var count = VectorSharedPtr_Count(handle); if (count < 1 || count <= index) { return(false); } current = Runtime.LookupRefCounted <U>(VectorSharedPtr_GetIdx(handle, index)); index++; return(true); }
/// <summary> /// Return render surface. /// </summary> private RenderSurface GetRenderSurface() { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <RenderSurface> (Texture2DArray_GetRenderSurface(handle))); }
/// <summary> /// Return animation state by index. /// </summary> public AnimationState GetAnimationState(uint index) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <AnimationState> (AnimatedModel_GetAnimationState8(handle, index))); }
/// <summary> /// Return animation state by animation name. /// </summary> public AnimationState GetAnimationState(string animationName) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <AnimationState> (AnimatedModel_GetAnimationState6(handle, animationName))); }
/// <summary> /// Create an object by type hash. Return pointer to it or null if no factory found. /// </summary> public UrhoObject CreateObject(StringHash objectType) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <UrhoObject> (Context_CreateObject(handle, objectType.Code))); }
/// <summary> /// Clone the material. /// </summary> public Material Clone(string cloneName) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Material> (Material_Clone(handle, cloneName))); }
/// <summary> /// Return subsystem by type. /// </summary> public Urho.UrhoObject GetSubsystem(StringHash type) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Urho.UrhoObject> (Context_GetSubsystem(handle, type.Code))); }
/// <summary> /// Clone the model. The geometry data is deep-copied and can be modified in the clone without affecting the original. /// </summary> public Model Clone(string cloneName = "") { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Model> (Model_Clone(handle, cloneName))); }
/// <summary> /// Return target object. /// </summary> private Urho.UrhoObject GetTarget() { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Urho.UrhoObject> (ValueAnimationInfo_GetTarget(handle))); }
/// <summary> /// Return a supported pass by name. This overload should not be called in time-critical rendering loops; use a pre-acquired pass index instead. /// </summary> public Pass GetSupportedPass(string passName) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Pass> (Technique_GetSupportedPass2(handle, passName))); }
/// <summary> /// Return a clone with added shader compilation defines. Called internally by Material. /// </summary> public Technique CloneWithDefines(string vsDefines, string psDefines) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Technique> (Technique_CloneWithDefines(handle, vsDefines, psDefines))); }
/// <summary> /// Return a pass that is supported for rendering, or null if not found. /// </summary> public Pass GetSupportedPass(uint passIndex) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Pass> (Technique_GetSupportedPass(handle, passIndex))); }
/// <summary> /// Clone the technique. Passes will be deep copied to allow independent modification. /// </summary> public Technique Clone(string cloneName) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Technique> (Technique_Clone(handle, cloneName))); }
/// <summary> /// Create a new pass. /// </summary> public Pass CreatePass(string passName) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Pass> (Technique_CreatePass(handle, passName))); }
/// <summary> /// Clone the animation. /// </summary> public Animation Clone(string cloneName = "") { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Animation> (Animation_Clone(handle, cloneName))); }
/// <summary> /// Return rendering path. /// </summary> private RenderPath GetRenderPath() { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <RenderPath> (Viewport_GetRenderPath(handle))); }
/// <summary> /// Return attribute animation info by name. /// </summary> public ValueAnimationInfo GetAttributeAnimationInfo(string name) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <ValueAnimationInfo> (ObjectAnimation_GetAttributeAnimationInfo(handle, name))); }
public T GetRefCounted <T>() where T : RefCounted => Runtime.LookupRefCounted <T>(ptr);
/// <summary> /// Return pass by technique index and pass name. /// </summary> public Pass GetPass(uint index, string passName) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Pass> (Material_GetPass(handle, index, passName))); }
/// <summary> /// Return execution context. /// </summary> private Context GetContext() { return(Runtime.LookupRefCounted <Context> (UrhoObject_GetContext(handle))); }
/// <summary> /// Return active event sender. Null outside event handling. /// </summary> private Urho.UrhoObject GetEventSender() { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Urho.UrhoObject> (Context_GetEventSender(handle))); }
/// <summary> /// Return event receivers for a sender and event type, or null if they do not exist. /// </summary> public EventReceiverGroup GetEventReceivers(Urho.UrhoObject sender, StringHash eventType) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <EventReceiverGroup> (Context_GetEventReceivers(handle, (object)sender == null ? IntPtr.Zero : sender.Handle, eventType.Code))); }
public virtual T this [int idx] => Runtime.LookupRefCounted <T> (VectorSharedPtr_GetIdx(handle, idx));
/// <summary> /// Return event receivers for an event type, or null if they do not exist. /// </summary> public EventReceiverGroup GetEventReceivers(StringHash eventType) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <EventReceiverGroup> (Context_GetEventReceivers0(handle, eventType.Code))); }
/// <summary> /// Return animation state by animation pointer. /// </summary> public AnimationState GetAnimationState(Animation animation) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <AnimationState> (AnimatedModel_GetAnimationState(handle, (object)animation == null ? IntPtr.Zero : animation.Handle))); }
/// <summary> /// Get image data from a face's zero mip level. Only RGB and RGBA textures are supported. /// </summary> public Image GetImage(CubeMapFace face) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Image> (TextureCube_GetImage(handle, face))); }
/// <summary> /// Return animation state by animation name hash. /// </summary> public AnimationState GetAnimationState(StringHash animationNameHash) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <AnimationState> (AnimatedModel_GetAnimationState7(handle, animationNameHash.Code))); }
/// <summary> /// Return render surface for one face. /// </summary> public RenderSurface GetRenderSurface(CubeMapFace face) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <RenderSurface> (TextureCube_GetRenderSurface(handle, face))); }
/// <summary> /// Clone the rendering path. /// </summary> public RenderPath Clone() { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <RenderPath> (RenderPath_Clone(handle))); }
/// <summary> /// Return a pass by name, or null if not found. This overload should not be called in time-critical rendering loops; use a pre-acquired pass index instead. /// </summary> public Pass GetPass(string name) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <Pass> (Technique_GetPass1(handle, name))); }