Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -6,7 +6,9 @@
|
|||
using namespace std;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const float PI = 3.1415926536f;
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
class myBitmap
|
||||
|
|
@ -128,7 +130,7 @@ class fractalTree
|
|||
{
|
||||
public:
|
||||
fractalTree() { _ang = DegToRadian( 24.0f ); }
|
||||
float DegToRadian( float degree ) { return degree * ( PI / 180.0f ); }
|
||||
float DegToRadian( float degree ) { return degree * ( M_PI / 180.0f ); }
|
||||
|
||||
void create( myBitmap* bmp )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
#include <time.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef WITH_CAIRO
|
||||
#define PI 3.1415926535
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
#define SIZE 800 // determines size of window
|
||||
|
|
@ -74,7 +74,7 @@ void render(SDL_Surface * surface){
|
|||
surface->h - 10.0,
|
||||
0.0, -1.0,
|
||||
INITIAL_LENGTH,
|
||||
PI / 8,
|
||||
M_PI / 8,
|
||||
BRANCHES);
|
||||
SDL_UpdateRect(surface, 0, 0, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue