xbmc
OSXGLView.h
1 #pragma once
2 
3 /*
4  * Copyright (C) 2021- Team Kodi
5  * This file is part of Kodi - https://kodi.tv
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  * See LICENSES/README.md for more information.
9  */
10 
11 #import <Cocoa/Cocoa.h>
12 
13 @interface OSXGLView : NSOpenGLView
14 
15 - (id)initWithFrame:(NSRect)frameRect;
16 - (CGLContextObj)getGLContextObj;
17 
23 - (void)NotifyContext;
27 - (void)Update;
31 - (void)FlushBuffer;
32 
36 @property(atomic, assign) BOOL glContextOwned;
37 
38 @end
void Update()
Update the current OpenGL context (view is set before updating)
Definition: OSXGLView.mm:197
void NotifyContext()
Application renders out of the NSOpenGLView drawRect (on a different thread).
Definition: OSXGLView.mm:204
void FlushBuffer()
Copies the back buffer to the front buffer of the OpenGL context.
Definition: OSXGLView.mm:213
Definition: OSXGLView.h:13
BOOL glContextOwned
Specifies if the glContext is currently owned by the view.
Definition: OSXGLView.h:36