Module texture

Consts

FLAGS_DEFAULT = 7'i64
FLAG_MIPMAPS = 1'i64
FLAG_REPEAT = 2'i64
FLAG_FILTER = 4'i64
FLAG_ANISOTROPIC_FILTER = 8'i64
FLAG_CONVERT_TO_LINEAR = 16'i64
FLAG_MIRRORED_REPEAT = 32'i64
FLAG_VIDEO_SURFACE = 4096'i64

Procs

proc flags(self: Texture): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc flags=(self: Texture; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getWidth(self: Texture): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getHeight(self: Texture): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getSize(self: Texture): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc hasAlpha(self: Texture): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc draw(self: Texture; canvasItem: RID; position: Vector2;
         modulate: Color = initColor(1.0, 1.0, 1.0, 1.0); transpose: bool = false;
         normalMap: Texture = nil) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc drawRect(self: Texture; canvasItem: RID; rect: Rect2; tile: bool;
             modulate: Color = initColor(1.0, 1.0, 1.0, 1.0); transpose: bool = false;
             normalMap: Texture = nil) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc drawRectRegion(self: Texture; canvasItem: RID; rect: Rect2; srcRect: Rect2;
                   modulate: Color = initColor(1.0, 1.0, 1.0, 1.0);
                   transpose: bool = false; normalMap: Texture = nil;
                   clipUv: bool = true) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getData(self: Texture): Image {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}