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