Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / osx / OpenGLWrapper.cxx
blobfc008f41929d737b25605feeec697ae76d2da289
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include "OpenGLWrapper.hxx"
12 void OpenGLWrapper::swapBuffers(NSOpenGLView* pView)
14 [[pView openGLContext] flushBuffer];
17 void OpenGLWrapper::makeCurrent(NSOpenGLView* pView)
19 [[pView openGLContext] makeCurrentContext];
22 void OpenGLWrapper::resetCurrent()
24 [NSOpenGLContext clearCurrentContext];
27 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */