Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Context.h
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2013 Blender Foundation. All rights reserved. */ | * Copyright 2013 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup GHOST | * \ingroup GHOST | ||||
| * Declaration of GHOST_Context class. | * Declaration of GHOST_Context class. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "GHOST_IContext.h" | #include "GHOST_IContext.h" | ||||
| #include "GHOST_Types.h" | #include "GHOST_Types.h" | ||||
| #include "glew-mx.h" | #include <epoxy/gl.h> | ||||
| #include <cstdlib> // for NULL | #include <cstdlib> // for NULL | ||||
| class GHOST_Context : public GHOST_IContext { | class GHOST_Context : public GHOST_IContext { | ||||
| public: | public: | ||||
| /** | /** | ||||
| * Constructor. | * Constructor. | ||||
| * \param stereoVisual: Stereo visual for quad buffered stereo. | * \param stereoVisual: Stereo visual for quad buffered stereo. | ||||
| ▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | public: | ||||
| * \return The ID of an OpenGL frame-buffer object. | * \return The ID of an OpenGL frame-buffer object. | ||||
| */ | */ | ||||
| virtual unsigned int getDefaultFramebuffer() | virtual unsigned int getDefaultFramebuffer() | ||||
| { | { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| protected: | protected: | ||||
| void initContextGLEW(); | |||||
| bool m_stereoVisual; | bool m_stereoVisual; | ||||
| /** Caller specified, not for internal use. */ | /** Caller specified, not for internal use. */ | ||||
| void *m_user_data = nullptr; | void *m_user_data = nullptr; | ||||
| static void initClearGL(); | static void initClearGL(); | ||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| Show All 16 Lines | |||||