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