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