summaryrefslogtreecommitdiffstats
path: root/src/hgl/GLRenderer.cpp
blob: 4573a64a35c56f8304ae6d3c4484c9f0302d55cc (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
 * Copyright 2006-2008, Philippe Houdoin. All rights reserved.
 * Distributed under the terms of the MIT License.
 */


#include <kernel/image.h>

#include "GLRenderer.h"

#include "GLDispatcher.h"


BGLRenderer::BGLRenderer(BGLView* view, ulong glOptions,
	BGLDispatcher* dispatcher)
	:
	fRefCount(1),
	fView(view),
	fOptions(glOptions),
	fDispatcher(dispatcher)
{
}


BGLRenderer::~BGLRenderer()
{
	delete fDispatcher;
}


void
BGLRenderer::Acquire()
{
	atomic_add(&fRefCount, 1);
}


void
BGLRenderer::Release()
{
	if (atomic_add(&fRefCount, -1) < 1)
		delete this;
}


void
BGLRenderer::LockGL()
{
}


void
BGLRenderer::UnlockGL()
{
}


void
BGLRenderer::SwapBuffers(bool VSync)
{
}


void
BGLRenderer::Draw(BRect updateRect)
{
}


status_t
BGLRenderer::CopyPixelsOut(BPoint source, BBitmap* dest)
{
	return B_ERROR;
}


status_t
BGLRenderer::CopyPixelsIn(BBitmap* source, BPoint dest)
{
	return B_ERROR;
}


void
BGLRenderer::FrameResized(float width, float height)
{
}


void
BGLRenderer::DirectConnected(direct_buffer_info* info)
{
}


void
BGLRenderer::EnableDirectMode(bool enabled)
{
}


status_t BGLRenderer::_Reserved_Renderer_0(int32 n, void* p) { return B_ERROR; }
status_t BGLRenderer::_Reserved_Renderer_1(int32 n, void* p) { return B_ERROR; }
status_t BGLRenderer::_Reserved_Renderer_2(int32 n, void* p) { return B_ERROR; }
status_t BGLRenderer::_Reserved_Renderer_3(int32 n, void* p) { return B_ERROR; }
status_t BGLRenderer::_Reserved_Renderer_4(int32 n, void* p) { return B_ERROR; }