Example #1
0
    public virtual Result CreateElement(/*cstype*/ string text, SWIGTYPE_p_LPD3DFONT font, int x, int y, DockType dock, Color color, SizeI size)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IHUD_CreateElement__SWIG_12(swigCPtr, new IronSightEnginePINVOKE.SWIGStringMarshal(text).swigCPtr, SWIGTYPE_p_LPD3DFONT.getCPtr(font), x, y, (int)dock, Color.getCPtr(color), SizeI.getCPtr(size)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_LPD3DFONT obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }