Execution Model

The model for interpretation of OpenGL commands is client/server. Application code (the client) issues commands, which are interpreted and processed by OpenGL (the server). The server may or may not operate on the same computer as the client. In this sense, OpenGL is network-transparent. A server can maintain several OpenGL contexts, each of which is an encapsulated OpenGL state. A client can connect to any one of these contexts. The required network protocol can be implemented by augmenting an already existing protocol (such as that of the X Window System) or by using an independent protocol. No OpenGL commands are provided for obtaining user input.

OpenGL命令的解释模型是客户机/服务器。应用程序代码(客户机)发出由OpenGL(服务器)解释和处理的命令。服务器可能与客户机在同一台计算机上运行,也可能不运行。从这个意义上说,OpenGL是网络透明的。服务器可以维护多个OpenGL上下文,每个上下文都是封装的OpenGL状态。客户机可以连接到这些上下文中的任何一个。所需的网络协议可以通过扩展现有的协议(例如X Window System的协议)或使用独立的协议来实现。没有提供OpenGL命令来获取用户输入。

The window system that allocates framebuffer resources ultimately controls the effects of OpenGL commands on the framebuffer. The window system:

分配framebuffer资源的窗口系统最终控制OpenGL命令对framebuffer的影响。窗口系统:

1. Determines which portions of the framebuffer OpenGL may access at any given time.

          确定framebuffer OpenGL的哪些部分可以在任何给定时间访问。

2. Communicates to OpenGL how those portions are structured.

          与OpenGL沟通这些部分的结构。

Therefore, there are no OpenGL commands to configure the framebuffer or initialize OpenGL. Frame buffer configuration is done outside of OpenGL in conjunction with the window system; OpenGL initialization takes place when the window system allocates a window for OpenGL rendering.

因此,没有OpenGL命令来配置framebuffer或初始化OpenGL。帧缓冲区配置是在OpenGL外部与窗口系统一起完成的;当窗口系统为OpenGL呈现分配一个窗口时,将进行OpenGL初始化。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 7,606评论 0 3
  • 本篇文章是基于谷歌有关Graphic的一篇概览文章的翻译:http://source.android.com/de...
    lee_3do阅读 11,988评论 2 21
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,479评论 0 23
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,163评论 0 10
  • 昨天晚上我继续写《门前那条路》,本来构思及内容都准备挺丰富的,可我写着写着就快睡着了,真的实在太困了。想好了下一句...
    三月晨曦阅读 2,860评论 4 7