arsa  2.7
cdxstar.h
Go to the documentation of this file.
1 
16 // CDXStarField Class
19 #include "cdx.h"
20 
21 #define MAXSTARS 10000
23 
25 {
26 public:
27  int m_X;
28  int m_Y;
29  int m_Z;
30  int m_OldX;
31  int m_OldY;
32  int m_Color;
33 };
34 
36 {
37 public:
39  virtual ~CDXStarField();
40 
41  virtual void Create();
42  virtual void Update(bool bErase = TRUE);
43  virtual void CreateStars();
44  virtual void CalcPosition();
45  virtual void ClearStars();
46  virtual void SetLayerZero();
47  virtual void SetNumberofStars(int);
48  virtual void SetMode(m_Mode mode = HORIZONTAL) { m_StarMode = mode; }
49  virtual void SetSize(int size) { m_Thickness = size; }
50  virtual void SetArea(int x, int y, int w, int h);
51  virtual void SetVel(int vel) { m_StarVelocity = vel; } // default: 2
52  virtual void SetThickness(int thickness) { m_Thickness = thickness; } // default: 2
53  virtual void SetTowards(bool active) { m_Towards = active; } // default: true
54  virtual void SetFlashing(bool active) { m_Flashing = active; } // default: false
55  virtual void SetColored(bool active) { m_Colored = active; } // default: false
56 
57 private:
58  CDXScreen* m_Screen;
59 // CDXLayer * Layer = 0;
61 
62  int m_NumStars;
63  int m_StarVelocity;
64  int m_Width;
65  int m_Height;
66  //int m_LWidth;
67  //int m_LHeight;
68  int m_CenterX;
69  int m_CenterY;
70  int m_Left;
71  int m_Right;
72  int m_Top;
73  int m_Bottom;
74  int m_Thickness;
75 
76  m_Mode m_StarMode;
77 
78  bool m_Towards;
79  bool m_Flashing;
80  bool m_Colored;
81 };
m_Mode
Definition: cdxstar.h:22
GLfloat GLfloat GLfloat GLfloat h
virtual void SetMode(m_Mode mode=HORIZONTAL)
Definition: cdxstar.h:48
GLsizeiptr size
#define TRUE
Definition: cdx.h:174
virtual void SetFlashing(bool active)
Definition: cdxstar.h:54
#define MAXSTARS
Definition: cdxstar.h:21
virtual void SetTowards(bool active)
Definition: cdxstar.h:53
virtual void SetVel(int vel)
Definition: cdxstar.h:51
GLenum mode
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
virtual void SetThickness(int thickness)
Definition: cdxstar.h:52
Definition: cdxstar.h:22
#define ARSA_API
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
virtual void SetSize(int size)
Definition: cdxstar.h:49
Definition: cdx.h:253
GLubyte GLubyte GLubyte GLubyte w
virtual void SetColored(bool active)
Definition: cdxstar.h:55