blob: b79b0c9746092fd8af87b0502c0f2b76f2a61cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef LLMR_COMMON_HEADLESS_CGL
#define LLMR_COMMON_HEADLESS_CGL
#include <llmr/map/view.hpp>
#include <llmr/platform/gl.hpp>
namespace llmr {
class HeadlessView : public View {
public:
HeadlessView();
~HeadlessView();
void resize(int width, int height);
void make_active();
void swap();
unsigned int root_fbo();
private:
void clear_buffers();
private:
CGLContextObj gl_context;
GLuint fbo = 0;
GLuint fbo_depth_stencil = 0;
GLuint fbo_color = 0;
};
}
#endif
|