#ifndef SYS_H
#define SYS_H

#include "stdafx.h"

#include <stdio.h>
//#include "opengl.h"
#include "..\modules\openglObj\openglObj.h"

class sys {
public:

	// -------------------------
	// - Window Related Stuff  -
	// -------------------------

	// opengl.dll resides in here
	class	dllClass	dll;

	// Debug info is saved here
	FILE *fp;

	// info regarding windows information
	int			classActive;	// does a class exist?
	char		*className;		// whats the class name
	HINSTANCE	hInst;			// handle to the class
	HWND		hWnd;			// handle to the window
	HDC			hDc;			// handle to the device context of window
	HGLRC		hRc;			// handle to rendering context of window
	int			goodpfCount;	// count of usable pfd's
	int			goodpf[30];		// indexes for usable pfd's
	
	
	int regClass ( WNDPROC MainWndProc, HINSTANCE hInst, char *className);

	int openWindow ( char *winTitle,int resId, int resType, int pfdType );

	int changeResolution (int resMode );

	int setMode ( int pfdId );

	int probeVideo ( void );

	int changeWindow ( int x, int y, int width, int height, int resId );

	void print ( char *format, ... );


};






#endif