summaryrefslogtreecommitdiff
path: root/src/OffscreenView.h
blob: 69bda4c2db6cf3769ff1e2c915e00f2a09b4ece7 (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
34
35
36
37
38
#ifndef OFFSCREENVIEW_H_
#define OFFSCREENVIEW_H_

#include "OffscreenContext.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <string>
#ifndef _MSC_VER
#include <stdint.h>
#endif
#include "system-gl.h"
#include <iostream>
#include "GLView.h"

class OffscreenView : public GLView
{
public:
	OffscreenView(size_t width, size_t height); // not
	~OffscreenView(); // not

	void initializeGL(); //
	void paintGL(); //

	bool save(const char *filename);
	bool save(std::ostream &output);
  std::string getRendererInfo() const;
	OffscreenContext *ctx; // not

#ifdef ENABLE_OPENCSG
	bool is_opencsg_capable;
	bool has_shaders;
	void enable_opencsg_shaders();
  bool opencsg_support;
  int opencsg_id;
#endif
};

#endif
contact: Jan Huwald // Impressum