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
11
#include "
ocean/platform/apple/ios/IOS.h
"
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
*/
24
@interface
OpenGLViewController
:
GLKViewController
25
26
/**
27
* Makes the OpenGL context of this controller the current context.
28
*/
29
- (void)
makeOpenGLContextCurrent
;
30
31
@end
32
33
#endif
// META_OCEAN_PLATFORM_APPLE_IOS_OPEN_GL_VIEW_CONTROLLER_H
GLKViewController
OpenGLViewController
The ViewController responsible for the OpenGL context.
Definition:
OpenGLViewController.h:25
-[OpenGLViewController makeOpenGLContextCurrent]
void makeOpenGLContextCurrent()
Makes the OpenGL context of this controller the current context.
IOS.h
impl
ocean
platform
apple
ios
OpenGLViewController.h
Generated on Wed Nov 13 2024 18:48:18 for Ocean by
1.9.1