1 // 2 // Copyright 2018 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // ContextWGL.h: Context class for GL on Windows. Wraps a RendererWGL. 8 9 #ifndef LIBANGLE_RENDERER_GL_WGL_CONTEXTWGL_H_ 10 #define LIBANGLE_RENDERER_GL_WGL_CONTEXTWGL_H_ 11 12 #include "libANGLE/renderer/gl/ContextGL.h" 13 #include "libANGLE/renderer/gl/wgl/RendererWGL.h" 14 15 namespace rx 16 { 17 class ContextWGL : public ContextGL 18 { 19 public: 20 ContextWGL(const gl::State &state, 21 gl::ErrorSet *errorSet, 22 const std::shared_ptr<RendererWGL> &renderer); 23 ~ContextWGL() override; 24 25 HGLRC getContext() const; 26 27 private: 28 std::shared_ptr<RendererWGL> mRendererWGL; 29 }; 30 } // namespace rx 31 32 #endif // LIBANGLE_RENDERER_GL_WGL_RENDERERWGL_H_ 33