//********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
using System;
using System.Runtime.CompilerServices;
using bs;
namespace bs.Editor
{
/** @addtogroup Scene-Editor
* @{
*/
///
/// Handles rendering of the scene gizmos for the specified camera.
///
internal sealed class SceneGizmos : ScriptObject
{
///
/// Creates a new scene gizmo renderer.
///
/// Camera into which the gizmos will be rendered.
internal SceneGizmos(Camera sceneCamera)
{
Internal_Create(this, sceneCamera.GetCachedPtr());
}
///
/// Queues gizmo drawing for this frame.
///
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);
}
/** @} */
}