Contents

size()

Gets the size of the texture.

Declaration

func size() -> CGSize

Mentioned in

Return Value

The dimensions of the texture, measured in points.

Discussion

If the texture was created using an image file and that image file hasn’t been loaded, calling this method forces the texture data to be loaded from the file.

See Also

Reading a Texture’s Size and Optional Source Location