A
download TestScene.h
Language: C++
LOC: 33
Project Info
TableHockey3D(tablehockey)
Server: SourceForge
Type: cvs
...ey\CVSROOT\tablehockey\src\
   Application.cpp
   Application.h
   Camera.cpp
   Camera.h
   Cube.cpp
   Cube.h
   Data.cpp
   Data.h
   Disk.cpp
   Disk.h
   FloatingText.cpp
   FloatingText.h
   Floor.cpp
   Floor.h
   Input.cpp
   Input.h
   Light.cpp
   Light.h
   log.cpp
   log.h
   main.cpp
   mmgr.cpp
   mmgr.h
   Model.cpp
   Model.h
   nommgr.h
   Puck.cpp
   Puck.h
   Pyramid.cpp
   Pyramid.h
   scene.cpp
   scene.h
   SmartPtr.h
   Sound.cpp
   Sound.h
   TableHockey.dsp
   TableHockey.dsw
   TestScene.cpp
   TestScene.h
   text.cpp
   text.h
   TextHelp.cpp
   TextHelp.h
   texture.cpp
   texture.h
   TexturedCube.cpp
   TexturedCube.h
   timer.cpp
   timer.h
   View.cpp
   View.h

// TestScene.h: interface for the CTestScene class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TESTSCENE_H__13133FE1_9F6C_11D4_A9EA_00105A2EAD2D__INCLUDED_)
#define AFX_TESTSCENE_H__13133FE1_9F6C_11D4_A9EA_00105A2EAD2D__INCLUDED_

#include "TextHelp.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "smartptr.h"
#include "Scene.h"
#include "floatingtext.h"
#include "Pyramid.h"	// Added by ClassView
#include "Floor.h"	// Added by ClassView
#include "texturedcube.h"
#include "Disk.h"	// Added by ClassView
#include "light.h"

/**
 * This is a test-scene to show how to create a scene.
 *
 * Derive all your scenes from CScene. The models I use are stored
 * as private members. I create them in my Init() function. The Update()
 * function rotates the pyramid and cube and calls "Draw()" for all
 * models. 
 *
 * The user can press "ESC" to exit the program and "SPACE" to
 * toggle textures on and off. Watch the framerate raise and drop!
 */
class CTestScene : public CScene  
{
public:
	/// Process user input (ESC for exit, SPACE for toggle textures)
	void ProcessInput();
	/// update the scene
	void Update();
	/// init the scene
	bool Init();
	/// constructor
	CTestScene();
	/// destructor
	virtual ~CTestScene();

private:
	bool bShowHelp;

/*
	SmartPtr<CDisk>			pDisk;
	SmartPtr<CTextHelp>		pHelpText;
	SmartPtr<CFloor>		pFloor;
	SmartPtr<CPyramid>		pPyramid;
	SmartPtr<CFloatingText> pText;
	SmartPtr<CTexturedCube> pCube;
	SmartPtr<CLight>		pLight;
*/
	RefCountPtr<CDisk>			pDisk;
	RefCountPtr<CTextHelp>		pHelpText;
	RefCountPtr<CFloor>		pFloor;
	RefCountPtr<CPyramid>		pPyramid;
	RefCountPtr<CFloatingText> pText;
	RefCountPtr<CTexturedCube> pCube;
	RefCountPtr<CLight>		pLight;
};

#endif // !defined(AFX_TESTSCENE_H__13133FE1_9F6C_11D4_A9EA_00105A2EAD2D__INCLUDED_)

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us