aboutsummaryrefslogtreecommitdiff
path: root/xbmc/windowing/osx/OpenGL/OSXGLView.h
blob: 016e102e78cd89835936563507a9ad09c57942cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

/*
 *  Copyright (C) 2021- Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#import <Cocoa/Cocoa.h>

@interface OSXGLView : NSOpenGLView

- (id)initWithFrame:(NSRect)frameRect;
- (CGLContextObj)getGLContextObj;

/**
 * @brief Update the current OpenGL context (view is set before updating)
 */
- (void)Update;
/**
 * @brief Copies the back buffer to the front buffer of the OpenGL context.
 */
- (void)FlushBuffer;

@end