Sampler Parameters

Each sampler object represents a number of parameter that controls the way texels will ultimately be read from a texture object. The parameters of the sampler object are set using the glSamplerParameteri() and glSamplerParameterf() functions (for integer and floating-point parameters), and glSamplerParameteriv() and glSamplerParameterfv() functions (for vectors of integer and floating-point parameters). Their prototypes are given below.

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth 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.