networking
This commit is contained in:
46
external/steamworks/steamworksexample/StarField.h
vendored
Normal file
46
external/steamworks/steamworksexample/StarField.h
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
//========= Copyright <20> 1996-2008, Valve LLC, All rights reserved. ============
|
||||
//
|
||||
// Purpose: Class for rendering the starfield
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================
|
||||
|
||||
#ifndef STARFIELD_H
|
||||
#define STARFIELD_H
|
||||
|
||||
#include <vector>
|
||||
#include "GameEngine.h"
|
||||
|
||||
#define STARFIELD_STAR_COUNT 600
|
||||
|
||||
struct StarVertex_t
|
||||
{
|
||||
float x, y;
|
||||
DWORD color;
|
||||
};
|
||||
|
||||
class CStarField
|
||||
{
|
||||
public:
|
||||
// Constructor
|
||||
CStarField( IGameEngine *pGameEngine );
|
||||
|
||||
// Render the star field
|
||||
void Render();
|
||||
|
||||
private:
|
||||
|
||||
void Init();
|
||||
|
||||
private:
|
||||
int m_nWidth;
|
||||
int m_nHeight;
|
||||
|
||||
// Game engine instance we are running under
|
||||
IGameEngine *m_pGameEngine;
|
||||
|
||||
// Vector for starfield data
|
||||
std::vector<StarVertex_t> m_VecStars;
|
||||
};
|
||||
|
||||
#endif // STARFIELD_H
|
||||
Reference in New Issue
Block a user