1 OpenGL Ræ Graphics with the X Window System Ræ èversion 1.3è Document Editors èversion 1.3è: Paula Womack, Jon Leech
2 Copyright cæ Silicon Graphics, Inc. This document contains unpublished information of Silicon Graphics, Inc. This document is protected by copyright, and contains information proprietary to Silicon Graphics, Inc. Any copying, adaptation, distribution, public performance, or public display of this document without the express written consent of Silicon Graphics, Inc. is strictly prohibited. The receipt or possession of this document does not convey any rights to reproduce, disclose, or distribute its contents, or to manufacture, use, or sell anything that it may describe, in whole or in part. U.S. Government Restricted Rights Legend Use, duplication, or disclosure by the Government is subject to restrictions set forth in FAR ècèè2è or subparagraph ècèè1èèiiè of the Rights in Technical Data and Computer Software clause at DFARS andèor in similar or successor clauses in the FAR or the DOD or NASA FAR Supplement. Unpublished rights reserved under the copyright laws of the United States. Contractorèmanufacturer is Silicon Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA OpenGL is a registered trademark of Silicon Graphics, Inc. Unix is a registered trademark of The Open Group. The "X" device and X Windows System are trademarks of The Open Group.
3 Contents 1 Overview 1 2 GLX Operation Rendering Contexts and Drawing Surfaces Using Rendering Contexts Direct Rendering and Address Spaces OpenGL Display Lists Texture Objects Aligning Multiple Drawables Multiple Threads Functions and Errors Errors Events Functions Initialization GLX Versioning Conæguration Management On Screen Rendering Oæ Screen Rendering Querying Attributes Rendering Contexts Events Synchronization Primitives Double Buæering Access to X Fonts Backwards Compatibility Using Visuals for Conæguration Management Oæ Screen Rendering i
4 ii CONTENTS 3.5 Rendering Contexts Encoding on the X Byte Stream Requests that hold a single extension request Request that holds multiple OpenGL commands Wire representations and byte swapping Sequentiality Extending OpenGL 47 6 GLX Versions New Commands in GLX Version New Commands in GLX Version New Commands in GLX Version Glossary 51 Index of GLX Commands 53
5 List of Figures 2.1 Direct and Indirect Rendering Block Diagram GLX byte stream iii
6 List of Tables 3.1 GLXFBConfig attributes Types of Drawables Supported by GLXFBConfig Mapping of Visual Types to GLX tokens Default values and match criteria for GLXFBConfig attributes Context attributes Masks identifying clobbered buæers GLX attributes for Visuals Defaults and selection criteria used by glxchoosevisual Relationship of OpenGL and GLX versions iv
7 Chapter 1 Overview This document describes GLX, the OpenGL extension to the X Window System. It refers to concepts discussed in the OpenGL speciæcation, and may be viewed as an X speciæc appendix to that document. Parts of the document assume some acquaintance with both OpenGL and X. In the X Window System, OpenGL rendering is made available as an extension to X in the formal X sense: connection and authentication are accomplished with the normal X mechanisms. As with other X extensions, there is a deæned network protocol for the OpenGL rendering commands encapsulated within the X byte stream. Since performance is critical in 3D rendering, there is a way for OpenGL rendering to bypass the data encoding step, the data copying, and interpretation of that data by the X server. This direct rendering is possible only when a process has direct access to the graphics pipeline. Allowing for parallel rendering has aæected the design of the GLX interface. This has resulted in an added burden on the client toexplicitly prevent parallel execution when such execution is inappropriate. X and OpenGL have diæerent conventions for naming entry points and macros. The GLX extension adopts those of OpenGL. 1
8 Chapter 2 GLX Operation 2.1 Rendering Contexts and Drawing Surfaces The OpenGL speciæcation is intentionally vague on how arendering context èan abstract OpenGL state machineè is created. One of the purposes of GLX is to provide a means to create an OpenGL context and associate it with a drawing surface. In X, a rendering surface is called a Drawable. X provides two types of Drawables: Windows which are located onscreen and Pixmaps which are maintained oæscreen. The GLX equivalent to a Window is a GLXWindow and the GLX equivalent to a Pixmap is a GLXPixmap. GLX introduces a third type of drawable, called a GLXPbuffer, for which there is no X equivalent. GLXPbuffers are used for oæscreen rendering but they have diæerent semantics than GLXPixmaps that make it easier to allocate them in non-visible frame buæer memory. GLXWindows, GLXPixmaps and GLXPbuffers are created with respect to a GLXFBConfig; the GLXFBConfig describes the depth of the color buæer components and the types, quantities and sizes of the ancillary buæers èi.e., the depth, accumulation, auxiliary, and stencil buæersè. Double buæering and stereo capability is also æxed by the GLXFBConfig. Ancillary buæers are associated with a GLXDrawable, not with a rendering context. If several rendering contexts are all writing to the same window, they will share those buæers. Rendering operations to one window never aæect the unobscured pixels of another window, or the corresponding pixels of ancillary buæers of that window. If an Expose event is received by the client, the values in the ancillary buæers and in the back buæers for regions corresponding to the exposed region become undeæned. 2
9 2.2. USING RENDERING CONTEXTS 3 A rendering context can be used with any GLXDrawable that it is compatible with èsubject to the restrictions discussed in the section on address space and the restrictions discussed under glxcreatepixmapè. A drawable and context are compatible if they æ support the same type of rendering èe.g., RGBA or color indexè æ have color buæers and ancillary buæers of the same depth. For example, a GLXDrawable that has a front left buæer and a back left buæer with red, green and blue sizes of 4 would not be compatible with a context that was created with a visual or GLXFBConfig that has only a front left buæer with red, green and blue sizes of 8. However, it would be compatible with a context that was created with a GLXFBConfig that has only a front left buæer if the red, green and blue sizes are 4. æ were created with respect to the same X screen As long as the compatibility constraint is satisæed èand the address space requirement is satisæedè, applications can render into the same GLXDrawable, using diæerent rendering contexts. It is also possible to use a single context to render into multiple GLXDrawables. For backwards compatibility with GLX versions 1.2 and earlier, a rendering context can also be used to render into a Window. Thus, a GLXDrawable is the union fglxwindow, GLXPixmap, GLXPbuffer, Windowg. In X, Windows are associated with a Visual. In GLX the deænition of Visual has been extended to include the types, quantities and sizes of the ancillary buæers and information indicating whether or not the Visual is double buæered. For backwards compatibility, a GLXPixmap can also be created using a Visual. 2.2 Using Rendering Contexts OpenGL deænes both client state and server state. Thus a rendering context consists of two parts: one to hold the client state and one to hold the server state. Each thread can have at most one current rendering context. In addition, a rendering context can be current for only one thread at a time. The client is responsible for creating a rendering context and a drawable. Issuing OpenGL commands may cause the X buæer to be æushed. In particular, calling glflush when indirect rendering is occurring, will æush both the X and OpenGL rendering streams.
10 4 CHAPTER 2. GLX OPERATION GLX Client Application and Toolkit GLX Xlib (client state) Direct GL Renderer (server state) X Server Dispatch X Renderer GL Renderer (server state) Framebuffer Figure 2.1. Direct and Indirect Rendering Block Diagram. Some state is shared between the OpenGL and X. The pixel values in the X frame buæer are shared. The X double buæer extension èdbeè has a deænition for which buæer is currently the displayed buæer. This information is shared with GLX. The state of which buæer is displayed tracks in both extensions, independent of which extension initiates a buæer swap. 2.3 Direct Rendering and Address Spaces One of the basic assumptions of the X protocol is that if a client can name an object, then it can manipulate that object. GLX introduces the notion of an Address Space. A GLX object cannot be used outside of the address space in which it exists. In a classic UNIX environment, each process is in its own address space. In a multi-threaded environment, each of the threads will share a virtual address space which references a common data region.
11 2.4. OPENGL DISPLAY LISTS 5 An OpenGL client that is rendering to a graphics engine directly connected to the executing CPU may avoid passing the tokens through the X server. This generalization is made for performance reasons. The model described here speciæcally allows for such optimizations, but does not mandate that any implementation support it. When direct rendering is occurring, the address space of the OpenGL implementation is that of the direct process; when direct rendering is not being used èi.e., when indirect rendering is occurringè, the address space of the OpenGL implementation is that of the X server. The client has the ability to reject the use of direct rendering, but there may be a performance penalty in doing so. In order to use direct rendering, a client must create a direct rendering context èsee ægure 2.1è. Both the client context state and the server context state of a direct rendering context exist in the client's address space; this state cannot be shared by a client in another process. With indirect rendering contexts, the client context state is kept in the client's address space and the server context state is kept in the address space of the X server. In this case the server context state is stored in an X resource; it has an associated XID and may potentially be used by another client process. Although direct rendering support is optional, all implementations are required to support indirect rendering. 2.4 OpenGL Display Lists Most OpenGL state is small and easily retrieved using the glget* commands. This is not true of OpenGL display lists, which are used, for example, to encapsulate a model of some physical object. First, there is no mechanism to obtain the contents of a display list from the rendering context. Second, display lists may be large and numerous. It may be desirable for multiple rendering contexts to share display lists rather than replicating that information in each context. GLX provides for limited sharing of display lists. Since the lists are part of the server context state they can be shared only if the server state for the sharing contexts exists in a single address space. Using this mechanism, a single set of lists can be used, for instance, by a context that supports color index rendering and a context that supports RGBA rendering. When display lists are shared between OpenGL contexts, the sharing extends only to the display lists themselves and the information about which display list numbers have been allocated. In particular, the value of the base
12 6 CHAPTER 2. GLX OPERATION set with gllistbase is not shared. Note that the list named in a glnewlist call is not created or superseded until glendlist is called. Thus if one rendering context is sharing a display list with another, it will continue to use the existing deænition while the second context is in the process of re-deæning it. If one context deletes a list that is being executed by another context, the second context will continue executing the old contents of the list until it reaches the end. A group of shared display lists exists until the last referencing rendering context is destroyed. All rendering contexts have equal access to using lists or deæning new lists. Implementations sharing display lists must handle the case where one rendering context is using a display list when another rendering context destroys that list or redeænes it. In general, OpenGL commands are not guaranteed to be atomic. The modiæca- operation of glendlist and gldeletelists are exceptions: tions to the shared context state as a result of executing glendlist or gldeletelists are atomic. 2.5 Texture Objects OpenGL texture state can be encapsulated in a named texture object. A texture object is created by binding an unused name to one of the texture targets ègl TEXTURE 1D, GL TEXTURE 2D or GL TEXTURE 3Dè of a rendering context. When a texture object is bound, OpenGL operations on the target to which it is bound aæect the bound texture object, and queries of the target to which it is bound return state from the bound texture object. Texture objects may be shared by rendering contexts, as long as the server portion of the contexts share the same address space. èlike display lists, texture objects are part of the server context state.è OpenGL makes no attempt to synchronize access to texture objects. If a texture object is bound to more than one context, then it is up to the programmer to ensure that the contents of the object are not being changed via one context while another context is using the texture object for rendering. The results of changing a texture object while another context is using it are undeæned. All modiæcations to shared context state as a result of executing glbind- Texture are atomic. Also, a texture object will not be deleted until it is no longer bound to any rendering context.
13 2.6. ALIGNING MULTIPLE DRAWABLES Aligning Multiple Drawables A client can create one window in the overlay planes and a second in the main planes and then move them independently or in concert to keep them aligned. To keep the overlay and main plane windows aligned, the client can use the following paradigm: æ Make the windows which are to share the same screen area children of a single window èthat will never be writtenè. Size and position the children to completely occlude their parent. When the window combination must be moved or resized, perform the operation on the parent. æ Make the subwindows have a background of None so that the X server will not paint into the shared area when you restack the children. æ Select for device-related events on the parent window, not on the children. Since device-related events with the focus in one of the child windows will be inherited by the parent, input dispatching can be done directly without reference to the child on top. 2.7 Multiple Threads It is possible to create a version of the client side library that is protected against multiple threads attempting to access the same connection. This is accomplished by having appropriate deænitions for LockDisplay and UnlockDisplay. Since there is some performance penalty for doing the locking, it is implementation-dependent whether a thread safe version, a non-safe version, or both versions of the library are provided. Interrupt routines may not share a connection èand hence a rendering contextè with the main thread. An application may be written as a set of co-operating processes. X has atomicity èbetween clientsè and sequentiality èwithin a single clientè requirements that limit the amount of parallelism achievable when interpreting the command streams. GLX relaxes these requirements. Sequentiality is still guaranteed within a command stream, but not between the X and the OpenGL command streams. It is possible, for example, that an X command issued by a single threaded client after an OpenGL command might be executed before that OpenGL command. The X speciæcation requires that commands are atomic:
14 8 CHAPTER 2. GLX OPERATION If a server is implemented with internal concurrency, the overall eæect must be as if individual requests are executed to completion in some serial order, and requests from a given connection must be executed in delivery order èthat is, the total execution order is a shuæe of the individual streamsè. OpenGL commands are not guaranteed to be atomic. Some OpenGL rendering commands might otherwise impair interactive use of the windowing system by the user. For instance calling a deeply nested display list or rendering a large texture mapped polygon on a system with no graphics hardware could prevent a user from popping up a menu soon enough to be usable. Synchronization is in the hands of the client. It can be maintained with moderate cost with the judicious use of the glfinish, glxwaitgl, glxwaitx, and XSync commands. OpenGL and X rendering can be done in parallel as long as the client does not preclude it with explicit synchronization calls. This is true even when the rendering is being done by the X server. Thus, a multi-threaded X server implementation may execute OpenGL rendering commands in parallel with other X requests. Some performance degradation may be experienced if needless switching between OpenGL and X rendering is done. This may involve a round trip to the server, which can be costly.
15 Chapter 3 Functions and Errors 3.1 Errors Where possible, as in X, when a request terminates with an error, the request has no side eæects. The error codes that may be generated by a request are described with that request. The following table summarizes the GLX-speciæc error codes that are visible to applications: GLXBadContext A value for a Context argument does not name a Context. GLXBadContextState An attempt was made to switch to another rendering context while the current context was in glrendermode GL FEEDBACK or GL SELECT, or a call to glxmakecurrent was made between a glbegin and the corresponding call to glend. GLXBadCurrentDrawable The current Drawable of the calling thread is a window or pixmap that is no longer valid. GLXBadCurrentWindow The current Window of the calling thread is a window that is no longer valid. This error is being deprecated in favor of GLXBadCurrentDrawable. GLXBadDrawable The Drawable argument does not name a Drawable conægured for OpenGL rendering. GLXBadFBConfig The GLXFBConfig argument does not name a GLXFBConfig. GLXBadPbuffer The GLXPbuffer argument does not name a GLXPbuffer. 9
16 10 CHAPTER 3. FUNCTIONS AND ERRORS GLXBadPixmap The Pixmap argument does not name a Pixmap that is appropriate for OpenGL rendering. GLXUnsupportedPrivateRequest May be returned in response to either a glxvendorprivate request or a glxvendorprivatewithreply request. GLXBadWindow The GLXWindow argument does not name a GLXWindow. The following error codes may be generated by a faulty GLX implementation, but would not normally be visible to clients: GLXBadContextTag A rendering request contains an invalid context tag. ècontext tags are used to identify contexts in the protocol.è GLXBadRenderRequest A glxrender request is ill-formed. GLXBadLargeRequest A glxrenderlarge request is ill-formed. 3.2 Events GLX introduces one new event: GLX PbufferClobber The given pbuæer has been removed from framebuæer memory and may no longer be valid. These events are generated as a result of conæicts in the framebuæer allocation between two drawables when one or both of the drawables are pbuæers. 3.3 Functions GLX functions should not be called between glbegin and glend operations. If a GLX function is called within a glbeginèglend pair, then the result is undeæned; however, no error is reported Initialization To ascertain if the GLX extension is deæned for an X server, use Bool glxqueryextensionèdisplay *dpy, int *error base, int *event baseè;
17 3.3. FUNCTIONS 11 dpy speciæes the connection to the X server. False is returned if the extension is not present. error base is used to return the value of the ærst error code and event base is used to return the value of the ærst event code. The constant error codes and event codes should be added to these base values to get the actual value. The GLX deænition exists in multiple versions. Use Bool glxqueryversionèdisplay *dpy, int *major, int *minorè; to discover which version of GLX is available. Upon success, major and minor are ælled in with the major and minor versions of the extension implementation. If the client and server both have the same major version number then they are compatible and the minor version that is returned is the minimum of the two minor version numbers. major and minor do not return values if they are speciæed as NULL. glxqueryversion returns True if it succeeds and False if it fails. If it fails, major and minor are not updated GLX Versioning The following functions are available only if the GLX version is 1.1 or later: const char *glxqueryextensionsstringèdisplay *dpy, int screenè; glxqueryextensionsstring returns a pointer to a string describing which GLX extensions are supported on the connection. The string is zeroterminated and contains a space-seperated list of extension names. The extension names themselves do not contain spaces. If there are no extensions to GLX, then the empty string is returned. const char *glxgetclientstringèdisplay *dpy, int nameè; glxgetclientstring returns a pointer to a static, zero-terminated string describing some aspect of the client library. The possible values for name are GLX VENDOR, GLX VERSION, and GLX EXTENSIONS.If name is not set to one of these values then NULL is returned. The format and contents of the vendor string is implementation dependent, and the format of the extension string is the same as for glxqueryextensionsstring. The version string is laid out as follows:
18 12 CHAPTER 3. FUNCTIONS AND ERRORS émajor version.minor versionééspaceéévendor-speciæc infoé Both the major and minor portions of the version number are of arbitrary length. The vendor-speciæc information is optional. However, if it is present, the format and contents are implementation speciæc. const char* glxqueryserverstringèdisplay *dpy, int screen, int nameè; glxqueryserverstring returns a pointer to a static, zero-terminated string describing some aspect of the server's GLX extension. The possible values for name and the format of the strings is the same as for glxget- ClientString. If name is not set to a recognized value then NULL is returned Conæguration Management A GLXFBConfig describes the format, type and size of the color buæers and ancillary buæers for a GLXDrawable. When the GLXDrawable is a GLXWindow then the GLXFBConfig that describes it has an associated X Visual; for GLXPixmaps and GLXPbuffers there may or may not be an X Visual associated with the GLXFBConfig. The attributes for a GLXFBConfig are shown in Table 3.1. The constants shown here are passed to glxgetfbconægs and glxchoosefbconæg to specify which attributes are being queried. GLX BUFFER SIZE gives the total depth of the color buæer in bits. For GLXFBConfigs that correspond to a PseudoColor or StaticColor visual, this is equal to the depth value reported in the core X11 Visual. For GLXFBConfigs that correspond to a TrueColor or DirectColor visual, GLX BUFFER SIZE is the sum of GLX RED SIZE, GLX GREEN SIZE, GLX BLUE SIZE, and GLX ALPHA SIZE. Note that this value may be larger than the depth value reported in the core X11 visual since it may include alpha planes that may not be reported by X11. Also, for GLXFBConfigs that correspond to a TrueColor visual, the sum of GLX RED SIZE, GLX GREEN SIZE, and GLX BLUE SIZE may be larger than the maximum depth that core X11 can support. The attribute GLX RENDER TYPE has as its value a mask indicating what type of GLXContext a drawable created with the corresponding GLXFBConfig can be bound to. The following bit settings are supported: GLX RGBA BIT and GLX COLOR INDEX BIT. If both of these bits are set in the mask then drawables created with the GLXFBConfig can be bound to both RGBA and color index rendering contexts.
19 3.3. FUNCTIONS 13 Attribute Type Notes GLX FBCONFIG ID XID XID of GLXFBConfig GLX BUFFER SIZE integer depth of the color buæer GLX LEVEL integer frame buæer level GLX DOUBLEBUFFER boolean True if color buæers have frontèback pairs GLX STEREO boolean True if color buæers have leftèright pairs GLX AUX BUFFERS integer no. of auxiliary color buæers GLX RED SIZE integer no. of bits of Red in the color buæer GLX GREEN SIZE integer no. of bits of Green in the color buæer GLX BLUE SIZE integer no. of bits of Blue in the color buæer GLX ALPHA SIZE integer no. of bits of Alpha in the color buæer GLX DEPTH SIZE integer no. of bits in the depth buæer GLX STENCIL SIZE integer no. of bits in the stencil buæer GLX ACCUM RED SIZE integer no. Red bits in the accum. buæer GLX ACCUM GREEN SIZE integer no. Green bits in the accum. buæer GLX ACCUM BLUE SIZE integer no. Blue bits in the accum. buæer GLX ACCUM ALPHA SIZE integer no. of Alpha bits in the accum. buæer GLX RENDER TYPE bitmask which rendering modes are supported. GLX DRAWABLE TYPE bitmask which GLX drawables are supported. GLX X RENDERABLE boolean True if X can render to drawable GLX X VISUAL TYPE integer X visual type of the associated visual GLX CONFIG CAVEAT enum any caveats for the conæguration GLX TRANSPARENT TYPE enum type of transparency supported GLX TRANSPARENT INDEX VALUE integer transparent index value GLX TRANSPARENT RED VALUE integer transparent red value GLX TRANSPARENT GREEN VALUE integer transparent green value GLX TRANSPARENT BLUE VALUE integer transparent blue value GLX TRANSPARENT ALPHA VALUE integer transparent alpha value GLX MAX PBUFFER WIDTH integer maximum width of GLXPbuæer GLX MAX PBUFFER HEIGHT integer maximum height of GLXPbuæer GLX MAX PBUFFER PIXELS integer maximum size of GLXPbuæer GLX VISUAL ID integer XID of corresponding Visual Table 3.1: GLXFBConfig attributes.
20 14 CHAPTER 3. FUNCTIONS AND ERRORS GLX Token Name GLX WINDOW BIT GLX PIXMAP BIT GLX PBUFFER BIT Description GLXFBConfig supports windows GLXFBConfig supports pixmaps GLXFBConfig supports pbuæers Table 3.2: Types of Drawables Supported by GLXFBConfig GLX Token Name GLX TRUE COLOR GLX DIRECT COLOR GLX PSEUDO COLOR GLX STATIC COLOR GLX GRAY SCALE GLX STATIC GRAY GLX X VISUAL TYPE X Visual Type TrueColor DirectColor PseudoColor StaticColor GrayScale StaticGray No associated Visual Table 3.3: Mapping of Visual Types to GLX tokens. The attribute GLX DRAWABLE TYPE has as its value a mask indicating the drawable types that can be created with the corresponding GLXFBConfig èthe conæg is said to ësupport" these drawable typesè. The valid bit settings are shown in Table 3.2. For example, a GLXFBConfig for which the value of the GLX DRAWABLE TYPE attribute is GLX WINDOW BIT j GLX PIXMAP BIT j GLX PBUFFER BIT can be used to create any type of GLX drawable, while a GLXFBConfig for which this attribute value is GLX WINDOW BIT can not be used to create a GLXPixmap or a GLXPbuffer. GLX X RENDERABLE is a boolean indicating whether X can be used to render into a drawable created with the GLXFBConfig. This attribute is True if the GLXFBConfig supports GLX windows andèor pixmaps. If a GLXFBConfig supports windows then it has an associated X Visual. The value of the GLX VISUAL ID attribute speciæes the XID of the Visual and the value of the GLX X VISUAL TYPE attribute speciæes the type of Visual. The possible values are shown in Table 3.3. If a GLXFBConfig does not support windows, then querying GLX VISUAL ID will return 0 and querying GLX X VISUAL TYPE will return GLX NONE. Note that RGBA rendering may be supported for any of the six Visual
21 3.3. FUNCTIONS 15 types but color index rendering is supported only for PseudoColor, StaticColor, GrayScale, and StaticGray visuals èi.e., single-channel visualsè. If RGBA rendering is supported for a single-channel visual èi.e., if the GLX RENDER TYPE attribute has the GLX RGBA BIT setè, then the red component maps to the color buæer bits corresponding to the core X11 visual. The green and blue components map to non-displayed color buæer bits and the alpha component maps to non-displayed alpha buæer bits if their sizes are nonzero, otherwise they are discarded. The GLX CONFIG CAVEAT attribute may be set to one of the following values: GLX NONE, GLX SLOW CONFIG or GLX NON CONFORMANT CONFIG. If the attribute is set to GLX NONE then the conæguration has no caveats; if it is set to GLX SLOW CONFIG then rendering to a drawable with this conæguration may run at reduced performance èfor example, the hardware may not support the color buæer depths described by the conægurationè; if it is set to GLX NON CONFORMANT CONFIG then rendering to a drawable with this conæguration will not pass the required OpenGL conformance tests. Servers are required to export at least one GLXFBConfig that supports RGBA rendering to windows and passes OpenGL conformance èi.e., the GLX RENDER TYPE attribute must have the GLX RGBA BIT set, the GLX DRAWABLE TYPE attribute must have the GLX WINDOW BIT set and the GLX CONFIG CAVEAT attribute must not be set to GLX NON CONFORMANT CONFIGè. This GLXFBConfig must have at least one color buæer, a stencil buæer of at least 1 bit, a depth buæer of at least 12 bits, and an accumulation buæer; auxillary buæers are optional, and the alpha buæer may have 0 bits. The color buæer size for this GLXFBConfig must be as large as that of the deepest TrueColor, DirectColor, PseudoColor, orstaticcolor visual supported on framebuæer level zero èthe main image planesè, and this conæguration must be available on framebuæer level zero. If the X server exports a PseudoColor or StaticColor visual on framebuæer level 0, a GLXFBConfig that supports color index rendering to windows and passes OpenGL conformance is also required èi.e., the GLX RENDER TYPE attribute must have the GLX COLOR INDEX BIT set, the GLX DRAWABLE TYPE attribute must have the GLX WINDOW BIT set, and the GLX CONFIG CAVEAT attribute must not be set to GLX NON CONFORMANT CONFIGè. This GLXFBConfig must have at least one color buæer, a stencil buæer of at least 1 bit, and a depth buæer of at least 12 bits. It also must have as many color bitplanes as the deepest PseudoColor or StaticColor visual supported on framebuæer level zero, and the conæguration must be made available on level zero. The attribute GLX TRANSPARENT TYPE indicates whether or not the conæguration supports transparency, and if it does support transparency, what
22 16 CHAPTER 3. FUNCTIONS AND ERRORS type of transparency is available. If the attribute is set to GLX NONE then windows created with the GLXFBConfig will not have any transparent pixels. If the attribute is GLX TRANSPARENT RGB or GLX TRANSPARENT INDEX then the GLXFBConfig supports transparency. GLX TRANSPARENT RGB is only applicable if the conæguration is associated with a TrueColor or DirectColor visual: a transparent pixel will be drawn when the red, green and blue values which are read from the framebuæer are equal to GLX TRANSPARENT RED VALUE, GLX TRANSPARENT GREEN VALUE and GLX TRANSPARENT BLUE VALUE, respectively. If the conæguration is associated with a PseudoColor, StaticColor, GrayScale or StaticGray visual the transparency mode GLX TRANSPARENT INDEX is used. In this case, a transparent pixel will be drawn when the value that is read from the framebuæer is equal to GLX TRANSPARENT INDEX VALUE. If GLX TRANSPARENT TYPE is GLX NONE or GLX TRANSPARENT RGB, then the value for GLX TRANSPARENT INDEX VALUE is undeæned. If GLX TRANSPARENT TYPE is GLX NONE or GLX TRANSPARENT INDEX, then the values for GLX TRANSPARENT RED VALUE, GLX TRANSPARENT GREEN VALUE, and GLX TRANSPARENT BLUE VALUE are undeæned. When deæned, GLX TRANSPARENT RED VALUE, GLX TRANSPARENT GREEN VALUE, and GLX TRANSPARENT BLUE VALUE are integer framebuæer values between 0 and the maximum framebuæer value for the component. For example, GLX TRANSPARENT RED VALUE will range between 0 and è2**glx RED SIZEè-1. èglx TRANSPARENT ALPHA VALUE is for future use.è GLX MAX PBUFFER WIDTH and GLX MAX PBUFFER HEIGHT indicate the maximum width and height that can be passed into glxcreatepbuæer and GLX MAX PBUFFER PIXELS indicates the maximum number of pixels èwidth times heightè for a GLXPbuffer. Note that an implementation may return a value for GLX MAX PBUFFER PIXELS that is less than the maximum width times the maximum height. Also, the value for GLX MAX PBUFFER PIXELS is static and assumes that no other pbuæers or X resources are contending for the framebuæer memory. Thus it may not be possible to allocate a pbuæer of the size given by GLX MAX PBUFFER PIXELS. Use GLXFBConfig *glxgetfbconægsèdisplay *dpy, int screen, int *nelementsè; to get the list of all GLXFBConfigs that are available on the speciæed screen. The call returns an array of GLXFBConfigs; the number of elements in the array is returned in nelements.
23 3.3. FUNCTIONS 17 Use GLXFBConfig *glxchoosefbconægèdisplay *dpy, int screen, const int *attrib list, int *nelementsè; to get GLXFBConfigs that match a list of attributes. This call returns an array of GLXFBConfigs that match the speciæed attributes èattributes are described in Table 3.1è. The number of elements in the array is returned in nelements. If attrib list contains an undeæned GLX attribute, screen is invalid, or dpy does not support the GLX extension, then NULL is returned. All attributes in attrib list, including boolean attributes, are immediately followed by the corresponding desired value. The list is terminated with None. If an attribute is not speciæed in attrib list, then the default value èlisted in Table 3.4è is used èit is said to be speciæed implicitlyè. For example, if GLX STEREO is not speciæed then it is assumed to be False. If GLX DONT CARE is speciæed as an attribute value, then the attribute will not be checked. GLX DONT CARE may be speciæed for all attributes except GLX LEVEL. If attrib list is NULL or empty èærst attribute is Noneè, then selection and sorting of GLXFBConfigs is done according to the default criteria in Tables 3.4 and 3.1, as described below under Selection and Sorting. Selection of GLXFBConfigs Attributes are matched in an attribute-speciæc manner, as shown in Table 3.4. The match criteria listed in the table have the following meanings: Smaller GLXFBConfigs with an attribute value that meets or exceeds the speciæed value are returned. Larger GLXFBConfigs with an attribute value that meets or exceeds the speciæed value are returned. Exact Only GLXFBConfigs whose attribute value exactly matches the requested value are considered. Mask Only GLXFBConfigs for which the set bits of attribute include all the bits that are set in the requested value are considered. èadditional bits might be set in the attributeè. Some of the attributes, such as GLX LEVEL, must match the speciæed value exactly; others, such as GLX RED SIZE must meet or exceed the speciæed minimum values.
24 18 CHAPTER 3. FUNCTIONS AND ERRORS To retrieve an GLXFBConfig given its XID, use the GLX FBCONFIG ID attribute. When GLX FBCONFIG ID is speciæed, all other attributes are ignored, and only the GLXFBConfig with the given XID is returned ènull is returned if it does not existè. If GLX MAX PBUFFER WIDTH, GLX MAX PBUFFER HEIGHT, GLX MAX PBUFFER PIXELS, or GLX VISUAL ID are speciæed in attrib list, then they are ignored èhowever, if present, these attributes must still be followed by an attribute value in attrib listè. If GLX DRAWABLE TYPE is speciæed in attrib list and the mask that follows does not have GLX WINDOW BIT set, then the GLX X VISUAL TYPE attribute is ignored. If GLX TRANSPARENT TYPE is set to GLX NONE in attrib list, then inclusion of GLX TRANSPARENT INDEX VALUE, GLX TRANSPARENT RED VALUE, GLX TRANSPARENT GREEN VALUE, GLX TRANSPARENT BLUE VALUE, or GLX TRANSPARENT ALPHA VALUE will be ignored. If no GLXFBConfig matching the attribute list exists, then NULL is returned. If exactly one match is found, a pointer to that GLXFBConfig is returned. Sorting of GLXFBConfigs If more than one matching GLXFBConfig is found, then a list of GLXFBConfigs, sorted according to the best match criteria, is returned. The list is sorted according to the following precedence rules that are applied in ascending order èi.e., conægurations that are considered equal by lower numbered rule are sorted by the higher numbered ruleè: 1. By GLX CONFIG CAVEAT where the precedence is GLX NONE, GLX SLOW CONFIG, GLX NON CONFORMANT CONFIG. 2. Larger total number of RGBA color bits èglx RED SIZE, GLX GREEN SIZE, GLX BLUE SIZE, plus GLX ALPHA SIZEè. If the requested number of bits in attrib list for a particular color component is 0 or GLX DONT CARE, then the number of bits for that component is not considered. 3. Smaller GLX BUFFER SIZE. 4. Single buæered conæguration èglx DOUBLE BUFFER being Falseè precedes a double buæered one. 5. Smaller GLX AUX BUFFERS.
25 3.3. FUNCTIONS 19 Attribute Default Selection Sort and Sorting Priority Criteria GLX FBCONFIG ID GLX DONT CARE Exact GLX BUFFER SIZE 0 Smaller 3 GLX LEVEL 0 Exact GLX DOUBLEBUFFER GLX DONT CARE Exact 4 GLX STEREO False Exact GLX AUX BUFFERS 0 Smaller 5 GLX RED SIZE 0 Larger 2 GLX GREEN SIZE 0 Larger 2 GLX BLUE SIZE 0 Larger 2 GLX ALPHA SIZE 0 Larger 2 GLX DEPTH SIZE 0 Larger 6 GLX STENCIL SIZE 0 Larger 7 GLX ACCUM RED SIZE 0 Larger 8 GLX ACCUM GREEN SIZE 0 Larger 8 GLX ACCUM BLUE SIZE 0 Larger 8 GLX ACCUM ALPHA SIZE 0 Larger 8 GLX RENDER TYPE GLX RGBA BIT Mask GLX DRAWABLE TYPE GLX WINDOW BIT Mask GLX X RENDERABLE GLX DONT CARE Exact GLX X VISUAL TYPE GLX DONT CARE Exact 9 GLX CONFIG CAVEAT GLX DONT CARE Exact 1 GLX TRANSPARENT TYPE GLX NONE Exact GLX TRANSPARENT INDEX VALUE GLX DONT CARE Exact GLX TRANSPARENT RED VALUE GLX DONT CARE Exact GLX TRANSPARENT GREEN VALUE GLX DONT CARE Exact GLX TRANSPARENT BLUE VALUE GLX DONT CARE Exact GLX TRANSPARENT ALPHA VALUE GLX DONT CARE Exact Table 3.4: Default values and match criteria for GLXFBConfig attributes.
26 20 CHAPTER 3. FUNCTIONS AND ERRORS 6. Larger GLX DEPTH SIZE. 7. Smaller GLX STENCIL BITS. 8. Larger total number of accumulation buæer color bits èglx ACCUM RED SIZE, GLX ACCUM GREEN SIZE, GLX ACCUM BLUE SIZE, plus GLX ACCUM ALPHA SIZEè. If the requested number of bits in attrib list for a particular color component is 0 or GLX DONT CARE, then the number of bits for that component is not considered. 9. By GLX X VISUAL TYPE where the precedence is GLX TRUE COLOR, GLX DIRECT COLOR, GLX PSEUDO COLOR, GLX STATIC COLOR, GLX GRAY SCALE, GLX STATIC GRAY. Use XFree to free the memory returned by glxchoosefbconæg. To get the value of a GLX attribute for a GLXFBConfig use int glxgetfbconægattribèdisplay *dpy, GLXFBConfig config, int attribute, int *valueè; If glxgetfbconægattrib succeeds then it returns Success and the value for the speciæed attribute is returned in value; otherwise it returns one of the following errors: GLX BAD ATTRIBUTE attribute is not a valid GLX attribute. Refer to Table 3.1 and Table 3.4 for a list of valid GLX attributes. A GLXFBConfig has an associated X Visual only if the GLX DRAWABLE TYPE attribute has the GLX WINDOW BIT bit set. To retrieve the associated visual, call: XVisualInfo *glxgetvisualfromfbconægèdisplay *dpy, GLXFBConfig configè; If conæg is a valid GLXFBConfig and it has an associated X visual then information describing that visual is returned; otherwise NULL is returned. Use XFree to free the data returned.
27 3.3. FUNCTIONS On Screen Rendering To create an onscreen rendering area, ærst create an X Window with a visual that corresponds to the desired GLXFBConfig, then call GLXWindow glxcreatewindowèdisplay *dpy, GLXFBConfig config, Window win, const int *attrib listè; glxcreatewindow creates a GLXWindow and returns its XID. Any GLX rendering context created with a compatible GLXFBConfig can be used to render into this window. attrib list speciæes a list of attributes for the window. The list has the same structure as described for glxchoosefbconæg. Currently no attributes are recognized, so attrib list must be NULL or empty èærst attribute of Noneè. If win was not created with a visual that corresponds to conæg, then a BadMatch error is generated. èi.e., glxgetvisualfromfbconæg must return the visual corresponding to win when the GLXFBConfig parameter is set to conæg.è If conæg does not support rendering to windows èthe GLX DRAWABLE TYPE attribute does not contain GLX WINDOW BITè, a BadMatch error is generated. If conæg is not a valid GLXFBConfig, aglxbadfbconfig error is generated. If win is not a valid window XID, then a BadWindow error is generated. If there is already a GLXFBConfig associated with win èas a result of a previous glxcreatewindow callè, then a BadAlloc error is generated. Finally, if the server cannot allocate the new GLX window, a BadAlloc error is generated. A GLXWindow is destroyed by calling glxdestroywindowèdisplay *dpy, GLXWindow winè; This request deletes the association between the resource ID win and the GLX window. The storage will be freed when it is not current toany client. If win is not a valid GLX window then a GLXBadWindow error is generated Oæ Screen Rendering GLX supports two types of oæscreen rendering surfaces: GLXPixmaps and GLXPbuffers. GLXPixmaps and GLXPbuffers diæer in the following ways: 1. GLXPixmaps have an associated X pixmap and can therefore be rendered to by X. Since a GLXPbuffer is a GLX resource, it may not be possible to render to it using X or an X extension other than GLX.
28 22 CHAPTER 3. FUNCTIONS AND ERRORS 2. The format of the color buæers and the type and size of any associated ancillary buæers for a GLXPbuffer can only be described with a GLXFBConfig. The older method of using extended X Visuals to describe the conæguration of a GLXDrawable cannot be used. èsee section 3.4 for more information on extended visuals.è 3. It is possible to create a GLXPbuffer whose contents may be asynchronously lost at any time. 4. If the GLX implementation supports direct rendering, then it must support rendering to GLXPbuffers via a direct rendering context. Although some implementations may support rendering to GLXPixmaps via a direct rendering context, GLX does not require this to be supported. 5. The intent of the pbuæer semantics is to enable implementations to allocate pbuæers in non-visible frame buæer memory. Thus, the allocation of a GLXPbuffer can fail if there is insuæcient framebuæer resources. èimplementations are not required to virtualize pbuæer memory.è Also, clients should deallocate GLXPbuffers when they are no longer using them í for example, when the program is iconiæed. To create a GLXPixmap oæscreen rendering area, ærst create an X Pixmap of the depth speciæed by the desired GLXFBConfig, then call GLXPixmap glxcreatepixmapèdisplay *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib listè; glxcreatepixmap creates an oæscreen rendering area and returns its XID. Any GLX rendering context created with a GLXFBConfig that is compatible with conæg can be used to render into this oæscreen area. pixmap is used for the RGB planes of the front-left buæer of the resulting GLX oæscreen rendering area. GLX pixmaps may be created with a conæg that includes back buæers and stereoscopic buæers. However, glxswap- Buæers is ignored for these pixmaps. attrib list speciæes a list of attributes for the pixmap. The list has the same structure as described for glxchoosefbconæg. Currently no attributes are recognized, so attrib list must be NULL or empty èærst attribute of Noneè. A direct rendering context might not be able to be made current with a GLXPixmap.
29 3.3. FUNCTIONS 23 If pixmap was not created with respect to the same screen as conæg, then a BadMatch error is generated. If conæg is not a valid GLXFBConfig or if it does not support pixmap rendering then a GLXBadFBConfig error is generated. If pixmap is not a valid Pixmap XID, then a BadPixmap error is generated. Finally, if the server cannot allocate the new GLX pixmap, a BadAlloc error is generated. A GLXPixmap is destroyed by calling glxdestroypixmapèdisplay *dpy, GLXPixmap pixmapè; This request deletes the association between the XID pixmap and the GLX pixmap. The storage for the GLX pixmap will be freed when it is not current to any client. To free the associated X pixmap, call XFreePixmap. If pixmap is not a valid GLX pixmap then a GLXBadPixmap error is generated. To create a GLXPbuffer call GLXPbuffer glxcreatepbuæerèdisplay *dpy, GLXFBConfig config, const int *attrib listè; This creates a single GLXPbuffer and returns its XID. Like other drawable types, GLXPbuffers are shared; any client which knows the associated XID can use a GLXPbuffer. attrib list speciæes a list of attributes for the pbuæer. The list has the same structure as described for glxchoosefbconæg. Currently only four attributes can be speciæed in attrib list: GLX PBUFFER WIDTH, GLX PBUFFER HEIGHT, GLX PRESERVED CONTENTS and GLX LARGEST PBUFFER. attrib list may benull or empty èærst attribute of Noneè, in which case all the attributes assume their default values as described below. GLX PBUFFER WIDTH and GLX PBUFFER HEIGHT specify the pixel width and height of the rectangular pbuæer. The default values for GLX PBUFFER WIDTH and GLX PBUFFER HEIGHT are zero. Use GLX LARGEST PBUFFER to get the largest available pbuæer when the allocation of the pbuæer would otherwise fail. The width and height of the allocated pbuæer will never exceed the values of GLX PBUFFER WIDTH and GLX PBUFFER HEIGHT, respectively. Use glxquerydrawable to retrieve the dimensions of the allocated pbuæer. By default, GLX LARGEST PBUFFER is False. If the GLX PRESERVED CONTENTS attribute is set to False in attrib list, then an unpreserved pbuæer is created and the contents of the pbuæer may be lost
30 24 CHAPTER 3. FUNCTIONS AND ERRORS at any time. If this attribute is not speciæed, or if it is speciæed as True in attrib list, then when a resource conæict occurs the contents of the pbuæer will be preserved èmost likely by swapping out portions of the buæer from the framebuæer to main memoryè. In either case, the client can register to receive a pbuæer clobber event which is generated when the pbuæer contents have been preserved or have been damaged. èsee glxselectevent in section for more information.è The resulting pbuæer will contain color buæers and ancillary buæers as speciæed by conæg. It is possible to create a pbuæer with back buæers and to swap the front and back buæers by calling glxswapbuæers. Note that pbuæers use framebuæer resources so applications should consider deallocating them when they are not in use. If a pbuæer is created with GLX PRESERVED CONTENTS set to False, then portions of the buæer contents may be lost at any time due to frame buæer resource conæicts. Once the contents of a unpreserved pbuæer have been lost it is considered to be in a damaged state. It is not an error to render to a pbuæer that is in this state but the eæect of rendering to it is the same as if the pbuæer were destroyed: the context state will be updated, but the frame buæer state becomes undeæned. It is also not an error to query the pixel contents of such a pbuæer, but the values of the returned pixels are undeæned. Note that while this speciæcation allows for unpreserved pbuæers to be damaged as a result of other pbuæer activity, the intent is to have only the activity of visible windows damage pbuæers. Since the contents of a unpreserved pbuæer can be lost at anytime with only asynchronous notiæcation èvia the pbuæer clobber eventè, the only way a client can guarantee that valid pixels are read back with glreadpixels is by grabbing the X server. ènote that this operation is potentially expensive and should not be done frequently. Also, since this locks out other X clients, it should be done only for short periods of time.è Clients that don't wish to do this can check if the data returned by glreadpixels is valid by calling XSync and then checking the event queue for pbuæer clobber events èassuming that these events had been pulled oæ of the queue prior to the glreadpixels callè. When glxcreatepbuæer fails to create a GLXPbuffer due to insufæcient resources, a BadAlloc error is generated. If conæg is not a valid GLXFBConfig then a GLXBadFBConfig error is generated; if conæg does not support GLXPbuffers then a BadMatch error is generated. A GLXPbuffer is destroyed by calling:
31 3.3. FUNCTIONS 25 void glxdestroypbuæerèdisplay *dpy, GLXPbuffer pbufè; The XID associated with the GLXPbuffer is destroyed. The storage for the GLXPbuffer will be destroyed once it is no longer current to any client. If pbuf is not a valid GLXPbuffer then a GLXBadPbuffer error is generated Querying Attributes To query an attribute associated with a GLXDrawable call: void glxquerydrawableèdisplay *dpy, GLXDrawable draw, int attribute, unsigned int *valueè; attribute must be set to one of GLX WIDTH, GLX HEIGHT, GLX PRESERVED CONTENTS, GLX LARGEST PBUFFER, or GLX FBCONFIG ID. To get the GLXFBConfig for a GLXDrawable, ærst retrieve the XID for the GLXFBConfig and then call glxchoosefbconæg. If draw is not a valid GLXDrawable then a GLXBadDrawable error is generated. If draw is a GLXWindow or GLXPixmap and attribute is set to GLX PRESERVED CONTENTS or GLX LARGEST PBUFFER, then the contents of value are undeæned Rendering Contexts To create an OpenGL rendering context, call GLXContext glxcreatenewcontextèdisplay *dpy, GLXFBConfig config, int render type, GLXContext share list, Bool directè; glxcreatenewcontext returns NULL if it fails. If glxcreatenewcontext succeeds, it initializes the rendering context to the initial OpenGL state and returns a handle to it. This handle can be used to render to GLX windows, GLX pixmaps and GLX pbuæers. If render type is set to GLX RGBA TYPE then a context that supports RGBA rendering is created; if render type is set to GLX COLOR INDEX TYPE then a context that supports color index rendering is created. If share list is not NULL, then all display lists and texture objects except texture objects named 0 will be shared by share list and the newly created
OpenGL R Graphics with the X Window System R (Version 1.4) Editors (versions 1.0-1.2): Phil Karlton, Paula Womack Editors (version 1.3): Paula Womack, Jon Leech Editor (version 1.4): Jon Leech Copyright
BrightStor ARCserve Backup for Windows Tape RAID Option Guide r11.5 D01183-1E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the end user's
THE OPENGL SHADING LANGUAGE 1 John Kessenich Dave Baldwin Randi Rost Language Version 1.10 Document Revision 59 30-April-2004 i The OpenGL Shading Language Copyright 2002-2004 3Dlabs, Inc. Ltd. This document
CS312 OpenGL basics What is opengl? A low-level graphics library specification. A small set of geometric primitives: Points Lines Polygons Images Bitmaps Geometric primitives Image primitives OpenGL Libraries
Impact of Modern OpenGL on FPS Jan Čejka Supervised by: Jiří Sochor Faculty of Informatics Masaryk University Brno/ Czech Republic Abstract In our work we choose several old and modern features of OpenGL
AMD GPU Association Targeting GPUs for Load Balancing in OpenGL The contents of this document are provided in connection with Advanced Micro Devices, Inc. ( AMD ) products. THE INFORMATION IN THIS PUBLICATION
Lesson 10: Video-Out Interface 1. Introduction The Altera University Program provides a number of hardware controllers, called cores, to control the Video Graphics Array (VGA) Digital-to-Analog Converter
CA Performance Center Managed Service Provider Guide Version Release 2.3.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as
Chapter 6, The Operating System Machine Level 6.1 Virtual Memory 6.2 Virtual I/O Instructions 6.3 Virtual Instructions For Parallel Processing 6.4 Example Operating Systems 6.5 Summary Virtual Memory General
Visualization of 2D Domains This part of the visualization package is intended to supply a simple graphical interface for 2- dimensional finite element data structures. Furthermore, it is used as the low
Motorola 8- and 16-bit Embedded Application Binary Interface (M8/16EABI) SYSTEM V APPLICATION BINARY INTERFACE Motorola M68HC05, M68HC08, M68HC11, M68HC12, and M68HC16 Processors Supplement Version 2.0
Summary C++ Language is one of the approaches to provide object-oriented functionality with C like syntax. C++ adds greater typing strength, scoping and other tools useful in object-oriented programming
CS222: Systems Programming The Basics January 24, 2008 A Designated Center of Academic Excellence in Information Assurance Education by the National Security Agency Agenda Operating System Essentials Windows
Presentation Layer The presentation layer is concerned with preserving the meaning of information sent across a network. The presentation layer may represent (encode) the data in various ways (e.g., data
C++ How to Program, 8/e 1992-2012 by Pearson Education, Inc. 1992-2012 by Pearson Education, Inc. 1992-2012 by Pearson Education, Inc. We ve studied fixed-size data structures such as one-dimensional arrays
CA Clarity PPM Connector for Microsoft SharePoint Product Guide Service Pack 02.0.01 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred
CA ehealth Setting Up Live Monitoring of Your Service Availability Tests r6.1 This documentation and any related computer software help programs (hereinafter referred to as the Documentation ) is for the
System Monitoring and Diagnostics Guide for Siebel Business Applications April 2005 Siebel Systems, Inc., 2207 Bridgepointe Parkway, San Mateo, CA 94404 Copyright 2005 Siebel Systems, Inc. All rights reserved.
Appendix E Glossary of Object Oriented Terms abstract class: A class primarily intended to define an instance, but can not be instantiated without additional methods. abstract data type: An abstraction
CA Workload Automation Agent for Microsoft SQL Server Release Notes r11.3.1, Second Edition This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter
1 The Java Virtual Machine About the Spec Format This document describes the Java virtual machine and the instruction set. In this introduction, each component of the machine is briefly described. This
Image Editing in Photoshop CS4 Photoshop CS4 Help For more technical assistance, open Photoshop CS4 and press the F1 key, or go to Help >Photoshop Help. This will open Photoshop CS4 help topics in a web
1 Introduction in IMAQ Vision. Structure of Digital Image Processing Applications Using IMAQ Vision 1.1 Introduction A grey level image is a function expressing the spatial variation of the light intensity
Faculty of Computer Science / Institute of Systems Architecture / Operating Systems SYSTEMS PROGRAMMING C++ INTRODUCTION Alexander Warg WHY C++? C++ is the language that allows to express ideas from the
CA Clarity Project & Portfolio Manager Using CA Clarity PPM with Open Workbench and Microsoft Project v12.1.0 This documentation and any related computer software help programs (hereinafter referred to
INTERNATIONAL TELECOMMUNICATION UNION ITU-T X.690 TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU (07/2002) SERIES X: DATA NETWORKS AND OPEN SYSTEM COMMUNICATIONS OSI networking and system aspects Abstract
Synchronization in Java We often want threads to co-operate, typically in how they access shared data structures. Since thread execution is asynchronous, the details of how threads interact can be unpredictable.
Herbert Martin Dietze University of Buckingham email@example.com July 24, 2001 Abstract The course introduces the C programming language and fundamental software development techniques.
C++ Keywords There are many keywords in C++ that are not used in other languages. bool, const_cast, delete, dynamic_cast, const, enum, extern, register, sizeof, typedef, explicit, friend, inline, mutable,
Application Note 154 LabVIEW Data Storage Introduction This Application Note describes the formats in which you can save data. This information is most useful to advanced users, such as those using shared
Advanced C++ Exception Handling Topic #5 CS202 5-1 CS202 5-2 Exception Handling Throwing an Exception Detecting an Exception Catching an Exception Examine an Example using Classes and Operator Overloading
OpenGL Insights Edited by Patrick Cozzi and Christophe Riccio ARB debug output: A Helping Hand for Desperate Developers 33 António Ramires Fernandes and Bruno Oliveira 33.1 Introduction Since the inception
Buffers Objectives Introduce additional OpenGL buffers Learn to read and write buffers Learn to use blending Buffer Define a buffer by its spatial resolution (n x m) and its depth k, the number of bits/pixel
User Manual pdoc Forms Designer Copyright Topaz Systems Inc. All rights reserved. For Topaz Systems, Inc. trademarks and patents, visit www.topazsystems.com/legal. Table of Contents 1.0 Introduction...
Introduction to Operating Systems File System Implementation II Performance, Recovery, Network File System John Franco Electrical Engineering and Computing Systems University of Cincinnati Review Block
HelenOS IPC and Behavior Protocols Martin Děcký DISTRIBUTED SYSTEMS RESEARCH GROUP http://dsrg.mff.cuni.cz/ CHARLES UNIVERSITY IN PRAGUE FACULTY OF MATHEMATICS AND PHYSICS Motivation HelenOS components1
VERITAS Database Edition 2.1.2 for Oracle on HP-UX 11i Performance Report V E R I T A S W H I T E P A P E R Table of Contents Introduction.................................................................................1
opensoundcontrol.org Home The Open Sound Control 1.0 Specification Version 1.0, March 26 2002, Matt Wright Introduction Open Sound Control (OSC) is an open, transport-independent, message-based protocol
CA ARCserve Backup for Windows Agent for Sybase Guide r16 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation
CA Data Protection Content Provider Development Guide Release 15.0 This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter referred to as the Documentation
Introduction Borland C++ Compiler: Operators An operator is a symbol that specifies which operation to perform in a statement or expression. An operand is one of the inputs of an operator. For example,
Handling State in Web Applications Jeff Offutt http://www.cs.gmu.edu/~offutt/ SWE 642 Software Engineering for the World Wide Web sources: Professional Java Server Programming, Patzer, Wrox Web Technologies:
Portal Connector Fields and Widgets Technical Documentation 1 Form Fields 1.1 Content 1.1.1 CRM Form Configuration The CRM Form Configuration manages all the fields on the form and defines how the fields
Bertrand Mermet Sylvain Ract Linux Driver Devices. Why, When, Which, How? Since its creation in the early 1990 s Linux has been installed on millions of computers or embedded systems. These systems may
Schema Classes Polyhedra Ltd Copyright notice This document is copyright 1994-2006 by Polyhedra Ltd. All Rights Reserved. This document contains information proprietary to Polyhedra Ltd. It is supplied
Affdex SDK for Windows SDK Developer Guide 1 Introduction Affdex SDK is the culmination of years of scientific research into emotion detection, validated across thousands of tests worldwide on PC platforms,
Analysis of the NXT Bluetooth Communication Protocol By Sivan Toledo September 2006 The NXT supports Bluetooth communication between a program running on the NXT and a program running on some other Bluetooth
etrust Audit Using the Recorder for Check Point FireWall-1 1.5 This documentation and related computer software program (hereinafter referred to as the Documentation ) is for the end user s informational
Introduction to Visual Basic and Visual C++ Array Lesson 7 Declare and Assign Array I154-1-A A @ Peter Lo 2010 1 I154-1-A A @ Peter Lo 2010 2 What is Array? Why use Array? An array is a collection of data
CA Nimsoft Service Desk Single Sign-On Configuration Guide 6.2.6 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation
Using Image Processing and Visualization to Teach Object Oriented Programming in C++ Author: C. Rolstad, Oslo University College, Cort Adelersgate 30, 0254 Oslo, Norway. firstname.lastname@example.org Abstract When
JEDMICS C4 COMPRESSED IMAGE FILE FORMAT TECHNICAL SPECIFICATION FOR THE JOINT ENGINEERING DATA MANAGEMENT INFORMATION AND CONTROL SYSTEM (JEDMICS) APRIL 2002 PREPARED BY: NORTHROP GRUMMAN INFORMATION TECHNOLOGY
CA Nimsoft Monitor Probe Guide for Email Gateway emailgtw v2.7 series Copyright Notice This online help system (the "System") is for your informational purposes only and is subject to change or withdrawal
ProCAP Transfer with Omneon Interface 1 Table of Contents: Table of Contents:... 2 Transfer Omneon Overview... 3 Single Transfer... 4 Loading Transfer Files...4 Selecting the Video Clip...5 Encode Properties...7
Creating PivotTables in Excel 2010 Table of Contents OVERVIEW OF PIVOTTABLE AND PIVOTCHART REPORTS... 4 WHAT IS A PIVOTTABLE REPORT?... 4 Ways to work with a PivotTable report... 5 WHAT IS A PIVOTCHART
2016 PTC Inc. All Rights Reserved. 2 Table of Contents 1 Table of Contents 2 3 Overview 3 Main Window 4 Server Connection 6 Group 9 Items 10 Data Types Description 13 Operations 14 Options 17 Test Mode
SMTP-32 Library Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows Version 5.2 Copyright 1994-2003 by Distinct Corporation All rights reserved Table of Contents 1 Overview... 5 1.1
The Design of the OpenGL Graphics Interface Mark Segal Kurt Akeley Silicon Graphics Computer Systems 2011 N. Shoreline Blvd., Mountain View, CA 94039 Abstract OpenGL is an emerging graphics standard that
Vanguard Applications Ware IP and LAN Feature Protocols Firewall Notice 2008 Vanguard Networks. 25 Forbes Boulevard Foxboro, Massachusetts 02035 Phone: (508) 964-6200 Fax: 508-543-0237 All rights reserved
The ImageJ user interface ImageJ Quick Reference The ImageJ user interface is nearly identical for Windows and Macintosh operating systems, except for the location of the menu bar. Windows Under Windows,
"SQL Database Professional " module PRINTED MANUAL "SQL Database Professional " module All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
Unicenter Patch Management Best Practices for Managing Security Updates R11 This documentation (the Documentation ) and related computer software program (the Software ) (hereinafter collectively referred
3F6 - Software Engineering and Design Handout 10 Distributed Systems I With Markup Steve Young Contents 1. Distributed systems 2. Client-server architecture 3. CORBA 4. Interface Definition Language (IDL)
Process Management CS 502 Spring 99 WPI MetroWest/Southboro Campus Processes Process Concept Process Scheduling Operations on Processes Cooperating Processes Threads Interprocess Communication 1 1 Process
Computer Graphics Hardware An Overview Graphics System Monitor Input devices CPU/Memory GPU Raster Graphics System Raster: An array of picture elements Based on raster-scan TV technology The screen (and
COS 318: Operating Systems Snapshot and NFS Andy Bavier Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall10/cos318/ Topics Revisit Transactions and Logging
4D Plugin SDK v11 4D Plugin API 4D Plugin API v11 is a major upgrade of 4D Plugin API. The two major modifications are that it is now fully Unicode compliant, and that it gives support to the new 4D pictures.
Extracting, Storing And Viewing The Data From Dicom Files L. Stanescu, D.D Burdescu, A. Ion, A. Caldare, E. Georgescu University of Kraiova, Romania Faculty of Control Computers and Electronics www.software.ucv.ro/en.
Using Process Monitor Process Monitor Tutorial This information was adapted from the help file for the program. Process Monitor is an advanced monitoring tool for Windows that shows real time file system,
E-mail Listeners 6 E-mail Formats You use the E-mail Listeners application to receive and process Service Requests and other types of tickets through e-mail in the form of e-mail messages. Using E- mail
OpenGL in Visual C++.NET Chang-Chieh Cheng Medical Image Processing Lab, Dept. of Computer Science, NCTU Win32 API What is Win32 API: It is designed for use by C/C++ programs and is the most direct way
Benha University 2 nd Term (May 2014) Final Exam Class: 3 rd Year Students Subject: Operating Systems Faculty of Computers & Informatics Date: 17/5/2014 Time: 3 hours Answer the following questions:- Question
Monitors, Java, Threads and Processes 185 An object-oriented view of shared memory A semaphore can be seen as a shared object accessible through two methods: wait and signal. The idea behind the concept
DATA ITEM DESCRIPTION Form Approved OMB NO.0704-0188 Public reporting burden for collection of this information is estimated to average 110 hours per response, including the time for reviewing instructions,
Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C 1 An essential part of any embedded system design Programming 2 Programming in Assembly or HLL Processor and memory-sensitive
SolarWinds Understanding SolarWinds Charts and Graphs Technical Reference Copyright 1995-2015 SolarWinds Worldwide, LLC. All rights reserved worldwide. No part of this document may be reproduced by any
Outline: Operating Systems What is an OS OS Functions Multitasking Virtual Memory File Systems Window systems PC Operating System Wars: Windows vs. Linux 1 Operating System provides a way to boot (start)