summaryrefslogtreecommitdiff
path: root/include/HaikuGL/GLRenderer.h
diff options
context:
space:
mode:
authorX512 <danger_mail@list.ru>2022-11-13 18:13:21 +0900
committerMarge Bot <emma+marge@anholt.net>2023-02-18 00:44:43 +0000
commitda73bcac37fb79e1e881c38ced350a285a57859c (patch)
tree98f0b01810ad6ce5a7c0e26952abc53a9d526d10 /include/HaikuGL/GLRenderer.h
parentadbe8b6c17a76bb5ee0b924d927473f81c593eba (diff)
downloadmesa-da73bcac37fb79e1e881c38ced350a285a57859c.tar.gz
mesa-da73bcac37fb79e1e881c38ced350a285a57859c.tar.bz2
mesa-da73bcac37fb79e1e881c38ced350a285a57859c.zip
hgl: remove
Use EGL and glvnd instead on Haiku platform. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21079>
Diffstat (limited to 'include/HaikuGL/GLRenderer.h')
-rw-r--r--include/HaikuGL/GLRenderer.h73
1 files changed, 0 insertions, 73 deletions
diff --git a/include/HaikuGL/GLRenderer.h b/include/HaikuGL/GLRenderer.h
deleted file mode 100644
index 5c9c4daaeb6..00000000000
--- a/include/HaikuGL/GLRenderer.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright 2006, Philippe Houdoin. All rights reserved.
- * Distributed under the terms of the MIT License.
-
- * This header defines BGLRenderer, the base class making up
- * the Haiku GL renderer add-ons (essentially selfcontained C++
- * shared libraries that do the actual rendering such as
- * libswpipe.so and libswrast.so)
- */
-#ifndef GLRENDERER_H
-#define GLRENDERER_H
-
-
-#include <BeBuild.h>
-#include <GLView.h>
-
-
-class BGLDispatcher;
-class GLRendererRoster;
-
-typedef unsigned long renderer_id;
-
-class _EXPORT BGLRenderer
-{
- // Private unimplemented copy constructors
- BGLRenderer(const BGLRenderer &);
- BGLRenderer & operator=(const BGLRenderer &);
-
-public:
- BGLRenderer(BGLView *view, ulong bgl_options);
- virtual ~BGLRenderer();
-
- void Acquire();
- void Release();
-
- virtual void LockGL();
- virtual void UnlockGL();
-
- virtual void SwapBuffers(bool VSync = false);
- virtual void Draw(BRect updateRect);
- virtual status_t CopyPixelsOut(BPoint source, BBitmap *dest);
- virtual status_t CopyPixelsIn(BBitmap *source, BPoint dest);
-
- virtual void FrameResized(float width, float height);
-
- virtual void DirectConnected(direct_buffer_info *info);
- virtual void EnableDirectMode(bool enabled);
-
- inline int32 ReferenceCount() const { return fRefCount; };
- inline ulong Options() const { return fOptions; };
- inline BGLView* GLView() { return fView; };
-
-private:
- friend class GLRendererRoster;
-
- virtual status_t _Reserved_Renderer_0(int32, void *);
- virtual status_t _Reserved_Renderer_1(int32, void *);
- virtual status_t _Reserved_Renderer_2(int32, void *);
- virtual status_t _Reserved_Renderer_3(int32, void *);
- virtual status_t _Reserved_Renderer_4(int32, void *);
-
- int32 fRefCount; // How much we're still useful
- BGLView* fView; // Never forget who is the boss!
- ulong fOptions; // Keep that tune in memory
-
- GLRendererRoster* fOwningRoster;
- renderer_id fID;
-};
-
-extern "C" _EXPORT BGLRenderer* instantiate_gl_renderer(BGLView *view, ulong options);
-
-
-#endif // GLRENDERER_H