1/*
2 * Copyright 2006-2008, Philippe Houdoin. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include <kernel/image.h>
8
9#include "GLRenderer.h"
10
11
12BGLRenderer::BGLRenderer(BGLView* view, ulong glOptions)
13	:
14	fRefCount(1),
15	fView(view),
16	fOptions(glOptions)
17{
18}
19
20
21BGLRenderer::~BGLRenderer()
22{
23}
24
25
26void
27BGLRenderer::Acquire()
28{
29	atomic_add(&fRefCount, 1);
30}
31
32
33void
34BGLRenderer::Release()
35{
36	if (atomic_add(&fRefCount, -1) <= 1)
37		delete this;
38}
39
40
41void
42BGLRenderer::LockGL()
43{
44}
45
46
47void
48BGLRenderer::UnlockGL()
49{
50}
51
52
53void
54BGLRenderer::SwapBuffers(bool VSync)
55{
56}
57
58
59void
60BGLRenderer::Draw(BRect updateRect)
61{
62}
63
64
65status_t
66BGLRenderer::CopyPixelsOut(BPoint source, BBitmap* dest)
67{
68	return B_ERROR;
69}
70
71
72status_t
73BGLRenderer::CopyPixelsIn(BBitmap* source, BPoint dest)
74{
75	return B_ERROR;
76}
77
78
79void
80BGLRenderer::FrameResized(float width, float height)
81{
82}
83
84
85void
86BGLRenderer::DirectConnected(direct_buffer_info* info)
87{
88}
89
90
91void
92BGLRenderer::EnableDirectMode(bool enabled)
93{
94}
95
96
97status_t BGLRenderer::_Reserved_Renderer_0(int32 n, void* p) { return B_ERROR; }
98status_t BGLRenderer::_Reserved_Renderer_1(int32 n, void* p) { return B_ERROR; }
99status_t BGLRenderer::_Reserved_Renderer_2(int32 n, void* p) { return B_ERROR; }
100status_t BGLRenderer::_Reserved_Renderer_3(int32 n, void* p) { return B_ERROR; }
101status_t BGLRenderer::_Reserved_Renderer_4(int32 n, void* p) { return B_ERROR; }
102