home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
temacd
/
planearcade
/
planearcade.exe
/
Tank3.bmp
/
offscreen.h
< prev
next >
Wrap
C/C++ Source or Header
|
2004-03-17
|
895b
|
57 lines
#ifndef _OFFSCREEN_H_
#define _OFFSCREEN_H_
//------------------------------------------------------------------
// Name: OFFSCREEN class - render to texture
// Desc: *********
//------------------------------------------------------------------
class OFFSCREEN
{
private:
//povrch do ktoreho sa bude renderovat
LPD3DXRENDERTOSURFACE RenderToSurface ;
//textura
LPDIRECT3DTEXTURE9 DynamicTexture ;
//povrch textury
LPDIRECT3DSURFACE9 TextureSurface ;
public:
////////////
//premenne//
////////////
//matica projektcie
D3DXMATRIX Projection;
//vlastnosti
int Width;
int Height;
///////////
//Funkcie//
///////////
//konstruktor
OFFSCREEN();
//destruktor
~OFFSCREEN();
void Initialize();
void BeginRender();
void EndRender();
LPDIRECT3DTEXTURE9 GetTexture();
};
#endif //_OFSCREEN_H_