#ifndef DEF_SUPERWIN
 #define DEF_SUPERWIN
//------------------------------------------//
//				TKA4 SuperWin				//
//				21. 04. 2007				//
//------------------------------------------//


//--- Includes
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
#include <time.h>

#include "..\GraphTX\TX_GraphWindow.h"
#include "..\GraphTX\TX_Engine.h"
#include "..\GraphTX\TX_Primitives.h"
#include "..\GraphTX\TX_Templates.h"
//=== Includes 


//--- Pragma 
#pragma comment (lib, "opengl32.lib")  
#pragma comment (lib, "glu32.lib")     
//=== Pragma 


//---  Class Suer Window TX  ---//
/*	- Finally window class. -  */

class txSuperWindow : public txGraphWindow {
	protected :
		txEngine *Eng;
		txObj_Background o_back;
		txObj_Series2d_XY o_ser[1];
		
	public :
		inline void  Go();
};


//------------------------- :: Functions :: ---------------------------

//--- txSuperWindow :: GO ()
void txSuperWindow :: Go() 
{
	//--- Series 2D
		//--- Background color		
		o_back.c[0].r.r = 0.15; o_back.c[0].r.b = 0.2; o_back.c[0].r.a = 0.7;
		o_back.c[1].r.r = 0.15; o_back.c[1].r.b = 0.3; o_back.c[1].r.a = 0.5;
		o_back.c[2].r.r = 0.15; o_back.c[2].r.b = 0.3; o_back.c[2].r.a = 0.5;
		o_back.c[3].r.r = 0.15; o_back.c[3].r.b = 0.3; o_back.c[3].r.a = 0.8;
	
	//--- Engine ---//		
		Eng = new txEngine();
		Eng -> AddObject(&o_back);
		

	//---   Go   ---//
	txGraphWindow gtx1(Eng, "WIN1", 0, 0);
	gtx1.WinMain();
};

#endif



