Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ContextEGL.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 | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "GHOST_Context.h" | #include "GHOST_Context.h" | ||||
| #include "GHOST_System.h" | #include "GHOST_System.h" | ||||
| #include <GL/eglew.h> | #include <epoxy/egl.h> | ||||
| #include <epoxy/gl.h> | |||||
| #ifndef GHOST_OPENGL_EGL_CONTEXT_FLAGS | #ifndef GHOST_OPENGL_EGL_CONTEXT_FLAGS | ||||
| # define GHOST_OPENGL_EGL_CONTEXT_FLAGS 0 | # define GHOST_OPENGL_EGL_CONTEXT_FLAGS 0 | ||||
| #endif | #endif | ||||
| #ifndef GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY | #ifndef GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY | ||||
| # define GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY 0 | # define GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY 0 | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | public: | ||||
| EGLDisplay getDisplay() const; | EGLDisplay getDisplay() const; | ||||
| EGLConfig getConfig() const; | EGLConfig getConfig() const; | ||||
| EGLContext getContext() const; | EGLContext getContext() const; | ||||
| private: | private: | ||||
| bool initContextEGLEW(); | bool bindAPI(EGLenum api); | ||||
| const GHOST_System *const m_system; | const GHOST_System *const m_system; | ||||
| EGLNativeDisplayType m_nativeDisplay; | EGLNativeDisplayType m_nativeDisplay; | ||||
| EGLNativeWindowType m_nativeWindow; | EGLNativeWindowType m_nativeWindow; | ||||
| const EGLint m_contextProfileMask; | const EGLint m_contextProfileMask; | ||||
| const EGLint m_contextMajorVersion; | const EGLint m_contextMajorVersion; | ||||
| Show All 29 Lines | |||||