Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CFrustum(CGfxCamera host)
 {
     mHost            = host;
     CoreObject       = SDK_v3dxFrustum_NewFrustum();
     NeedDeleteNative = true;
 }
Exemplo n.º 3
0
 public CFrustum(CGfxCamera host, IntPtr self)
 {
     mHost      = host;
     CoreObject = self;
 }
Exemplo n.º 4
0
        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);
        }