KrisLibrary  1.0.0
GLDisplayList.h
1 #ifndef GL_DISPLAY_LIST_H
2 #define GL_DISPLAY_LIST_H
3 
4 #include <memory>
5 
6 namespace GLDraw {
7 
9 {
10  explicit GLDisplayList(int count=1);
11  GLDisplayList(const GLDisplayList& rhs)=default;
12  ~GLDisplayList();
13  operator bool() const { return isCompiled(); }
14  GLDisplayList& operator = (const GLDisplayList& rhs)=default;
15  bool isCompiled() const;
16  void beginCompile(int index=0);
17  void endCompile();
18  void call(int index=0) const;
19  void callAll() const;
20  void erase();
21 
22  std::shared_ptr<int> id;
23  int count;
24 };
25 
26 } //namespace GLDraw
27 
28 #endif
29 
30 
Definition: GLDisplayList.h:8
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:14