Subversion Repositories gelsvn

Rev

Rev 322 | Rev 418 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 322 Rev 417
Line 77... Line 77...
77
 
77
 
78
  Vec3f image[TEX_SIZE][TEX_SIZE];
78
  Vec3f image[TEX_SIZE][TEX_SIZE];
79
  unsigned int image_tex;
79
  unsigned int image_tex;
80
 
80
 
81
  // Function to generate a random number between 0 and 1.
81
  // Function to generate a random number between 0 and 1.
82
  // rand() returns a random number ranging from 0 to RAND_MAX.
82
  // gel_rand() returns a random number ranging from 0 to GEL_RAND_MAX.
83
  inline double my_random()
83
  inline double my_random()
84
  {
84
  {
85
    return rand()/static_cast<double>(RAND_MAX);
85
    return gel_rand()/static_cast<double>(GEL_RAND_MAX);
86
  }
86
  }
87
		
87
		
88
  AABBTree bb_tree;		
88
  AABBTree bb_tree;		
89
}
89
}
90
 
90