| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- using System.Runtime.CompilerServices;
- using BansheeEngine;
- namespace BansheeEditor
- {
- public class Gizmos
- {
- public static Color color
- {
- get
- {
- Color value;
- Internal_GetColor(out value);
- return value;
- }
- set
- {
- Internal_SetColor(value);
- }
- }
- public static Matrix4 transform
- {
- get
- {
- Matrix4 value;
- Internal_GetTransform(out value);
- return value;
- }
- set
- {
- Internal_SetTransform(value);
- }
- }
- public static void DrawCube(Vector3 position, Vector3 extents)
- {
- Internal_DrawCube(position, extents);
- }
- public static void DrawSphere(Vector3 position, float radius)
- {
- Internal_DrawSphere(position, radius);
- }
- public static void DrawWireCube(Vector3 position, Vector3 extents)
- {
- Internal_DrawWireCube(position, extents);
- }
- public static void DrawWireSphere(Vector3 position, float radius)
- {
- Internal_DrawWireSphere(position, radius);
- }
- public static void DrawLine(Vector3 start, Vector3 end)
- {
- Internal_DrawLine(start, end);
- }
- public static void DrawFrustum(Vector3 position, float aspect, Degree FOV, float near, float far)
- {
- Internal_DrawFrustum(position, aspect, FOV, near, far);
- }
- public static void DrawIcon(Vector3 position, SpriteTexture image, bool fixedScale)
- {
- Internal_DrawIcon(position, image, fixedScale);
- }
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_SetColor(Color color);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_GetColor(out Color color);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_SetTransform(Matrix4 transform);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_GetTransform(out Matrix4 transform);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawCube(Vector3 position, Vector3 extents);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawSphere(Vector3 position, float radius);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawWireCube(Vector3 position, Vector3 extents);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawWireSphere(Vector3 position, float radius);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawLine(Vector3 start, Vector3 end);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawFrustum(Vector3 position, float aspect, Degree FOV, float near, float far);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_DrawIcon(Vector3 position, SpriteTexture image, bool fixedScale);
- }
- }
|