2004-05-30 02:46:58 +02:00
|
|
|
#ifndef _MINIMAP_H
|
|
|
|
#define _MINIMAP_H
|
2004-06-11 00:24:03 +02:00
|
|
|
|
|
|
|
#include "lib.h"
|
2004-05-30 02:46:58 +02:00
|
|
|
|
|
|
|
class CMiniMap
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CMiniMap();
|
|
|
|
|
|
|
|
void Initialise();
|
|
|
|
void Render();
|
|
|
|
void Update(int x,int y,unsigned int color);
|
|
|
|
void Update(int x,int y,int w,int h,unsigned int color);
|
|
|
|
void Rebuild();
|
|
|
|
void Rebuild(int x,int y,int w,int h);
|
|
|
|
|
|
|
|
// current viewing frustum, in minimap coordinate space
|
|
|
|
float m_ViewRect[4][2];
|
|
|
|
|
2004-06-11 00:24:03 +02:00
|
|
|
private:
|
|
|
|
// send data to GL; update stored texture data
|
2004-06-07 22:07:11 +02:00
|
|
|
void UpdateTexture();
|
2004-05-30 02:46:58 +02:00
|
|
|
// texture handle
|
2004-06-07 22:07:11 +02:00
|
|
|
u32 m_Handle;
|
2004-05-30 02:46:58 +02:00
|
|
|
// size of the map texture
|
2004-06-11 00:24:03 +02:00
|
|
|
u32 m_Size;
|
|
|
|
// raw BGRA_EXT data for the minimap
|
2004-06-07 22:07:11 +02:00
|
|
|
u32* m_Data;
|
2004-05-30 02:46:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern CMiniMap g_MiniMap;
|
|
|
|
|
|
|
|
#endif
|