예제 #1
0
 public static IntPtr GetDrawCallback()
 {
     return(NativePlugin.GetDrawCallback());
 }
예제 #2
0
 public static void SetResolution(float width, float height)
 {
     NativePlugin.SetResolution(width, height);
 }
예제 #3
0
 public static void SetTime(float time)
 {
     NativePlugin.SetTime(time);
 }
예제 #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);
 }
예제 #5
0
 public static bool SetShaderCode(string code)
 {
     return(NativePlugin.SetShaderCode(code) == 0);
 }