drawTextureArea

fnvoid drawTextureArea(TextureId texture, Rect area, Vec2 position, DrawOptions options = DrawOptions())

Draws a portion of the specified texture at the given position with the specified draw options.

fnvoid drawTextureArea(Rect area, Vec2 position, DrawOptions options = DrawOptions())

Draws a portion of the default texture at the given position with the specified draw options. Call setDefaultTexture before using this function.

fnvoid drawTextureArea(int id, Vec2 position, DrawOptions options = DrawOptions())

Draws a portion of the default texture by ID at the given position with the specified draw options. Call setDefaultTexture and setDefaultTextureAreaSize before using this function.