Harrison 5e85eb5de1 Cleaned up code and added some parameter checks.
Removed some unused code fragments from older plans.
2020-05-29 00:01:05 -05:00

52 lines
1.2 KiB
C#

using System;
using SlatedGameToolkit.Framework.Graphics.OpenGL.Programs;
using SlatedGameToolkit.Framework.Graphics.OpenGL.Shaders;
using SlatedGameToolkit.Framework.Graphics.Window;
using SlatedGameToolkit.Framework.StateSystem;
using SlatedGameToolkit.Framework.StateSystem.States;
namespace SlatedGameToolkit.Tools.Utilities.GraphicalPlayground
{
public class MainState : IState
{
private WindowContext window;
private GLShaderProgram shader;
public WindowContext CurrentWindow { get { return window;}}
public bool Activate()
{
return true;
}
public bool Deactivate()
{
return true;
}
public void Deinitialize()
{
window.Dispose();
}
public string getName()
{
return "main state";
}
public void Initialize(Manager manager)
{
window = new WindowContext("SlatedGameToolkit Playground");
shader = new GLShaderProgram();
window.RaiseToTop();
}
public void Render(double delta)
{
}
public void Update(double delta)
{
}
}
}