| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- using System.Runtime.CompilerServices;
- using bs;
- namespace bs.Editor
- {
- /** @addtogroup Scene-Editor
- * @{
- */
- /// <summary>
- /// Handles rendering of the scene gizmos for the specified camera.
- /// </summary>
- internal sealed class SceneGizmos : ScriptObject
- {
- /// <summary>
- /// Creates a new scene gizmo renderer.
- /// </summary>
- /// <param name="sceneCamera">Camera into which the gizmos will be rendered.</param>
- internal SceneGizmos(Camera sceneCamera)
- {
- Internal_Create(this, sceneCamera.GetCachedPtr());
- }
- /// <summary>
- /// Queues gizmo drawing for this frame.
- /// </summary>
- internal void Draw()
- {
- Internal_Draw(mCachedPtr);
- }
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_Create(SceneGizmos managedInstance, IntPtr camera);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_Draw(IntPtr thisPtr);
- }
- /** @} */
- }
|