# SetImageWrapU

## Description

Sets the UV wrap mode of the image when the U coordinate goes outside the range 0-1. The default is mode 0 which clamps the pixel value to the last valid pixel, mode 1 repeats the texture starting from the opposite side.
To use UV values outside 0-1 successfully on all platforms the image in question must be a power of 2 in width and height, and not be part of an atlas texture. This applies to both clamp and repeat.

## Definition

SetImageWrapU( iImageIndex, mode )

void agk::SetImageWrapU( UINT iImageIndex, UINT mode )

## Parameters

- iImageIndex - The ID of the image to change.
- mode - The wrap mode to use, 0=clamp, 1=repeat