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
USAGE_2D = 0'i64
USAGE_2D_NO_SAMPLING = 1'i64
USAGE_3D = 2'i64
USAGE_3D_NO_EFFECTS = 3'i64
CLEAR_MODE_ALWAYS = 0'i64
CLEAR_MODE_NEVER = 1'i64
CLEAR_MODE_ONLY_NEXT_FRAME = 2'i64

Procs

proc arvr(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc arvr=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc size(self: Viewport): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc size=(self: Viewport; val: Vector2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc ownWorld(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc ownWorld=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc world(self: Viewport): World {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc world=(self: Viewport; val: World) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc world2d(self: Viewport): World2D {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc world2d=(self: Viewport; val: World2D) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc transparentBg(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc transparentBg=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc msaa(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc msaa=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc hdr(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc hdr=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc disable3d(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc disable3d=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc keep3dLinear(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc keep3dLinear=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc usage(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc usage=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc debugDraw(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc debugDraw=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc renderTargetVFlip(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc renderTargetVFlip=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc renderTargetClearMode(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc renderTargetClearMode=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc renderTargetUpdateMode(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc renderTargetUpdateMode=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc audioListenerEnable2d(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc audioListenerEnable2d=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc audioListenerEnable3d(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc audioListenerEnable3d=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc physicsObjectPicking(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc physicsObjectPicking=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc guiDisableInput(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc guiDisableInput=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc guiSnapControlsToPixels(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc guiSnapControlsToPixels=(self: Viewport; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasSize(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasSize=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad0(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad0=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad1(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad1=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad2(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad2=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad3(self: Viewport): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc shadowAtlasQuad3=(self: Viewport; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc canvasTransform(self: Viewport): Transform2D {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc canvasTransform=(self: Viewport; val: Transform2D) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc globalCanvasTransform(self: Viewport): Transform2D {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc globalCanvasTransform=(self: Viewport; val: Transform2D) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc findWorld2d(self: Viewport): World2D {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc findWorld(self: Viewport): World {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getFinalTransform(self: Viewport): Transform2D {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getVisibleRect(self: Viewport): Rect2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setSizeOverride(self: Viewport; enable: bool; size: Vector2 = vec2(-1.0, -1.0);
                    margin: Vector2 = vec2(0.0, 0.0)) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getSizeOverride(self: Viewport): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isSizeOverrideEnabled(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setSizeOverrideStretch(self: Viewport; enabled: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isSizeOverrideStretchEnabled(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getRenderInfo(self: Viewport; info: int64): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getTexture(self: Viewport): ViewportTexture {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getViewportRid(self: Viewport): RID {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc input(self: Viewport; localEvent: InputEvent) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc unhandledInput(self: Viewport; localEvent: InputEvent) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc updateWorlds(self: Viewport) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getCamera(self: Viewport): Camera {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setAttachToScreenRect(self: Viewport; rect: Rect2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getMousePosition(self: Viewport): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc warpMouse(self: Viewport; toPosition: Vector2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc guiHasModalStack(self: Viewport): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc guiGetDragData(self: Viewport): Variant {.
gcsafe, locks: 0, raises: [], tags: []
.}

Methods

method vpInput(self: Viewport; arg0: InputEvent) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method vpInputText(self: Viewport; text: string) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method vpUnhandledInput(self: Viewport; arg0: InputEvent) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method guiShowTooltip(self: Viewport) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method guiRemoveFocus(self: Viewport) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method postGuiGrabClickFocus(self: Viewport) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method subwindowVisibilityChanged(self: Viewport) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}