topical media & game development
graphic-directx-game-22-DisplacementMap-Sky.h / h
//=============================================================================
// Sky.h by Frank Luna (C) 2004 All Rights Reserved.
//=============================================================================
ifndef SKY_H
define SKY_H
include <d3dx9.h>
include <string>
class Sky
{
public:
Sky(const std::string& envmapFilename, float skyRadius);
~Sky();
IDirect3DCubeTexture9* getEnvMap();
float getRadius();
DWORD getNumTriangles();
DWORD getNumVertices();
void onLostDevice();
void onResetDevice();
void draw();
private:
ID3DXMesh* mSphere;
float mRadius;
IDirect3DCubeTexture9* mEnvMap;
ID3DXEffect* mFX;
D3DXHANDLE mhTech;
D3DXHANDLE mhEnvMap;
D3DXHANDLE mhWVP;
};
endif // SKY_H
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.