Exemple #1
0
 public static IntPtr GetDrawCallback()
 {
     return(NativePlugin.GetDrawCallback());
 }
Exemple #2
0
 public static void SetResolution(float width, float height)
 {
     NativePlugin.SetResolution(width, height);
 }
Exemple #3
0
 public static void SetTime(float time)
 {
     NativePlugin.SetTime(time);
 }
Exemple #4
0
 public static void SetMesh(Mesh mesh)
 {
     NativePlugin.SetVertexBuffer(mesh.GetNativeVertexBufferPtr(0), mesh.vertexCount);
     NativePlugin.SetIndexBuffer(mesh.GetNativeIndexBufferPtr(), mesh.GetIndexCount(0), (mesh.indexFormat == IndexFormat.UInt16) ? 0 : 1);
 }
Exemple #5
0
 public static bool SetShaderCode(string code)
 {
     return(NativePlugin.SetShaderCode(code) == 0);
 }