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(void) { return(current - 1); }
22  unsigned getSize(void) { return(size); }
23 
24 // This method returns the next integer in the sequence.
25  unsigned getNext(void);
26 
27 protected:
28 private:
29 
30  unsigned current;
31  unsigned mask;
32  unsigned size;
33 };
34 
35 #endif
GLint GLuint mask
Definition: glcorearb.h:123
#define UT_API
Definition: UT_API.h:13
GLsizeiptr size
Definition: glcorearb.h:663
GLdouble n
Definition: glcorearb.h:2007
unsigned getSize(void)
void setCurrent(int c=0)
unsigned getCurrent(void)