First of all, what is OpenTK?
首先,什么是OpenTK?
Simply put, the Open Toolkit is a free project that allows you to use OpenGL, OpenGL|ES, OpenCL and OpenAL APIs from managed languages.
简而言之,Open Toolkit是一个免费项目,允许您使用托管语言中的OpenGL、OpenGL|ES、OpenCL和OpenAL API。
OpenTK started life as an experimental fork of the Tao framework before during the summer of 2006. It's original intention was to provide a cleaner wrapper than Tao.OpenGL, but it quickly grew in focus: right now, it provides access to various Khronos and Creative APIs and handles the necessary initialization logic for each API. As such, the Open Toolkit is most similar to projects like Tao, SlimDX, SDL or GLFW.
OpenTK在2006年夏天开始作为Tao框架的实验分支。它的初衷是提供比Tao.OpenGL更干净的包裹器,但它很快成为焦点:现在,它提供了对各种Khronos和Creative API的访问,并为每个API处理必要的初始化逻辑。因此,开放工具包(OpenToolKit,即为opentk)与Tao、SlimDX、SDL或GLFW等项目最为相似。
Unlike similar libraries, OpenTK attempts provide a consistent interface that utilizes the superior managed runtime. Instead of untyped pointers, OpenTK provides generics. Instead of plain constants, OpenTK uses strongly-typed enumerations. Instead of plain function lists, OpenTK separates functions per extension category. A common math library is integrated and directly usable by each API.
与类似的库不同,OpenTK尝试提供一个利用高级托管运行时的一致接口。OpenTK提供泛型,而不是非类型化指针。OpenTK使用强类型枚举代替普通常量。OpenTK不是简单的函数列表,而是按扩展类别分离函数。每个API都集成了一个通用的数学库并可直接使用。
Features:特点: Written in cross-platform C# and usable by all managed languages (F#, Boo,VB.Net, C++/CLI)。 用跨平台C#编写,可用于所有托管语言(F#、Boo、VB.Net、C++/CLI)。 Consistent, strongly-typed bindings, suitable for RAD development。 一致的强类型绑定,适用于RAD开发。 Usable stand-alone or integrated with Windows.Forms, GTK#WPF。 可独立使用或与Windows集成。表格,GTK#,WPF。 Cross-platform binaries that are portable on .Net and Mono without recompilation。 跨平台二进制文件,可在.Net和Mono上移植,无需重新编译。 Wide platform support: Windows, Linux, Mac OS X, with iPhone port in progress。 广泛的平台支持:Windows、Linux、Mac OS X,iPhone端口正在进行中。The Open Toolkit is suitable for games, scientific visualizations and all kinds of software that requires advanced graphics, audio or compute capabilities. It's license makes it suitable for both free and commercial applications.
开放工具包(opentk)适用于游戏、科学可视化和需要高级图形、音频或计算能力的各种软件。它的许可证使它适用于免费和商业应用。
2.1 The DisplayDevice class
There are three main types of display devices: monitors, projectors and TV screens. OpenTK exposes all of them through the same interface: OpenTK.DisplayDevice.
显示设备有三种主要类型:监视器、投影仪和电视屏幕。OpenTK通过同一个接口(OpenTK.DisplayDevice)公开所有这些设备。
You can use OpenTK.DisplayDevice to query available display devices, discover and modify their properties. 您可以使用OpenTK.DisplayDevice查询可用的显示设备,发现并修改其属性。参考:\OpenTK.1.0\Documentation\Manual.pdf
标签:OpenGL,Introduction,简介,DisplayDevice,API,OpenTK,Tao,Open From: https://www.cnblogs.com/2008nmj/p/16877192.html