private static extern void _canvasDrawTexturePart(IntPtr canvasPtr, IntPtr texturePtr, Rect r,Rect src, int rotationAngle);
private static extern void _canvasDrawRect(IntPtr ptr,Rect rect,uint r,uint g,uint b);
public void DrawTextureFull(Texture texture, Rect dstRect, int rotationAngle) { _canvasDrawTextureFull(ptr, texture.GetInternalPtr(), dstRect, rotationAngle); }
public void DrawTexturePart(Texture texture,Rect dstRect,Rect srcRect,int rotation) { _canvasDrawTexturePart(ptr, texture.GetInternalPtr(), dstRect, srcRect, rotation); }
public void DrawRect(Rect rect, Color color) { _canvasDrawRect(ptr, rect, color.r, color.g, color.b); }