-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHemicube.h
52 lines (43 loc) · 1.24 KB
/
Hemicube.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//-----------------------------------------------------------------------------
// File: Hemicube.h
//
// Desc:
//
// Copyright (c) 2002 Dan
//-----------------------------------------------------------------------------
#ifndef _HEMICUBE_H_
#define _HEMICUBE_H_
#include "enum.h"
#include "Util.h"
class CHemicube
{
public:
CHemicube();
virtual ~CHemicube();
bool Init();
void Release();
bool Render( const VECT vFrom,
const VECT vAt,
const VECT vUp,
const CAMERAVIEW eView,
const bool bInPhase1 );
VECT GetColor( const bool bInPhase1 );
bool GenerateScreens();
unsigned int GetTextureID( const int iIndex );
private:
bool CreateTexture( const int iSize, const int iChannels,
const int iType, const int iTexID );
bool ApplyViewCorrection( unsigned char* pData, const CAMERAVIEW eView );
bool GetDataTGA( float* pData, const char* strFileName );
bool RenderPhase1();
bool RenderPhase2();
unsigned char* m_pTexBuffer[5];
unsigned int m_uiTextures[5];
const int m_iTexSize;
float* m_pForwardMap;
float* m_pBottomMap;
float* m_pRightMap;
float* m_pLeftMap;
float* m_pUpMap;
};
#endif