|
SpriteImageUV | |
SpriteImageUV SpriteIndex, VertexIndex, U, V | |
Parameters: SpriteIndex = The Sprite you wish to set VertexIndex = The Vertex your wish to alter U = The U (X coord) of this texel V = The V (Y coord) of this texel |
|
Returns: NONE | |
SpriteImageUV allows you to change the UV coordinates of the sprites image. Each corner of the sprite has it's own UV coordinate. The U coordinates can be thought of as an X coordinate within the sprites image space, and V is the Y coordinate So setting the sprites UV coordinates allows us to change the region of the image that a sprite is displaying. FACTS: * Sprites are drawn using a 4 sided convex polygons, changing the UV can cause some render errors. So some care is needed. Mini Tutorial: This example creates an random image then applies this image to the screen full of sprites. Each sprites has it's UV coords stepped in, so the sprites will show the various stages of zooming.
|
Related Info: | GetSpriteVertexX | GetSpriteVertexY | SpriteDrawMode | SpriteImage | SpriteImageIntensity | SpriteImageRGB : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |