www.pudn.com > Gimcrack-v0.0051-Source.zip > gui.h


#ifndef _GUI_H_ 
#define _GUI_H_ 
 
#include "font.h" 
#include "sprite.h" 
#include "minimap.h" 
 
class GcGui 
{ 
public: 
 
	// Initialize the GUI (build the font etc) 
	GcGui(); 
 
	// Clean up the GUI 
	~GcGui(); 
 
	// Change the projection matrix to 2D making things ready to draw the GUI 
	void Begin(); 
 
	// Change the projection matrix back to 3D 
	void End(); 
 
	// Load the GUI 
	bool Load(GcTexture *land, uint mapWidth); 
 
	// Draw the GUI 
	void Draw(float x, float y); 
 
	// Draw text 
	void Print(char *string, int x, int y); 
 
private: 
	GcFont	  font;		// Used in writing text 
	GcSprite  aim;		// The crosshair 
	GcSprite  hud;		// The HUD 
	GcMinimap map; 
}; 
 
#endif