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