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  GLDisplayList(int count=1);
11  ~GLDisplayList();
12  operator bool() const { return isCompiled(); }
13  bool isCompiled() const;
14  void beginCompile(int index=0);
15  void endCompile();
16  void call(int index=0) const;
17  void callAll() const;
18  void erase();
19 
20  std::shared_ptr<int> id;
21  int count;
22 };
23 
24 } //namespace GLDraw
25 
26 #endif
27 
28 
Definition: GLDisplayList.h:8
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:13