summaryrefslogtreecommitdiff
path: root/platform/haiku/context_gl_haiku.h
blob: e37fe14970ae2983b26fd7d34fdf8454c9d1306f (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
#ifndef CONTEXT_GL_HAIKU_H
#define CONTEXT_GL_HAIKU_H

#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)

#include "drivers/gl_context/context_gl.h"

#include "haiku_direct_window.h"
#include "haiku_gl_view.h"

class ContextGL_Haiku : public ContextGL {
private:
	HaikuGLView* view;
	HaikuDirectWindow* window;

public:
	ContextGL_Haiku(HaikuDirectWindow* p_window);
	~ContextGL_Haiku();

	virtual Error initialize();
	virtual void release_current();	
	virtual void make_current();	
	virtual void swap_buffers();
	virtual int get_window_width();
	virtual int get_window_height();
};

#endif
#endif