/**
	\section LICENSE
	Penjin is Copyright (c)2005, 2006, 2007, 2008, 2009, 2010, 2011 Kevin Winfield-Pantoja

	This file is part of Penjin.

	Penjin is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	Penjin is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Penjin.  If not, see <http://www.gnu.org/licenses/>.
*/
/***************************************************************************************************
*   \file CLASS_NAME is INSERT DESCRIPTION
*   \author Kevin Winfield-Pantoja
*/
#include "GFX.h"
#include "StateExample.h"
using Penjin::StateExample;

StateExample::StateExample()
{
    //ctor
}

void StateExample::init()
{
    Penjin::GFX::getInstance()->setClearColour(BLUE);
    Penjin::GFX::getInstance()->setDrawColour(RED);
}

void StateExample::clear()
{
    // we have nothing to tidy up!
}

StateExample::~StateExample()
{
    //dtor
    clear();
}

void StateExample::render()
{
    Penjin::GFX::getInstance()->clear();
    Vector2d<int> t = Penjin::GFX::getInstance()->getDimensions();
    Penjin::GFX::getInstance()->drawLine(   Vector2d<float> (0,0), Vector2d<float> (t.x,t.y));
    Penjin::GFX::getInstance()->drawLine(   Vector2d<float> (0,t.y), Vector2d<float> (t.x, 0));
}

void StateExample::update()
{

}

void StateExample::input()
{

}
