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 ...

Get OpenGL® SuperBible, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.