Module viewport

Search:
Group by:

Consts

UPDATE_DISABLED* = 0'i64
UPDATE_ONCE* = 1'i64
UPDATE_WHEN_VISIBLE* = 2'i64
UPDATE_ALWAYS* = 3'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_DISABLED* = 0'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_1* = 1'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_4* = 2'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_16* = 3'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_64* = 4'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_256* = 5'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_1024* = 6'i64
SHADOW_ATLAS_QUADRANT_SUBDIV_MAX* = 7'i64
RENDER_INFO_OBJECTS_IN_FRAME* = 0'i64
RENDER_INFO_VERTICES_IN_FRAME* = 1'i64
RENDER_INFO_MATERIAL_CHANGES_IN_FRAME* = 2'i64
RENDER_INFO_SHADER_CHANGES_IN_FRAME* = 3'i64
RENDER_INFO_SURFACE_CHANGES_IN_FRAME* = 4'i64
RENDER_INFO_DRAW_CALLS_IN_FRAME* = 5'i64
RENDER_INFO_MAX* = 6'i64
DEBUG_DRAW_DISABLED* = 0'i64
DEBUG_DRAW_UNSHADED* = 1'i64
DEBUG_DRAW_OVERDRAW* = 2'i64
DEBUG_DRAW_WIREFRAME* = 3'i64
MSAA_DISABLED* = 0'i64
MSAA_2X* = 1'i64
MSAA_4X* = 2'i64
MSAA_8X* = 3'i64
MSAA_16X* = 4'i64

Procs

proc arvr*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `arvr =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc size*(self: Viewport): Rect2 {.
gcsafe, locks: 0
.}
proc `size =`*(self: Viewport; val: Rect2) {.
gcsafe, locks: 0
.}
proc ownWorld*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `ownWorld =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc world*(self: Viewport): World {.
gcsafe, locks: 0
.}
proc `world =`*(self: Viewport; val: World) {.
gcsafe, locks: 0
.}
proc transparentBg*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `transparentBg =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc msaa*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `msaa =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc hdr*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `hdr =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc disable3d*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `disable3d =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc usage*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `usage =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc debugDraw*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `debugDraw =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc renderTargetVFlip*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `renderTargetVFlip =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc renderTargetClearOnNewFrame*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `renderTargetClearOnNewFrame =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc renderTargetUpdateMode*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `renderTargetUpdateMode =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc audioListenerEnable2d*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `audioListenerEnable2d =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc audioListenerEnable3d*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `audioListenerEnable3d =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc physicsObjectPicking*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `physicsObjectPicking =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc guiDisableInput*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc `guiDisableInput =`*(self: Viewport; val: bool) {.
gcsafe, locks: 0
.}
proc shadowAtlasSize*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `shadowAtlasSize =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc shadowAtlasQuad0*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `shadowAtlasQuad0 =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc shadowAtlasQuad1*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `shadowAtlasQuad1 =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc shadowAtlasQuad2*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `shadowAtlasQuad2 =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc shadowAtlasQuad3*(self: Viewport): int64 {.
gcsafe, locks: 0
.}
proc `shadowAtlasQuad3 =`*(self: Viewport; val: int64) {.
gcsafe, locks: 0
.}
proc setWorld2d*(self: Viewport; world2d: World2D) {.
gcsafe, locks: 0
.}
proc getWorld2d*(self: Viewport): World2D {.
gcsafe, locks: 0
.}
proc findWorld2d*(self: Viewport): World2D {.
gcsafe, locks: 0
.}
proc findWorld*(self: Viewport): World {.
gcsafe, locks: 0
.}
proc setCanvasTransform*(self: Viewport; xform: Transform2D) {.
gcsafe, locks: 0
.}
proc getCanvasTransform*(self: Viewport): Transform2D {.
gcsafe, locks: 0
.}
proc setGlobalCanvasTransform*(self: Viewport; xform: Transform2D) {.
gcsafe, locks: 0
.}
proc getGlobalCanvasTransform*(self: Viewport): Transform2D {.
gcsafe, locks: 0
.}
proc getFinalTransform*(self: Viewport): Transform2D {.
gcsafe, locks: 0
.}
proc getVisibleRect*(self: Viewport): Rect2 {.
gcsafe, locks: 0
.}
proc setSizeOverride*(self: Viewport; enable: bool;
                     size: Vector2 = vec2(- 1.0, - 1.0);
                     margin: Vector2 = vec2(0.0, 0.0)) {.
gcsafe, locks: 0
.}
proc getSizeOverride*(self: Viewport): Vector2 {.
gcsafe, locks: 0
.}
proc isSizeOverrideEnabled*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc setSizeOverrideStretch*(self: Viewport; enabled: bool) {.
gcsafe, locks: 0
.}
proc isSizeOverrideStretchEnabled*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc clear*(self: Viewport) {.
gcsafe, locks: 0
.}
proc getRenderInfo*(self: Viewport; info: int64): int64 {.
gcsafe, locks: 0
.}
proc getTexture*(self: Viewport): ViewportTexture {.
gcsafe, locks: 0
.}
proc getViewportRid*(self: Viewport): RID {.
gcsafe, locks: 0
.}
proc input*(self: Viewport; localEvent: InputEvent) {.
gcsafe, locks: 0
.}
proc unhandledInput*(self: Viewport; localEvent: InputEvent) {.
gcsafe, locks: 0
.}
proc updateWorlds*(self: Viewport) {.
gcsafe, locks: 0
.}
proc getCamera*(self: Viewport): Camera {.
gcsafe, locks: 0
.}
proc setAttachToScreenRect*(self: Viewport; rect: Rect2) {.
gcsafe, locks: 0
.}
proc getMousePosition*(self: Viewport): Vector2 {.
gcsafe, locks: 0
.}
proc warpMouse*(self: Viewport; toPos: Vector2) {.
gcsafe, locks: 0
.}
proc guiHasModalStack*(self: Viewport): bool {.
gcsafe, locks: 0
.}
proc guiGetDragData*(self: Viewport): Variant {.
gcsafe, locks: 0
.}

Methods

method parentVisibilityChanged*(self: Viewport) {.
gcsafe, locks: 0, base
.}
method parentResized*(self: Viewport) {.
gcsafe, locks: 0, base
.}
method vpInput*(self: Viewport; arg0: InputEvent) {.
gcsafe, locks: 0, base
.}
method vpInputText*(self: Viewport; text: string) {.
gcsafe, locks: 0, base
.}
method vpUnhandledInput*(self: Viewport; arg0: InputEvent) {.
gcsafe, locks: 0, base
.}
method guiShowTooltip*(self: Viewport) {.
gcsafe, locks: 0, base
.}
method guiRemoveFocus*(self: Viewport) {.
gcsafe, locks: 0, base
.}