texture-rectangle
GPU-accelerated rendering » Texture objects » texture

Prev:texture-cube-map
Next:texture-1d-array


Vocabulary
gpu.textures

Class description
A two-dimensional rectangle texture object. Textures of this type are dimensioned by pairs of integers in calls to allocate-texture and update-texture. Rectangle textures differ from normal 2D textures (texture-2d) in that texture coordinates map directly to pixel coordinates when they are sampled from shader code, rather than being normalized into the 0.0 to 1.0 range as with other texture types. Also, rectangle textures do not support mipmapping or texture wrapping.

Notes
Rectangle textures require OpenGL 3.1 or the GL_ARB_texture_rectangle extension.

Definition


Methods