HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_RandomSequence.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  */
7 
8 #ifndef __UT_RandomSequence_H__
9 #define __UT_RandomSequence_H__
10 
11 #include "UT_API.h"
12 
14 {
15 public:
16  explicit UT_RandomSequence (int n = 0, int c = 0);
17 
18  void setCurrent(int c = 0) { current = (unsigned)(c + 1); }
19  void setSize(int n);
20 
21  unsigned getCurrent() { return(current - 1); }
22  unsigned getSize() { return(size); }
23 
24 // This method returns the next integer in the sequence.
25  unsigned getNext();
26 
27 protected:
28 private:
29 
30  unsigned current;
31  unsigned mask;
32  unsigned size;
33 };
34 
35 #endif
#define UT_API
Definition: UT_API.h:14
GLdouble n
Definition: glcorearb.h:2008
void setCurrent(int c=0)
GLint GLuint mask
Definition: glcorearb.h:124
GLsizeiptr size
Definition: glcorearb.h:664