raSystem  1.0 bata
raFractal.h
Go to the documentation of this file.
1 #pragma once
2 
3  class RAPI raFractal : public raEntity<VERTEXPOSITIONCOLOR, false>
4  {
5  public:
6  raFractal(raSmartPointer<raDirectX> dx, int Level, bool bRandom = true, raMaterial* mat = (NULL));
7 
8  virtual void SetupVertices();
9 
10  float m_max_angle;
11  float m_max_lenght;
12 
13  private:
14  bool m_bRandom;
15  int m_level;
16 
17  void makeChildren(VERTEXPOSITIONCOLOR* vertices,
18  raVector3 v0, raVector3 v1, int& n, int level);
19  };
#define RAPI
Definition: raMain.h:11
float m_max_angle
Definition: raFractal.h:10
float m_max_lenght
Definition: raFractal.h:11
virtual void SetupVertices()=0