Beispiel #1
0
 public extern static void SDK_GraphicsProfiler_SetNoPixelShader(NativePointer self, vBOOL value);
Beispiel #2
0
 public extern static unsafe void SDK_ICommandList_BuildRenderPass(NativePointer self, vBOOL bImmCBuffer, int limitter, CPass.NativePointer *ppPass);
Beispiel #3
0
 public extern static void SDK_IGeometryMesh_SetIsDirty(NativePointer self, vBOOL value);
Beispiel #4
0
 public extern static unsafe CShaderDesc.NativePointer SDK_IRenderContext_CompileHLSLFromFile(CRenderContext.NativePointer self, string file, string entry, string sm, CShaderDefinitions.NativePointer defines, UInt32 CrossPlatforms, vBOOL bDebugShader);
Beispiel #5
0
 public extern static CRenderContext.NativePointer SDK_IRenderSystem_CreateContext(NativePointer self, UInt32 Adapter, IntPtr windows, vBOOL createDebugLayer);
        private static void GetAssetsFileName(IntPtr CppString, UInt32 bufferSize, IntPtr FullFileName, vBOOL LoadFromDocDir)
        {
            if (LoadFromDocDir)
            {
                unsafe
                {
                    char *refCppString     = (char *)CppString.ToPointer();
                    var   AnsiFullFileName = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(FullFileName);
                    var   SrcCppString     = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(AnsiFullFileName);
                    CoreSDK.SDK_Memory_Copy(refCppString, SrcCppString.ToPointer(), (UInt32)AnsiFullFileName.Length);
                    System.Runtime.InteropServices.Marshal.FreeHGlobal(SrcCppString);

                    //var RelatedFileLocation = "Content/" + AnsiFullFileName.Substring(CEngine.Instance.FileManager.Content.Length);
                    //var SrcCppString = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(RelatedFileLocation);
                    //CoreSDK.SDK_Memory_Copy(refCppString, SrcCppString.ToPointer(), (UInt32)RelatedFileLocation.Length);
                }
            }
            else
            {
            }
        }