The OpenGL Extensions Guide (Charles River Media Graphics) by Eric Lengyel

By Eric Lengyel

OpenGL is the prime atmosphere for constructing 2nd and 3D images and video game functions.

The interface has been the alternative of online game programmers, frequently as a result of its cross-platform operability, but in addition since it is continually evolving to maintain speed with advances within the type of extensions. earlier, the sport used to be missing one unmarried, concise connection with assist in making experience of the handfuls of extensions to be had.

The OpenGL Extensions Guide offers this a lot wanted source and concentrates in particular at the extensions most vital to constructing sleek 3D video games. The ebook is specified by an intuitive model, discussing teams of extensions that adjust or increase comparable parts of the bottom OpenGL structure.

In addition, the textual content focuses almost always on operational and implementation matters, discussing the underlying arithmetic of an extension purely while it really is serious to knowing that extension's performance.

Show description

Read or Download The OpenGL Extensions Guide (Charles River Media Graphics) PDF

Similar games books

Dungeon Keeper 2 (Prima's Official Strategy Guide)

You're fidgeting with the massive boys now, Keeper. This publication offers the entire area you'll ever need!

• Deep down and soiled secrets and techniques of overall dungeon management
• Maps of each realm, exhibiting each creature, each catch, each secret
• whole stats on all creatures, heroes, spells, and traps
• an in depth walkthrough of the full campaign
• every thing you must understand to construct definitely the right lethal Dungeon

Liberty, Games and Contracts: Jan Narveson and the Defence of Libertarianism

Jan Narveson is among the most important modern defenders of the libertarian political place. not like different libertarians who commonly guard their view on the subject of average rights or an attract utilitarianism, Narveson's major contribution has been to supply a philosophical defence of libertarianism in accordance with a Hobbesian individualist contractarian ethic.

Extra info for The OpenGL Extensions Guide (Charles River Media Graphics)

Sample text

For texture unit 0, this is equivalent to the primary color. GL_TEXTUREi_ARB The filtered texel color from the ith texture unit. The texture environment operations to be performed on the RGB and alpha portions of the incoming fragment color are established just as they are using the GL_ARB_ texture_env_combine extension, except that GL_SOURCE3_RGB_NV, GL_SOURCE3_ ALPHA_NV, GL_OPERAND3_RGB_NV, and GL_OPERAND3_ALPHA_NV are now accepted by the pname parameter of the glTexEnv{if}[v] function. 3. 1 are scaled by the values of GL_RGB_SCALE_ARB and GL_ALPHA_SCALE.

When the glTexEnv{if}[v] function is called with the pname parameter set to GL_COMBINE_ RGB_ARB and the params parameter set to GL_DOT3_RGB_ARB or GL_DOT3_RGBA_ARB, a dot product d between the source input colors a0 and a1 is calculated as follows. 1) The dot product d is scaled by the value of GL_RGB_SCALE_ARB for the associated texture environment. If the GL_DOT3_RGB_ARB operation is used, then the alpha component of the result is calculated normally using the independent operation specified with GL_COMBINE_ALPHA_ ARB.

Description The glMultiTexCoord{1234}{sifd}[v]ARB function sets the current texture coordinates for the texture unit indicated by the texture parameter. If fewer than four coordinates are specified, then the t, r, and q coordinates are implied to be 0, 0, and 1, respectively. Hence, calling the glMultiTexCoord1{sifd}[v]ARB function sets the current texture coordinates to 〈s,0,0,1〉, calling the glMultiTexCoord2{sifd}[v]ARB function sets the current texture coordinates to 〈s,t,0,1〉, and calling the glMultiTexCoord3{sifd}[v]ARB function sets the current texture coordinates to 〈s,t,r,1〉.

Download PDF sample

Rated 4.09 of 5 – based on 25 votes