using GUI.Utils;
using ValveResourceFormat;

namespace GUI.Types.Renderer
{
    class GLSkyboxViewer : GLSceneViewer
    {
        private readonly Resource materialResource;

        public GLSkyboxViewer(VrfGuiContext guiContext, Resource material)
            : base(guiContext, Frustum.CreateEmpty())
        {
            materialResource = material;
        }

        protected override void InitializeControl()
        {
            AddRenderModeSelectionControl();
        }

        protected override void LoadScene()
        {
            Skybox2D = new SceneSkybox2D(GuiContext.MaterialLoader.LoadMaterial(materialResource));
        }

        protected override void OnPicked(object sender, PickingTexture.PickingResponse pixelInfo)
        {
        }
    }
}
