Example #1
0
    public Result RegisterWinClass(SWIGTYPE_p_String classname, SWIGTYPE_p_HBRUSH bgbrush, bool ismdichildclass, SWIGTYPE_p_HICON icon)
    {
        Result ret = new Result(IronSightEnginePINVOKE.Engine_RegisterWinClass__SWIG_1(swigCPtr, SWIGTYPE_p_String.getCPtr(classname), SWIGTYPE_p_HBRUSH.getCPtr(bgbrush), ismdichildclass, SWIGTYPE_p_HICON.getCPtr(icon)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public virtual Result GetRegisteredClasses(SWIGTYPE_p_GETREGISTEREDCLASSES_CALLBACK cbk, SWIGTYPE_p_void cbkuser, RenderType rendertype)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IRenderable_GetRegisteredClasses(swigCPtr, SWIGTYPE_p_GETREGISTEREDCLASSES_CALLBACK.getCPtr(cbk), SWIGTYPE_p_void.getCPtr(cbkuser), (int)rendertype), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #3
0
    public virtual Result Save(SWIGTYPE_p_LPD3D10BLOB datablob, SWIGTYPE_p_D3DX_IMAGE_FILEFORMAT format)
    {
        Result ret = new Result(IronSightEnginePINVOKE.ITexture_Save__SWIG_1(swigCPtr, SWIGTYPE_p_LPD3D10BLOB.getCPtr(datablob), SWIGTYPE_p_D3DX_IMAGE_FILEFORMAT.getCPtr(format)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #4
0
    public Result CreateTimer(SWIGTYPE_p_TIMERELAPSED_CALLBACK timercbk, uint interval, bool autoreset, SWIGTYPE_p_void user, SWIGTYPE_p_p_Timer tmr)
    {
        Result ret = new Result(IronSightEnginePINVOKE.Engine_CreateTimer(swigCPtr, SWIGTYPE_p_TIMERELAPSED_CALLBACK.getCPtr(timercbk), interval, autoreset, SWIGTYPE_p_void.getCPtr(user), SWIGTYPE_p_p_Timer.getCPtr(tmr)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public virtual Result CreateBoxedLevel(SWIGTYPE_p_a_3__unsigned_int chunksize, uint numchunkbuffers, ITexture texboxes, IRenderShader blevelshader, SWIGTYPE_p_p_IBoxedLevel blevel)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IOutputWindow_CreateBoxedLevel(swigCPtr, SWIGTYPE_p_a_3__unsigned_int.getCPtr(chunksize), numchunkbuffers, ITexture.getCPtr(texboxes), IRenderShader.getCPtr(blevelshader), SWIGTYPE_p_p_IBoxedLevel.getCPtr(blevel)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #6
0
    public Result UnregisterCustomWndProc(SWIGTYPE_p_CUSTOMWNDPROC customwndproc)
    {
        Result ret = new Result(IronSightEnginePINVOKE.Engine_UnregisterCustomWndProc(swigCPtr, SWIGTYPE_p_CUSTOMWNDPROC.getCPtr(customwndproc)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public virtual Result CreateD3dFont(SWIGTYPE_p_FontType type, SWIGTYPE_p_p_ID3dFont font)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IOutputWindow_CreateD3dFont(swigCPtr, SWIGTYPE_p_FontType.getCPtr(type), SWIGTYPE_p_p_ID3dFont.getCPtr(font)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public virtual Result CreateTexture(uint width, uint height, ITexture.Usage usage, bool deviceindependent, SWIGTYPE_p_DXGI_FORMAT format, SWIGTYPE_p_void data, SWIGTYPE_p_p_ITexture tex)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IOutputWindow_CreateTexture__SWIG_2(swigCPtr, width, height, (int)usage, deviceindependent, SWIGTYPE_p_DXGI_FORMAT.getCPtr(format), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_p_ITexture.getCPtr(tex)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 IronSightEnginePINVOKE.delete_IElement(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
     }
 }
Example #10
0
    public virtual Result Save(/*cstype*/ string filename, SWIGTYPE_p_D3DX_IMAGE_FILEFORMAT format)
    {
        Result ret = new Result(IronSightEnginePINVOKE.ITexture_Save__SWIG_0(swigCPtr, new IronSightEnginePINVOKE.SWIGStringMarshal(filename).swigCPtr, SWIGTYPE_p_D3DX_IMAGE_FILEFORMAT.getCPtr(format)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public IObject CreateObject(D3dShapeDesc shapedesc)
    {
        global::System.IntPtr cPtr = IronSightEnginePINVOKE.IOutputWindow_CreateObject__SWIG_3(swigCPtr, D3dShapeDesc.getCPtr(shapedesc));
        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        IObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new IObject(cPtr, false);

        return(ret);
    }
Example #12
0
 public override void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 IronSightEnginePINVOKE.delete_D3dMeshShapeDesc(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
         base.Dispose();
     }
 }
Example #13
0
 public Result Run(InitFunc initfunc, InitFunc postinitfunc, CyclicFunc cyclicfunc, QuitFunc quitfunc)
 {
     RefDelegate initfuncwrapper = delegate() {
         return(Result.getCPtr(initfunc()).Handle);
     };
     RefDelegate postinitfuncwrapper = delegate() {
         return(Result.getCPtr(initfunc()).Handle);
     };
     RefDelegate cyclicfuncwrapper = delegate() {
         return(System.IntPtr.Zero);
     };
     RefDelegate quitfuncwrapper = delegate() {
         return(System.IntPtr.Zero);
     };
     {
         Result ret = new Result(IronSightEnginePINVOKE.Engine_Run(swigCPtr, initfuncwrapper, postinitfuncwrapper, cyclicfuncwrapper, quitfuncwrapper), true);
         //
         if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
         {
             throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
         }
         return(ret);
     }
 }
Example #14
0
 public SamplerRendererDesc() : this(IronSightEnginePINVOKE.new_SamplerRendererDesc(), true)
 {
 }
Example #15
0
 internal D3dMeshShapeDesc(global::System.IntPtr cPtr, bool cMemoryOwn) : base(IronSightEnginePINVOKE.D3dMeshShapeDesc_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
    public /*cstype*/ string GetLastResult()
    {
        string ret = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(IronSightEnginePINVOKE.Result_GetLastResult__SWIG_1(swigCPtr));

        return(ret);
    }
 public static void PrintLogMessage(Result.Details details)
 {
     IronSightEnginePINVOKE.Result_PrintLogMessage__SWIG_2(Result.Details.getCPtr(details));
 }
 public static void PrintLogMessage(/*cstype*/ string msg)
 {
     IronSightEnginePINVOKE.Result_PrintLogMessage__SWIG_1(new IronSightEnginePINVOKE.SWIGStringMarshal(msg).swigCPtr);
 }
 public static void PrintLogMessage(/*cstype*/ string msg, /*cstype*/ string file, /*cstype*/ string func, int line)
 {
     IronSightEnginePINVOKE.Result_PrintLogMessage__SWIG_0(new IronSightEnginePINVOKE.SWIGStringMarshal(msg).swigCPtr, new IronSightEnginePINVOKE.SWIGStringMarshal(file).swigCPtr, new IronSightEnginePINVOKE.SWIGStringMarshal(func).swigCPtr, line);
 }
 public Result(/*cstype*/ string msg, string file, string func, int line) : this(IronSightEnginePINVOKE.new_Result__SWIG_2(new IronSightEnginePINVOKE.SWIGStringMarshal(msg).swigCPtr, file, func, line), true)
 {
 }
 public Result(/*cstype*/ string msg) : this(IronSightEnginePINVOKE.new_Result__SWIG_1(new IronSightEnginePINVOKE.SWIGStringMarshal(msg).swigCPtr), true)
 {
 }
 public Result() : this(IronSightEnginePINVOKE.new_Result__SWIG_0(), true)
 {
 }
Example #23
0
 public GuiFactory(SWIGTYPE_p_IGuiFactory src) : this(IronSightEnginePINVOKE.new_GuiFactory__SWIG_1(SWIGTYPE_p_IGuiFactory.getCPtr(src)), true)
 {
 }
Example #24
0
 public GuiFactory() : this(IronSightEnginePINVOKE.new_GuiFactory__SWIG_0(), true)
 {
 }
Example #25
0
 public EmissionVolumeIntegratorDesc() : this(IronSightEnginePINVOKE.new_EmissionVolumeIntegratorDesc(), true)
 {
 }
Example #26
0
 public D3dMeshShapeDesc() : this(IronSightEnginePINVOKE.new_D3dMeshShapeDesc(), true)
 {
 }
    public override uint GetVertexCount()
    {
        uint ret = IronSightEnginePINVOKE.D3dSphereShapeDesc_GetVertexCount(swigCPtr);

        return(ret);
    }
Example #28
0
    public /*cstype*/ string ToString()
    {
        string ret = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(IronSightEnginePINVOKE.SizeI_ToString(swigCPtr));

        return(ret);
    }
Example #29
0
    public override uint GetFaceCount()
    {
        uint ret = IronSightEnginePINVOKE.D3dMeshShapeDesc_GetFaceCount(swigCPtr);

        return(ret);
    }
Example #30
0
 internal EmissionVolumeIntegratorDesc(global::System.IntPtr cPtr, bool cMemoryOwn) : base(IronSightEnginePINVOKE.EmissionVolumeIntegratorDesc_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }