Пример #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);
 }