gfx2.cdrawTexture(x, y, width, height, texture, srcStartUvX, srcStartUvY, srcSizeUvX, srcSizeUvY, opacity)


Renders a texture with uv (same as in normal gfx, its the game's textures e.g. texture/ui/title)

Parameters


x

number

The position on the x axis

y

number

The position on the y axis

width

number

Width of the image to render

height

number

Height of the image to render

texture

string

path to render (path from the root of a texture path, you can also use it as you'd use gfx.image)

srcStartUvX

number

Where in the source should we start taking the image inputs normalized 0 - 1

srcStartUvY

number

Where in the source should we start taking the image inputs normalized 0 - 1

srcSizeUvX

number

what size in the source image are we taking inputs normalized 0 - 1

srcSizeUvY

number

what size in the source image are we taking inputs normalized 0 - 1

opacity

number | "nil

Opactity at which to render the image at (0.0 to 1.0)

Return Value


This function does not return anything.