O'Reilly logo

OpenGL® SuperBible, Third Edition by Benjamin Lipchak, Richard S. Wright

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Low-Level Shading: Coding to the Metal

by Benjamin Lipchak

WHAT YOU'LL LEARN IN THIS CHAPTER:

How To

Functions You'll Use

Specify shader text

glProgramStringARB

Switch between shaders

GlBindProgramARB

Create and delete shaders

glGenProgramsARB/glDeleteProgramsARB

Set program parameters

glProgramEnvParameter*ARB/glProgramLocalParameter*ARB

Query program parameters

glGetProgramEnvParameter*ARB/glGetProgramLocalParameter*ARB

Set vertex attributes

glVertexAttrib*ARB/glVertexAttribPointerARB

glEnableVertexAttribArrayARB/glDisableVertexAttribArrayARB

Query vertex attributes

glGetVertexAttrib*vARB/glGetVertexAttribPointervARB

Query program object state

glGetProgramivARB/glGetProgramStringARB/glIsProgramARB

Low-level shaders provide relatively direct access to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required