Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

WrapMode Enum

Add this in your code:

#include <engine/graphics/texture.h>

Description

Enum that defines how texture coordinates outside the [0, 1] range are handled when sampling a texture.

Values


NameDescription
ClampToEdgeClamps texture coordinates to the nearest edge, causing the texture’s edge pixels to stretch
RepeatWraps texture coordinates around, repeating the texture pattern infinitely