/// <summary>Changes the color of the fog</summary> /// <description> /// . /// </description> /// <param name="new_color">the new fog color (rgb 0.0 - 1.0, a is ignored.</param> public void SetFogColorF(LinearColorF new_color) { new_color.Alloc(); InternalUnsafeMethods.SetFogColorF__Args _args = new InternalUnsafeMethods.SetFogColorF__Args() { new_color = new_color.internalStructPtr, }; InternalUnsafeMethods.SetFogColorF()(ObjectPtr, _args); new_color.Free(); }
/// <description> /// Sets the color of the light in the scene. /// </description> public void SetLightColor(LinearColorF color) { color.Alloc(); InternalUnsafeMethods.SetLightColor__Args _args = new InternalUnsafeMethods.SetLightColor__Args() { color = color.internalStructPtr, }; InternalUnsafeMethods.SetLightColor()(ObjectPtr, _args); color.Free(); }
/// <description> /// Draws a line primitive between two 3d points. /// </description> public void DrawLine(Point3F a, Point3F b, LinearColorF color = null) { a.Alloc(); b.Alloc(); color = color ?? new LinearColorF("1 1 1 1"); color.Alloc(); InternalUnsafeMethods.DrawLine__Args _args = new InternalUnsafeMethods.DrawLine__Args() { a = a.internalStructPtr, b = b.internalStructPtr, color = color.internalStructPtr, }; InternalUnsafeMethods.DrawLine()(ObjectPtr, _args); a.Free(); b.Free(); color.Free(); }