2013-03-07 01:26:55 +00:00
OpenTK
======
2014-05-19 21:01:29 +00:00
2016-11-22 23:10:30 +00:00
### MAINTAINERS WANTED
OpenTK is a large project, with a huge number of components. We're looking to add a more maintainers to the team.
Email [@varon ](https://github.com/varon ) or message him in Gitter if you'd like to help out.
2016-02-18 10:51:10 +00:00
[![Join the chat at https://gitter.im/opentk/opentk ](https://badges.gitter.im/opentk/opentk.svg )](https://gitter.im/opentk/opentk?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2014-07-21 12:28:24 +00:00
The Open Toolkit library is a fast, low-level C# binding for OpenGL, OpenGL ES and OpenAL. It runs on all major platforms and powers hundreds of apps, games and scientific research.
Use OpenTK to add cross-platform 3d graphics, audio, compute and haptics to your C# application. Integrate it into your existing user interface or use it standalone without any external dependencies.
2014-05-19 21:01:29 +00:00
2016-11-23 15:58:03 +00:00
Project website: https://opentk.github.io/
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
Official git repository: https://github.com/opentk/opentk
2014-05-19 21:01:29 +00:00
2017-08-22 12:20:45 +00:00
Build Status
========
| Platform | Status |
| -------------- | -------------- |
| Windows | [![Build status ](https://ci.appveyor.com/api/projects/status/opentk/branch/develop?svg=true )](https://ci.appveyor.com/project/varon/opentk/branch/develop) |
| Mono/Linux | [![Build status ](https://travis-ci.org/opentk/opentk.svg?branch=develop )](https://travis-ci.org/opentk/opentk) |
2013-11-12 01:03:24 +00:00
Features
========
2014-05-19 21:01:29 +00:00
2017-08-04 16:23:19 +00:00
- Create cutting-edge graphics with OpenGL 4.6 and OpenGL ES 3.0
2014-07-21 12:28:24 +00:00
- Spice up your GUI with 3d acceleration
2014-01-15 13:16:00 +00:00
- Improve your code flow with strong types and inline documentation
2014-05-19 21:01:29 +00:00
- Write once run everywhere
OpenTK is available for Windows, Linux, Mac OS X, *BSD, SteamOS, Android and iOS. It can be used standalone or integrated into a GUI (Windows.Forms, WPF, GTK+, Qt, VTK, ...)
[Download binaries ](http://www.opentk.com ) or [NuGet packages ](http://www.nuget.org/packages/OpenTK/ )
Instructions
============
2016-07-17 23:42:48 +00:00
The simplest way to use OpenTK in your project is to install the [NuGet package ](http://www.nuget.org/packages/OpenTK/ ).
2017-08-04 09:30:42 +00:00
If you want to try out the latest development build from the `develop` branch, we also have a [MyGet feed ](https://www.myget.org/F/opentk-develop/api/v3/index.json ).
2015-02-11 05:53:12 +00:00
Note what installing NuGet package will add reference to OpenTK.dll, but OpenTK.dll.config
will not be copied to the project output directory automatically, so you need to add it to your project
and then enable the "Copy to Output Directory" option (as in step 3 below).
2014-05-19 21:01:29 +00:00
2014-07-21 12:28:24 +00:00
To build OpenTK from source, simply double-click OpenTK.sln and build through your IDE.
2014-05-19 21:01:29 +00:00
2014-07-21 12:28:24 +00:00
Alternatively, open a command prompt and type:
2014-06-20 09:36:16 +00:00
```
2014-07-21 12:28:24 +00:00
git clone https://github.com/opentk/opentk # Download source code from git
cd opentk # Enter the source directory
2016-07-17 23:42:48 +00:00
./build.cmd # Build on .Net (Windows)
./build.sh # Build on Mono (Linux / Mac OS X)
2014-06-20 09:36:16 +00:00
```
2014-05-19 21:01:29 +00:00
2014-07-21 12:28:24 +00:00
2014-05-19 21:01:29 +00:00
News
====
2017-05-08 20:58:47 +00:00
### 2017-05-08
A pre-release package is available.
https://www.nuget.org/packages/OpenTK/3.0.0-pre
2017-05-08 21:00:25 +00:00
2017-05-08 20:58:47 +00:00
https://www.nuget.org/packages/OpenTK.GLControl/3.0.0-pre
2016-09-23 18:51:52 +00:00
### 2016-09-23
OpenTK 2.0.0 is now available for download from [Nuget ](https://www.nuget.org/packages/OpenTK/2.0.0 ).
Aside from being a maintenance release to bring the current package closer in-line with develop, this the project's first release since adopting a new build system.
Release notes:
- Moved to new FAKE/Paket based build system
- Removed superfluous release configurations
- Numerous other fixes and enhancements
We would welcome any feedback on the package, so please open a GitHub issue if you require assistance or experience difficulties.
2016-07-19 12:33:35 +00:00
### 2016-07-19
The new OpenTK website is live. You can view it at [opentk.github.io ](https://opentk.github.io/ )
We are currently looking for contributors for tutorials and other resources.
### 2016-07-13
A pre-release package is available.
https://www.nuget.org/packages/OpenTK.Next/1.2.2336.6514-pre
https://www.nuget.org/packages/OpenTK.Next.GLControl/1.2.2336.6514-pre
2016-09-23 18:51:52 +00:00
*The OpenTK.Next package id will no longer be used for future releases.
2016-07-19 12:33:35 +00:00
2016-09-23 18:51:52 +00:00
### 2014-07-24
2016-07-19 12:33:35 +00:00
2014-07-23 23:14:05 +00:00
OpenTK 1.1.4c was released on 24 July 2014.
2014-07-23 22:37:01 +00:00
2014-07-23 23:14:05 +00:00
This is a hotfix release that improves stability on Mac OS X. Moreover, it synchronizes the GamePad configuration database with SDL 2.0.4 and fixes an invalid GUID introduced in 1.1.4b.
2014-07-23 22:37:01 +00:00
2017-01-31 14:19:39 +00:00
### 2014-07-21
2016-09-23 18:51:52 +00:00
2014-07-21 12:28:24 +00:00
OpenTK 1.1.4 was released on 21 July 2014.
2014-05-19 21:01:29 +00:00
2014-07-21 12:28:24 +00:00
This release resolves a number of identified issues, adds experimental support for Linux/KMS and synchronizes the OpenGL and OpenGL ES bindings with the July 2014 Khronos specifications.
2014-05-19 21:01:29 +00:00
2014-05-19 21:11:25 +00:00
**Changelog:**
2014-05-19 21:08:22 +00:00
2014-07-21 12:28:24 +00:00
1. Fixed a memory leak in OpenGL functions accepting a string array.
2. Fixed an issue where `MakeCurrent()` might fail on Linux/X11 when using the Nvidia closed-source drivers.
3. Fixed an issue where `GameWindow` might remain open on Linux/X11 after calling `Close()` or `Dispose()` .
4. Fixed a potential crash on Mac OS X systems without hardware acceleration (e.g. virtual machines).
5. Fixed function parameters for the `OES_byte_coordinates` extension.
2014-07-21 16:07:23 +00:00
6. Fixed an issue where OpenTK would always perform a full rebuild even when a partial rebuild could work.
7. Fixed all compilation warnings on VS2013 and Mono 3.4.0.
8. Improved OpenGL and OpenGL ES documentation on 'count' parameters.
9. New platform: Linux/KMS. You can now run OpenTK applications on a Linux terminal without an X11 display server.
10. New OpenGL ES extensions:
2014-07-21 12:28:24 +00:00
- ANDROID_extension_pack_es31a
2014-06-20 09:36:16 +00:00
2014-07-21 12:28:24 +00:00
OpenTK 1.1.4 is backwards compatible with 1.1.3. Users of previous versions are **strongly** encouraged to upgrade.
2014-05-19 21:01:29 +00:00
Known issues
============
2014-07-21 12:28:24 +00:00
1. The SDL2 backend has a number of limitations compared to the native platform backends. In particular, SDL2 does not support:
- `OpenTK.GLControl` . OpenTK will automatically switch to a native platform backend instead.
2014-05-19 21:01:29 +00:00
- `DisplayDevice.ChangeResolution()` without a fullscreen `INativeWindow` .
2014-07-21 12:28:24 +00:00
- Switching between `WindowBorder.Fixed` and `WindowBorder.Resizable` .
- High-resolution mouse input. Additionally, it is limited to a single keyboard and mouse device.
2. OpenTK.Input.GamePad.SetVibration is currently not implemented. This API will be implemented in a future release.
2014-02-17 18:46:22 +00:00
2014-01-15 13:16:00 +00:00
Contributing
============
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
1. Install git and a C# IDE (see requirements section below)
2. Fork the _develop_ branch of https://github.com/opentk/opentk
3. Commit your changes in small, incremental steps with clear descriptions
4. When ready, issue a Pull Request (PR) against the _develop_ branch of https://github.com/opentk/opentk
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
For details on coding style and best practices, refer to https://github.com/opentk/opentk/wiki/Contributing
2014-05-19 21:01:29 +00:00
Some areas we could really use your help:
2016-03-28 14:44:52 +00:00
- Tutorials for OpenGL 3.x and 4.x. [Inspiration here ](https://github.com/g-truc/ogl-samples )
2014-05-19 21:11:25 +00:00
- New platforms:
2014-05-19 21:01:29 +00:00
- Native Client (NaCL)
2014-06-20 09:36:16 +00:00
- Blackberry
2014-05-19 21:01:29 +00:00
- Wayland
- Mir
- WinRT (via ANGLE)
- New features:
- Multitouch
2014-07-21 12:28:24 +00:00
- Force feedback
2014-06-20 09:36:16 +00:00
- Improved joystick support (HID backend for Windows, Linux)
2014-05-19 21:01:29 +00:00
2014-06-20 09:36:16 +00:00
Further ideas for improvement are always welcome!
2014-05-19 21:01:29 +00:00
2013-11-12 10:24:25 +00:00
Requirements
============
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
- Windows (XP/Vista/7/8), Linux, Mac OS X, *BSD, SteamOS, Android or iOS
2015-03-20 16:43:42 +00:00
- For graphics, OpenGL drivers or a suitable emulator, such as [ANGLE ](https://github.com/opentk/opentk/tree/develop/Dependencies/Readme.txt )
- For audio, OpenAL drivers or [OpenAL Soft ](https://github.com/opentk/opentk/tree/develop/Dependencies/Readme.txt )
2014-01-15 13:16:00 +00:00
- To develop desktop applications: Visual Studio, Xamarin Studio, MonoDevelop or SharpDevelop
- To develop Android applications: Xamarin Studio or the Xamarin Extensions for Visual Studio
- To develop iOS applications: Xamarin Studio and XCode
2014-05-19 21:01:29 +00:00
2013-03-22 21:48:13 +00:00
Documentation
=============
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
Your favorite IDE will display inline documentation for all OpenTK APIs. Additional information can be found in the [OpenTK Manual ](http://www.opentk.com/doc ) and in the [opentk/Documentation/ ](https://github.com/opentk/opentk/tree/develop/Documentation ) folder.
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
Technical documentation about the implementation of OpenTK can be found in the [Technical Wiki ](https://github.com/opentk/opentk/wiki ).
2014-05-19 21:01:29 +00:00
2013-03-22 21:48:13 +00:00
Need Help?
==========
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
Post your questions at the [OpenTK forums ](http://www.opentk.com/forum ).
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
Report bugs at https://github.com/opentk/opentk/issues
2014-05-19 21:01:29 +00:00
2013-11-12 10:24:25 +00:00
License
=======
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
The Open Toolkit is distributed under the permissive MIT/X11 license and is absolutely free.
2014-05-19 21:01:29 +00:00
2014-01-15 13:16:00 +00:00
http://www.opentk.com/project/license
2014-05-19 21:01:29 +00:00
API compatibility
=================
2014-07-21 12:28:24 +00:00
OpenTK 1.1.4 is backwards compatible with 1.1.3.
2014-06-20 09:36:16 +00:00
OpenTK 1.1.3 is backwards compatible with 1.1.2.
2014-05-19 21:01:29 +00:00
OpenTK 1.1.2 is backwards compatible with 1.1.1.
OpenTK 1.1.1 is backwards compatible with 1.1.0.
OpenTK 1.1.0 is not backwards compatible with 1.0. Most projects will be able to upgrade without any modifications. Projects using the following signatures will have to implement the suggested changes:
Namespace OpenTK.Graphics.OpenGL
Change signature:
- GL.MultiDrawArrays (`out` -> `ref` )
- GL.Amd.DeletePerfMonitors (`out` -> `ref` )
Change signature (may cause crash):
- GL.Apple.ObjectPurgeable (returns `AppleObjectPurgeable` instead of `IntPtr` )
- GL.Ext.SeparableFilter2D
- GL.Ibm.EdgeFlagPointerList (`bool[]` -> `bool*[]` )
- GL.NV.TransformFeedbackVaryings (`string[]` -> `int[]` )
Change return type:
- GL.WaitSync (returns `WaitSyncFlags` instead of `ArbSync` )
Namespace OpenTK.Graphics.ES11
Change return type:
- GL.GetError (`ErrorCode` instead of `All` )
Change `ref` parameters to `out` :
- GL.GenBuffers
- GL.GenTextures
- GL.GetBoolean
- GL.GetBufferParameter
- GL.GetClipPlane
- GL.GetClipPlanex
- GL.GetFixed
- GL.GetFloat
- GL.GetInteger
- GL.GetLight
- GL.GetLightx
- GL.GetMaterial
- GL.GetMaterialx
- GL.GetTexEnv
- GL.GetTexEnvx
- GL.GetTexParameter
- GL.GetTexParameterx
- GL.Oes.GenFramebuffers
- GL.Oes.GetClipPlane
- GL.Oes.GetClipPlanex
- GL.Oes.GetFixed
- GL.Oes.GetFramebufferAttachmentParameter
- GL.Oes.GetLightx
- GL.Oes.GetMaterialx
- GL.Oes.GetRenderbufferParameter
- GL.Oes.GetTexEnvx
- GL.Oes.GetTexGen
- GL.Oes.GetTexGenx
- GL.Oes.GetTexParameterx
- GL.Oes.QueryMatrixx
- GL.NV.GenFences
- GL.NV.GetFence
Change namespace:
- GL.ClipPlanefIMG -> GL.Img.ClipPlane
- GL.DisableDriverControlQCOM -> GL.Qcom.DisableDriverControl
Namespace OpenTK.Graphics.ES20.GL
Change signature (may cause crash):
- GL.NV.GetFence now takes three parameters instead of two
Change `ref` parameters to `out` :
- GL.GetActiveAttrib
- GL.GetActiveUniform
- GL.GetAttachedShaders
- GL.GetProgramInfoLog
- GL.GetShaderInfoLog
- GL.GetShaderSource
- GL.Amd.GetPerfMonitorCounterData
- GL.Amd.GetPerfMonitorCounters
- GL.Amd.GetPerfMonitorCounterString
- GL.Amd.GetPerfMonitorGroup
- GL.Amd.GetPerfMonitorGroupString
- GL.Amd.SelectPerfMonitorCounters
Change namespace:
- GL.DisableDriverControlQCOM -> GL.Qcom.DisableDriverControl
- GL.GetDriverControlsQCOM -> GL.Qcom.GetDriverControls
- GL.GetDriverControlStringQCOM -> GL.Qcom.GetDriverControlString
2014-07-21 12:28:24 +00:00
See also
========
[Delta Engine ](http://deltaengine.net/ ), a high-level, open-source game engine.
[MonoGame ](https://github.com/mono/monogame ), an open-source, cross-platform implementation of XNA.