Ocean
OpenGLViewController.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_PLATFORM_APPLE_IOS_OPEN_GL_VIEW_CONTROLLER_H
9 #define META_OCEAN_PLATFORM_APPLE_IOS_OPEN_GL_VIEW_CONTROLLER_H
10 
12 
13 #ifndef __OBJC__
14  #error Platform::Apple::IOS::OpenGLViewController.h needs to be included from an ObjectiveC++ file
15 #endif
16 
17 #import <GLKit/GLKit.h>
18 
19 /**
20  * The ViewController responsible for the OpenGL context.
21  * The implementation is more or less identical to the GameViewController example of Xcode without any specific modifications.
22  * @ingroup platformappleios
23  */
25 
26 /**
27  * Makes the OpenGL context of this controller the current context.
28  */
30 
31 @end
32 
33 #endif // META_OCEAN_PLATFORM_APPLE_IOS_OPEN_GL_VIEW_CONTROLLER_H
The ViewController responsible for the OpenGL context.
Definition: OpenGLViewController.h:25
void makeOpenGLContextCurrent()
Makes the OpenGL context of this controller the current context.