public static async System.Threading.Tasks.Task <CGfxRenderPolicy> CreateRenderPolicy( [Editor.Editor_TypeFilterAttribute(typeof(CGfxRenderPolicy))] Type type, UInt32 width, UInt32 height, CGfxCamera camera, IntPtr WinHandle) { var result = Rtti.RttiHelper.CreateInstance(type) as CGfxRenderPolicy; if (result == null) { return(null); } if (await result.Init(CEngine.Instance.RenderContext, width, height, camera, WinHandle) == false) { return(null); } return(result); }
public CFrustum(CGfxCamera host) { mHost = host; CoreObject = SDK_v3dxFrustum_NewFrustum(); NeedDeleteNative = true; }
public CFrustum(CGfxCamera host, IntPtr self) { mHost = host; CoreObject = self; }
public virtual async System.Threading.Tasks.Task <bool> Init(CRenderContext RHICtx, UInt32 width, UInt32 height, CGfxCamera camera, IntPtr WinHandle) { await Thread.AsyncDummyClass.DummyFunc(); return(false); }