Module texture

Consts

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

Procs

proc getWidth*(self: Texture): int64 {.
gcsafe, locks: 0
.}
proc getHeight*(self: Texture): int64 {.
gcsafe, locks: 0
.}
proc getSize*(self: Texture): Vector2 {.
gcsafe, locks: 0
.}
proc hasAlpha*(self: Texture): bool {.
gcsafe, locks: 0
.}
proc setFlags*(self: Texture; flags: int64) {.
gcsafe, locks: 0
.}
proc getFlags*(self: Texture): int64 {.
gcsafe, locks: 0
.}
proc draw*(self: Texture; canvasItem: RID; pos: Vector2;
          modulate: Color = initColor(1.0, 1.0, 1.0, 1.0); transpose: bool = false;
          normalMap: Texture = nil) {.
gcsafe, locks: 0
.}
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
.}
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
.}
proc getData*(self: Texture): Image {.
gcsafe, locks: 0
.}