Ejemplo n.º 1
0
 /// <summary>
 /// Register object factory.
 /// </summary>
 public new static void RegisterObject(Context context)
 {
     Runtime.Validate(typeof(TerrainPatch));
     TerrainPatch_RegisterObject((object)context == null ? IntPtr.Zero : context.Handle);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Return name for texture unit.
 /// </summary>
 public static string GetTextureUnitName(TextureUnit unit)
 {
     Runtime.Validate(typeof(Material));
     return(Marshal.PtrToStringAnsi(Material_GetTextureUnitName(unit)));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Register object factory.
 /// </summary>
 public static void RegisterObject(Context context)
 {
     Runtime.Validate(typeof(Material));
     Material_RegisterObject((object)context == null ? IntPtr.Zero : context.Handle);
 }
Ejemplo n.º 4
0
 public RibbonTrail(Context context) : base(UrhoObjectFlag.Empty)
 {
     Runtime.Validate(typeof(RibbonTrail));
     handle = RibbonTrail_RibbonTrail((object)context == null ? IntPtr.Zero : context.Handle);
     Runtime.RegisterObject(this);
 }
Ejemplo n.º 5
0
 private static StringHash GetTypeStatic()
 {
     Runtime.Validate(typeof(Material));
     return(new StringHash(Material_GetTypeStatic()));
 }
Ejemplo n.º 6
0
		private static string GetTypeNameStatic ()
		{
			Runtime.Validate (typeof(Time));
			return Marshal.PtrToStringAnsi (Time_GetTypeNameStatic ());
		}
Ejemplo n.º 7
0
 private static StringHash GetTypeStatic()
 {
     Runtime.Validate(typeof(RibbonTrail));
     return(new StringHash(RibbonTrail_GetTypeStatic()));
 }
Ejemplo n.º 8
0
 public UrhoString(double value)
 {
     Runtime.Validate(typeof(UrhoString));
     handle = UrhoString_String10(value);
     OnUrhoStringCreated();
 }
Ejemplo n.º 9
0
 public UrhoString(string str)
 {
     Runtime.Validate(typeof(UrhoString));
     handle = UrhoString_String0(str);
     OnUrhoStringCreated();
 }
Ejemplo n.º 10
0
 public ConvexData(Model model, uint lodLevel)
 {
     Runtime.Validate(typeof(ConvexData));
 }
Ejemplo n.º 11
0
 public ConvexData(CustomGeometry custom)
 {
     Runtime.Validate(typeof(ConvexData));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Register object factory.
 /// </summary>
 public new static void RegisterObject(Context context)
 {
     Runtime.Validate(typeof(DebugRenderer));
     DebugRenderer_RegisterObject((object)context == null ? IntPtr.Zero : context.Handle);
 }
Ejemplo n.º 13
0
 private static string GetTypeNameStatic()
 {
     Runtime.Validate(typeof(DebugRenderer));
     return(Marshal.PtrToStringAnsi(DebugRenderer_GetTypeNameStatic()));
 }
Ejemplo n.º 14
0
 private static StringHash GetTypeStatic()
 {
     Runtime.Validate(typeof(DebugRenderer));
     return(new StringHash(DebugRenderer_GetTypeStatic()));
 }
Ejemplo n.º 15
0
		/// <summary>
		/// Sleep for a number of milliseconds.
		/// </summary>
		public static void Sleep (uint mSec)
		{
			Runtime.Validate (typeof(Time));
			Time_Sleep (mSec);
		}
Ejemplo n.º 16
0
 public UrhoString(uint value)
 {
     Runtime.Validate(typeof(UrhoString));
     handle = UrhoString_String5(value);
     OnUrhoStringCreated();
 }
Ejemplo n.º 17
0
		private static StringHash GetTypeStatic ()
		{
			Runtime.Validate (typeof(Time));
			return new StringHash (Time_GetTypeStatic ());
		}
Ejemplo n.º 18
0
 public Polyhedron()
 {
     Runtime.Validate(typeof(Polyhedron));
     handle = Polyhedron_Polyhedron();
     OnPolyhedronCreated();
 }
Ejemplo n.º 19
0
 public Pass(string passName) : base(UrhoObjectFlag.Empty)
 {
     Runtime.Validate(typeof(Pass));
     handle = Pass_Pass(passName);
     Runtime.RegisterObject(this);
 }
Ejemplo n.º 20
0
 public Polyhedron(Polyhedron polyhedron)
 {
     Runtime.Validate(typeof(Polyhedron));
     handle = Polyhedron_Polyhedron0((object)polyhedron == null ? IntPtr.Zero : polyhedron.Handle);
     OnPolyhedronCreated();
 }
Ejemplo n.º 21
0
 private static string GetTypeNameStatic()
 {
     Runtime.Validate(typeof(RibbonTrail));
     return(Marshal.PtrToStringAnsi(RibbonTrail_GetTypeNameStatic()));
 }
Ejemplo n.º 22
0
 public Polyhedron(Urho.BoundingBox box)
 {
     Runtime.Validate(typeof(Polyhedron));
     handle = Polyhedron_Polyhedron1(ref box);
     OnPolyhedronCreated();
 }
Ejemplo n.º 23
0
 /// <summary>
 /// Register object factory.
 /// </summary>
 public new static void RegisterObject(Context context)
 {
     Runtime.Validate(typeof(RibbonTrail));
     RibbonTrail_RegisterObject((object)context == null ? IntPtr.Zero : context.Handle);
 }
Ejemplo n.º 24
0
 public Polyhedron(Frustum frustum)
 {
     Runtime.Validate(typeof(Polyhedron));
     handle = Polyhedron_Polyhedron2((object)frustum == null ? IntPtr.Zero : frustum.Handle);
     OnPolyhedronCreated();
 }
Ejemplo n.º 25
0
 private static string GetTypeNameStatic()
 {
     Runtime.Validate(typeof(Material));
     return(Marshal.PtrToStringAnsi(Material_GetTypeNameStatic()));
 }
Ejemplo n.º 26
0
		/// <summary>
		/// Get system time as milliseconds.
		/// </summary>
		private static uint GetSystemTime ()
		{
			Runtime.Validate (typeof(Time));
			return Time_GetSystemTime ();
		}
Ejemplo n.º 27
0
 /// <summary>
 /// Parse a shader parameter value from a string. Retunrs either a bool, a float, or a 2 to 4-component vector.
 /// </summary>
 public static Variant ParseShaderParameterValue(string value)
 {
     Runtime.Validate(typeof(Material));
     return(Material_ParseShaderParameterValue(value));
 }
Ejemplo n.º 28
0
		/// <summary>
		/// Get system time as seconds since 1.1.1970.
		/// </summary>
		private static uint GetTimeSinceEpoch ()
		{
			Runtime.Validate (typeof(Time));
			return Time_GetTimeSinceEpoch ();
		}
Ejemplo n.º 29
0
 public ValueAnimationInfo(Urho.UrhoObject target, ValueAnimation animation, WrapMode wrapMode, float speed) : base(UrhoObjectFlag.Empty)
 {
     Runtime.Validate(typeof(ValueAnimationInfo));
     handle = ValueAnimationInfo_ValueAnimationInfo0((object)target == null ? IntPtr.Zero : target.Handle, (object)animation == null ? IntPtr.Zero : animation.Handle, wrapMode, speed);
     Runtime.RegisterObject(this);
 }
Ejemplo n.º 30
0
 private static string GetTypeNameStatic()
 {
     Runtime.Validate(typeof(TerrainPatch));
     return(Marshal.PtrToStringAnsi(TerrainPatch_GetTypeNameStatic()));
 }