OpenTK [1]
PUBLISHED
The Tizen OpenTK provides a set of fast and low-level C# bindings for OpenGL® ES 2.0 APIs. From Tizen 5.0, it is integrated with Tizen Application Framework.
For developing the OpenGL® app using C# on the Tizen platform, an app developer uses the TizenFX APIs, the .NET Standard 2.0 APIs, and the OpenTK APIs based on their needs.
Besides the OpenGL® ES APIs, OpenTK also provides several utility libraries including a math or linear algebra package, windowing system, and input handling for application developers.
After setting up the OpenTK development environment, you can quickly create graphic applications with the OpenGL® ES 2.0, such as ambient applications, games, dynamic partial, physics effect.
The OpenTK app offers the following features:
- Create graphics with the OpenGL® ES 2.0.
- GUI animation with 3D acceleration.
- Windowing systems to help you get started.
- Input handling and other game essentials.
- Powerful, highly optimized, and reliable linear algebra library.
Key Concepts
To use OpenTK in your application, understand the following OpenTK key concepts:
-
TizenGameApplication
: The application lifecycle manager and base class of OpenTK app for Tizen.TizenGameApplication
is integrated with the Tizen Application Framework. Therefore, you can get the events from the Tizen Application Framework. The OpenTK app implements virtual lifecycle functions to customize their own app flow. For example,OnCreate
,OnPause
,OnResume
,OnTerminate
,OnAppControlReceived
,OnDeviceOrientationChanged
, and so on.For more information, see Applications [2].
-
Window
: An attribute ofTizenGameApplication
. It provides window related attributes, which includeX
,Y
,Width
,Height
,Title
,WindowInfo
, and so on.It also provides Events and OpenGL context related functions:
Events
Load
Unload
UpdateFrame
RenderFrame
OpenGL® context related functions
MakeCurrent
Run
SwapBuffers
-
WindowAttributes
: An attribute ofTizenGameApplication
. It provides window-controlling attributes, such asIsFocusAllowed
andWindowOpacity
. It also provides a methodAddAuxiliaryHint
.