Module visual_server

Search:
Group by:

Consts

NO_INDEX_ARRAY = -1
ARRAY_WEIGHTS_SIZE = 4'i64
CANVAS_ITEM_Z_MIN = -4096
CANVAS_ITEM_Z_MAX = 4096'i64
MAX_GLOW_LEVELS = 7'i64
MAX_CURSORS = 8'i64
MATERIAL_RENDER_PRIORITY_MIN = -128
MATERIAL_RENDER_PRIORITY_MAX = 127'i64
CUBEMAP_LEFT = 0'i64
CUBEMAP_RIGHT = 1'i64
CUBEMAP_BOTTOM = 2'i64
CUBEMAP_TOP = 3'i64
CUBEMAP_FRONT = 4'i64
CUBEMAP_BACK = 5'i64
TEXTURE_FLAG_MIPMAPS = 1'i64
TEXTURE_FLAG_REPEAT = 2'i64
TEXTURE_FLAG_FILTER = 4'i64
TEXTURE_FLAG_ANISOTROPIC_FILTER = 8'i64
TEXTURE_FLAG_CONVERT_TO_LINEAR = 16'i64
TEXTURE_FLAG_MIRRORED_REPEAT = 32'i64
TEXTURE_FLAG_CUBEMAP = 2048'i64
TEXTURE_FLAG_USED_FOR_STREAMING = 4096'i64
TEXTURE_FLAGS_DEFAULT = 7'i64
SHADER_SPATIAL = 0'i64
SHADER_CANVAS_ITEM = 1'i64
SHADER_PARTICLES = 2'i64
SHADER_MAX = 3'i64
ARRAY_VERTEX = 0'i64
ARRAY_NORMAL = 1'i64
ARRAY_TANGENT = 2'i64
ARRAY_COLOR = 3'i64
ARRAY_TEX_UV = 4'i64
ARRAY_TEX_UV2 = 5'i64
ARRAY_BONES = 6'i64
ARRAY_WEIGHTS = 7'i64
ARRAY_INDEX = 8'i64
ARRAY_MAX = 9'i64
ARRAY_FORMAT_VERTEX = 1'i64
ARRAY_FORMAT_NORMAL = 2'i64
ARRAY_FORMAT_TANGENT = 4'i64
ARRAY_FORMAT_COLOR = 8'i64
ARRAY_FORMAT_TEX_UV = 16'i64
ARRAY_FORMAT_TEX_UV2 = 32'i64
ARRAY_FORMAT_BONES = 64'i64
ARRAY_FORMAT_WEIGHTS = 128'i64
ARRAY_FORMAT_INDEX = 256'i64
ARRAY_COMPRESS_VERTEX = 512'i64
ARRAY_COMPRESS_NORMAL = 1024'i64
ARRAY_COMPRESS_TANGENT = 2048'i64
ARRAY_COMPRESS_COLOR = 4096'i64
ARRAY_COMPRESS_TEX_UV = 8192'i64
ARRAY_COMPRESS_TEX_UV2 = 16384'i64
ARRAY_COMPRESS_BONES = 32768'i64
ARRAY_COMPRESS_WEIGHTS = 65536'i64
ARRAY_COMPRESS_INDEX = 131072'i64
ARRAY_FLAG_USE_2D_VERTICES = 262144'i64
ARRAY_FLAG_USE_16_BIT_BONES = 524288'i64
ARRAY_COMPRESS_DEFAULT = 97792'i64
PRIMITIVE_POINTS = 0'i64
PRIMITIVE_LINES = 1'i64
PRIMITIVE_LINE_STRIP = 2'i64
PRIMITIVE_LINE_LOOP = 3'i64
PRIMITIVE_TRIANGLES = 4'i64
PRIMITIVE_TRIANGLE_STRIP = 5'i64
PRIMITIVE_TRIANGLE_FAN = 6'i64
PRIMITIVE_MAX = 7'i64
BLEND_SHAPE_MODE_NORMALIZED = 0'i64
BLEND_SHAPE_MODE_RELATIVE = 1'i64
LIGHT_DIRECTIONAL = 0'i64
LIGHT_OMNI = 1'i64
LIGHT_SPOT = 2'i64
LIGHT_PARAM_ENERGY = 0'i64
LIGHT_PARAM_SPECULAR = 2'i64
LIGHT_PARAM_RANGE = 3'i64
LIGHT_PARAM_ATTENUATION = 4'i64
LIGHT_PARAM_SPOT_ANGLE = 5'i64
LIGHT_PARAM_SPOT_ATTENUATION = 6'i64
LIGHT_PARAM_CONTACT_SHADOW_SIZE = 7'i64
LIGHT_PARAM_SHADOW_MAX_DISTANCE = 8'i64
LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET = 9'i64
LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET = 10'i64
LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET = 11'i64
LIGHT_PARAM_SHADOW_NORMAL_BIAS = 12'i64
LIGHT_PARAM_SHADOW_BIAS = 13'i64
LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE = 14'i64
LIGHT_PARAM_MAX = 15'i64
LIGHT_OMNI_SHADOW_DUAL_PARABOLOID = 0'i64
LIGHT_OMNI_SHADOW_CUBE = 1'i64
LIGHT_OMNI_SHADOW_DETAIL_VERTICAL = 0'i64
LIGHT_OMNI_SHADOW_DETAIL_HORIZONTAL = 1'i64
LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL = 0'i64
LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS = 1'i64
LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS = 2'i64
LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_STABLE = 0'i64
LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_OPTIMIZED = 1'i64
VIEWPORT_UPDATE_DISABLED = 0'i64
VIEWPORT_UPDATE_ONCE = 1'i64
VIEWPORT_UPDATE_WHEN_VISIBLE = 2'i64
VIEWPORT_UPDATE_ALWAYS = 3'i64
VIEWPORT_CLEAR_ALWAYS = 0'i64
VIEWPORT_CLEAR_NEVER = 1'i64
VIEWPORT_CLEAR_ONLY_NEXT_FRAME = 2'i64
VIEWPORT_MSAA_DISABLED = 0'i64
VIEWPORT_MSAA_2X = 1'i64
VIEWPORT_MSAA_4X = 2'i64
VIEWPORT_MSAA_8X = 3'i64
VIEWPORT_MSAA_16X = 4'i64
VIEWPORT_USAGE_2D = 0'i64
VIEWPORT_USAGE_2D_NO_SAMPLING = 1'i64
VIEWPORT_USAGE_3D = 2'i64
VIEWPORT_USAGE_3D_NO_EFFECTS = 3'i64
VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME = 0'i64
VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME = 1'i64
VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME = 2'i64
VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME = 3'i64
VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME = 4'i64
VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME = 5'i64
VIEWPORT_RENDER_INFO_MAX = 6'i64
VIEWPORT_DEBUG_DRAW_DISABLED = 0'i64
VIEWPORT_DEBUG_DRAW_UNSHADED = 1'i64
VIEWPORT_DEBUG_DRAW_OVERDRAW = 2'i64
VIEWPORT_DEBUG_DRAW_WIREFRAME = 3'i64
SCENARIO_DEBUG_DISABLED = 0'i64
SCENARIO_DEBUG_WIREFRAME = 1'i64
SCENARIO_DEBUG_OVERDRAW = 2'i64
SCENARIO_DEBUG_SHADELESS = 3'i64
INSTANCE_NONE = 0'i64
INSTANCE_MESH = 1'i64
INSTANCE_MULTIMESH = 2'i64
INSTANCE_IMMEDIATE = 3'i64
INSTANCE_PARTICLES = 4'i64
INSTANCE_LIGHT = 5'i64
INSTANCE_REFLECTION_PROBE = 6'i64
INSTANCE_GI_PROBE = 7'i64
INSTANCE_LIGHTMAP_CAPTURE = 8'i64
INSTANCE_MAX = 9'i64
INSTANCE_GEOMETRY_MASK = 30'i64
INSTANCE_FLAG_USE_BAKED_LIGHT = 0'i64
INSTANCE_FLAG_MAX = 1'i64
SHADOW_CASTING_SETTING_OFF = 0'i64
SHADOW_CASTING_SETTING_ON = 1'i64
SHADOW_CASTING_SETTING_DOUBLE_SIDED = 2'i64
SHADOW_CASTING_SETTING_SHADOWS_ONLY = 3'i64
NINE_PATCH_STRETCH = 0'i64
NINE_PATCH_TILE = 1'i64
NINE_PATCH_TILE_FIT = 2'i64
CANVAS_LIGHT_MODE_ADD = 0'i64
CANVAS_LIGHT_MODE_SUB = 1'i64
CANVAS_LIGHT_MODE_MIX = 2'i64
CANVAS_LIGHT_MODE_MASK = 3'i64
CANVAS_LIGHT_FILTER_NONE = 0'i64
CANVAS_LIGHT_FILTER_PCF3 = 1'i64
CANVAS_LIGHT_FILTER_PCF5 = 2'i64
CANVAS_LIGHT_FILTER_PCF7 = 3'i64
CANVAS_LIGHT_FILTER_PCF9 = 4'i64
CANVAS_LIGHT_FILTER_PCF13 = 5'i64
CANVAS_OCCLUDER_POLYGON_CULL_DISABLED = 0'i64
CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE = 1'i64
CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE = 2'i64
INFO_OBJECTS_IN_FRAME = 0'i64
INFO_VERTICES_IN_FRAME = 1'i64
INFO_MATERIAL_CHANGES_IN_FRAME = 2'i64
INFO_SHADER_CHANGES_IN_FRAME = 3'i64
INFO_SURFACE_CHANGES_IN_FRAME = 4'i64
INFO_DRAW_CALLS_IN_FRAME = 5'i64
INFO_USAGE_VIDEO_MEM_TOTAL = 6'i64
INFO_VIDEO_MEM_USED = 7'i64
INFO_TEXTURE_MEM_USED = 8'i64
INFO_VERTEX_MEM_USED = 9'i64
FEATURE_SHADERS = 0'i64
FEATURE_MULTITHREADED = 1'i64
MULTIMESH_TRANSFORM_2D = 0'i64
MULTIMESH_TRANSFORM_3D = 1'i64
MULTIMESH_COLOR_NONE = 0'i64
MULTIMESH_COLOR_8BIT = 1'i64
MULTIMESH_COLOR_FLOAT = 2'i64
REFLECTION_PROBE_UPDATE_ONCE = 0'i64
REFLECTION_PROBE_UPDATE_ALWAYS = 1'i64
PARTICLES_DRAW_ORDER_INDEX = 0'i64
PARTICLES_DRAW_ORDER_LIFETIME = 1'i64
PARTICLES_DRAW_ORDER_VIEW_DEPTH = 2'i64
ENV_BG_CLEAR_COLOR = 0'i64
ENV_BG_COLOR = 1'i64
ENV_BG_SKY = 2'i64
ENV_BG_COLOR_SKY = 3'i64
ENV_BG_CANVAS = 4'i64
ENV_BG_KEEP = 5'i64
ENV_BG_MAX = 6'i64
ENV_DOF_BLUR_QUALITY_LOW = 0'i64
ENV_DOF_BLUR_QUALITY_MEDIUM = 1'i64
ENV_DOF_BLUR_QUALITY_HIGH = 2'i64
GLOW_BLEND_MODE_ADDITIVE = 0'i64
GLOW_BLEND_MODE_SCREEN = 1'i64
GLOW_BLEND_MODE_SOFTLIGHT = 2'i64
GLOW_BLEND_MODE_REPLACE = 3'i64
ENV_TONE_MAPPER_LINEAR = 0'i64
ENV_TONE_MAPPER_REINHARDT = 1'i64
ENV_TONE_MAPPER_FILMIC = 2'i64
ENV_TONE_MAPPER_ACES = 3'i64
ENV_SSAO_QUALITY_LOW = 0'i64
ENV_SSAO_QUALITY_MEDIUM = 1'i64
ENV_SSAO_QUALITY_HIGH = 2'i64
ENV_SSAO_BLUR_DISABLED = 0'i64
ENV_SSAO_BLUR_1x1 = 1'i64
ENV_SSAO_BLUR_2x2 = 2'i64
ENV_SSAO_BLUR_3x3 = 3'i64

Procs

proc forceSync() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc forceDraw(swapBuffers: bool = true) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc sync() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc draw(swapBuffers: bool = true) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureCreateFromImage(image: Image; flags: int64 = 7'i64): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureAllocate(texture: RID; width: int64; height: int64; format: int64;
                    flags: int64 = 7'i64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureSetData(texture: RID; image: Image; cubeSide: int64 = 0'i64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureSetDataPartial(texture: RID; image: Image; srcX: int64; srcY: int64;
                          srcW: int64; srcH: int64; dstX: int64; dstY: int64;
                          dstMip: int64; cubeSide: int64 = 0'i64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetData(texture: RID; cubeSide: int64 = 0'i64): Image {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureSetFlags(texture: RID; flags: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetFlags(texture: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetFormat(texture: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetTexid(texture: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetWidth(texture: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetHeight(texture: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureSetSizeOverride(texture: RID; width: int64; height: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureSetPath(texture: RID; path: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureGetPath(texture: RID): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureSetShrinkAllX2OnSetData(shrink: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc textureDebugUsage(): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc texturesKeepOriginal(enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skyCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skySetTexture(sky: RID; cubeMap: RID; radianceSize: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shaderCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shaderSetCode(shader: RID; code: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shaderGetCode(shader: RID): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shaderGetParamList(shader: RID): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shaderSetDefaultTextureParam(shader: RID; name: string; texture: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shaderGetDefaultTextureParam(shader: RID; name: string): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialSetShader(shaderMaterial: RID; shader: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialGetShader(shaderMaterial: RID): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialSetParam(material: RID; parameter: string; value: Variant) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialGetParam(material: RID; parameter: string): Variant {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialSetRenderPriority(material: RID; priority: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialSetLineWidth(material: RID; width: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc materialSetNextPass(material: RID; nextMaterial: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshAddSurfaceFromArrays(mesh: RID; primtive: int64; arrays: Array;
                             blendShapes: Array = newArray();
                             compressFormat: int64 = 97792'i64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSetBlendShapeCount(mesh: RID; amount: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshGetBlendShapeCount(mesh: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSetBlendShapeMode(mesh: RID; mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshGetBlendShapeMode(mesh: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceSetMaterial(mesh: RID; surface: int64; material: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetMaterial(mesh: RID; surface: int64): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetArrayLen(mesh: RID; surface: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetArrayIndexLen(mesh: RID; surface: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetArray(mesh: RID; surface: int64): PoolByteArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetIndexArray(mesh: RID; surface: int64): PoolByteArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetArrays(mesh: RID; surface: int64): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetBlendShapeArrays(mesh: RID; surface: int64): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetFormat(mesh: RID; surface: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetPrimitiveType(mesh: RID; surface: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetAabb(mesh: RID; surface: int64): AABB {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSurfaceGetSkeletonAabb(mesh: RID; surface: int64): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshRemoveSurface(mesh: RID; index: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshGetSurfaceCount(mesh: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshSetCustomAabb(mesh: RID; aabb: AABB) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshGetCustomAabb(mesh: RID): AABB {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc meshClear(mesh: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshAllocate(multimesh: RID; instances: int64; transformFormat: int64;
                      colorFormat: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshGetInstanceCount(multimesh: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshSetMesh(multimesh: RID; mesh: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshInstanceSetTransform(multimesh: RID; index: int64; transform: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshInstanceSetTransform2d(multimesh: RID; index: int64;
                                    transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshInstanceSetColor(multimesh: RID; index: int64; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshGetMesh(multimesh: RID): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshGetAabb(multimesh: RID): AABB {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshInstanceGetTransform(multimesh: RID; index: int64): Transform {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshInstanceGetTransform2d(multimesh: RID; index: int64): Transform2D {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshInstanceGetColor(multimesh: RID; index: int64): Color {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshSetVisibleInstances(multimesh: RID; visible: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc multimeshGetVisibleInstances(multimesh: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateBegin(immediate: RID; primitive: int64; texture: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateVertex(immediate: RID; vertex: Vector3) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateVertex2d(immediate: RID; vertex: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateNormal(immediate: RID; normal: Vector3) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateTangent(immediate: RID; tangent: Plane) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateColor(immediate: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateUv(immediate: RID; texUv: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateUv2(immediate: RID; texUv: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateEnd(immediate: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateClear(immediate: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateSetMaterial(immediate: RID; material: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc immediateGetMaterial(immediate: RID): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonAllocate(skeleton: RID; bones: int64; is2dSkeleton: bool = false) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonGetBoneCount(skeleton: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonBoneSetTransform(skeleton: RID; bone: int64; transform: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonBoneGetTransform(skeleton: RID; bone: int64): Transform {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonBoneSetTransform2d(skeleton: RID; bone: int64; transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc skeletonBoneGetTransform2d(skeleton: RID; bone: int64): Transform2D {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc directionalLightCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc omniLightCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc spotLightCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetColor(light: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetParam(light: RID; param: int64; value: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetShadow(light: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetShadowColor(light: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetProjector(light: RID; texture: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetNegative(light: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetCullMask(light: RID; mask: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightSetReverseCullFaceMode(light: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightOmniSetShadowMode(light: RID; mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightOmniSetShadowDetail(light: RID; detail: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightDirectionalSetShadowMode(light: RID; mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightDirectionalSetBlendSplits(light: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightDirectionalSetShadowDepthRangeMode(light: RID; rangeMode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetUpdateMode(probe: RID; mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetIntensity(probe: RID; intensity: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetInteriorAmbient(probe: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetInteriorAmbientEnergy(probe: RID; energy: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetInteriorAmbientProbeContribution(probe: RID;
    contrib: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetMaxDistance(probe: RID; distance: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetExtents(probe: RID; extents: Vector3) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetOriginOffset(probe: RID; offset: Vector3) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetAsInterior(probe: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetEnableBoxProjection(probe: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetEnableShadows(probe: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc reflectionProbeSetCullMask(probe: RID; layers: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetBounds(probe: RID; bounds: AABB) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetBounds(probe: RID): AABB {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetCellSize(probe: RID; range: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetCellSize(probe: RID): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetToCellXform(xform: RID; arg1: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetToCellXform(arg0: RID): Transform {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetDynamicData(data: RID; arg1: PoolIntArray) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetDynamicData(arg0: RID): PoolIntArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetDynamicRange(range: RID; arg1: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetDynamicRange(arg0: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetEnergy(energy: RID; arg1: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetEnergy(arg0: RID): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetBias(bias: RID; arg1: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetBias(arg0: RID): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetNormalBias(bias: RID; arg1: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetNormalBias(arg0: RID): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetPropagation(propagation: RID; arg1: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeGetPropagation(arg0: RID): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetInterior(enable: RID; arg1: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeIsInterior(arg0: RID): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeSetCompress(enable: RID; arg1: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc giProbeIsCompressed(arg0: RID): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureSetBounds(capture: RID; bounds: AABB) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureGetBounds(capture: RID): AABB {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureSetOctree(capture: RID; octree: PoolByteArray) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureSetOctreeCellTransform(capture: RID; xform: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureGetOctreeCellTransform(capture: RID): Transform {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureSetOctreeCellSubdiv(capture: RID; subdiv: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureGetOctreeCellSubdiv(capture: RID): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureGetOctree(capture: RID): PoolByteArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureSetEnergy(capture: RID; energy: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc lightmapCaptureGetEnergy(capture: RID): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetEmitting(particles: RID; emitting: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesGetEmitting(particles: RID): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetAmount(particles: RID; amount: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetLifetime(particles: RID; lifetime: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetOneShot(particles: RID; oneShot: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetPreProcessTime(particles: RID; time: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetExplosivenessRatio(particles: RID; ratio: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetRandomnessRatio(particles: RID; ratio: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetCustomAabb(particles: RID; aabb: AABB) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetSpeedScale(particles: RID; scale: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetUseLocalCoordinates(particles: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetProcessMaterial(particles: RID; material: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetFixedFps(particles: RID; fps: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetFractionalDelta(particles: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesRestart(particles: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetDrawOrder(particles: RID; order: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetDrawPasses(particles: RID; count: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetDrawPassMesh(particles: RID; pass: int64; mesh: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesGetCurrentAabb(particles: RID): AABB {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc particlesSetEmissionTransform(particles: RID; transform: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraSetPerspective(camera: RID; fovyDegrees: float64; zNear: float64;
                         zFar: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraSetOrthogonal(camera: RID; size: float64; zNear: float64; zFar: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraSetTransform(camera: RID; transform: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraSetCullMask(camera: RID; layers: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraSetEnvironment(camera: RID; env: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc cameraSetUseVerticalAspect(camera: RID; enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetUseArvr(viewport: RID; useArvr: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetSize(viewport: RID; width: int64; height: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetActive(viewport: RID; active: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetParentViewport(viewport: RID; parentViewport: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportAttachToScreen(viewport: RID;
                           rect: Rect2 = initRect2(0.0, 0.0, 0.0, 0.0);
                           screen: int64 = 0'i64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportDetach(viewport: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetUpdateMode(viewport: RID; updateMode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetVflip(viewport: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetClearMode(viewport: RID; clearMode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportGetTexture(viewport: RID): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetHideScenario(viewport: RID; hidden: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetHideCanvas(viewport: RID; hidden: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetDisableEnvironment(viewport: RID; disabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetDisable3d(viewport: RID; disabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportAttachCamera(viewport: RID; camera: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetScenario(viewport: RID; scenario: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportAttachCanvas(viewport: RID; canvas: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportRemoveCanvas(viewport: RID; canvas: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetCanvasTransform(viewport: RID; canvas: RID; offset: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetTransparentBackground(viewport: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetGlobalCanvasTransform(viewport: RID; transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetCanvasLayer(viewport: RID; canvas: RID; layer: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetShadowAtlasSize(viewport: RID; size: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetShadowAtlasQuadrantSubdivision(viewport: RID; quadrant: int64;
    subdivision: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetMsaa(viewport: RID; msaa: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetHdr(viewport: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetUsage(viewport: RID; usage: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportGetRenderInfo(viewport: RID; info: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc viewportSetDebugDraw(viewport: RID; draw: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetBackground(env: RID; bg: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetSky(env: RID; sky: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetSkyCustomFov(env: RID; scale: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetBgColor(env: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetBgEnergy(env: RID; energy: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetCanvasMaxLayer(env: RID; maxLayer: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetAmbientLight(env: RID; color: Color; energy: float64 = 1.0;
                               skyContibution: float64 = 0.0) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetDofBlurNear(env: RID; enable: bool; distance: float64;
                              transition: float64; farAmount: float64;
                              quality: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetDofBlurFar(env: RID; enable: bool; distance: float64;
                             transition: float64; farAmount: float64; quality: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetGlow(env: RID; enable: bool; levelFlags: int64; intensity: float64;
                       strength: float64; bloomThreshold: float64; blendMode: int64;
                       hdrBleedThreshold: float64; hdrBleedScale: float64;
                       bicubicUpscale: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetTonemap(env: RID; toneMapper: int64; exposure: float64;
                          white: float64; autoExposure: bool; minLuminance: float64;
                          maxLuminance: float64; autoExpSpeed: float64;
                          autoExpGrey: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetAdjustment(env: RID; enable: bool; brightness: float64;
                             contrast: float64; saturation: float64; ramp: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetSsr(env: RID; enable: bool; maxSteps: int64; fadeIn: float64;
                      fadeOut: float64; depthTolerance: float64; roughness: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetSsao(env: RID; enable: bool; radius: float64; intensity: float64;
                       radius2: float64; intensity2: float64; bias: float64;
                       lightAffect: float64; color: Color; quality: int64;
                       blur: int64; bilateralSharpness: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetFog(env: RID; enable: bool; color: Color; sunColor: Color;
                      sunAmount: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetFogDepth(env: RID; enable: bool; depthBegin: float64;
                           depthCurve: float64; transmit: bool;
                           transmitCurve: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc environmentSetFogHeight(env: RID; enable: bool; minHeight: float64;
                            maxHeight: float64; heightCurve: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc scenarioCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc scenarioSetDebug(scenario: RID; debugMode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc scenarioSetEnvironment(scenario: RID; environment: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc scenarioSetReflectionAtlasSize(scenario: RID; pSize: int64; subdiv: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc scenarioSetFallbackEnvironment(scenario: RID; environment: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceCreate2(base: RID; scenario: RID): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetBase(instance: RID; base: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetScenario(instance: RID; scenario: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetLayerMask(instance: RID; mask: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetTransform(instance: RID; transform: Transform) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceAttachObjectInstanceId(instance: RID; id: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetBlendShapeWeight(instance: RID; shape: int64; weight: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetSurfaceMaterial(instance: RID; surface: int64; material: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetVisible(instance: RID; visible: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetUseLightmap(instance: RID; lightmapInstance: RID; lightmap: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetCustomAabb(instance: RID; aabb: AABB) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceAttachSkeleton(instance: RID; skeleton: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetExterior(instance: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceSetExtraVisibilityMargin(instance: RID; margin: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceGeometrySetFlag(instance: RID; flag: int64; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceGeometrySetCastShadowsSetting(instance: RID;
    shadowCastingSetting: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceGeometrySetMaterialOverride(instance: RID; material: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceGeometrySetDrawRange(instance: RID; min: float64; max: float64;
                                 minMargin: float64; maxMargin: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instanceGeometrySetAsInstanceLod(instance: RID; asLodOfInstance: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instancesCullAabb(aabb: AABB; scenario: RID = initRID()): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instancesCullRay(fromm: Vector3; to: Vector3; scenario: RID = initRID()): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc instancesCullConvex(convex: Array; scenario: RID = initRID()): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasSetItemMirroring(canvas: RID; item: RID; mirroring: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasSetModulate(canvas: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetParent(item: RID; parent: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetVisible(item: RID; visible: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetLightMask(item: RID; mask: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetTransform(item: RID; transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetClip(item: RID; clip: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetDistanceFieldMode(item: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetCustomRect(item: RID; useCustomRect: bool;
                            rect: Rect2 = initRect2(0.0, 0.0, 0.0, 0.0)) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetModulate(item: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetSelfModulate(item: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetDrawBehindParent(item: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddLine(item: RID; fromm: Vector2; to: Vector2; color: Color;
                      width: float64 = 1.0; antialiased: bool = false) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddPolyline(item: RID; points: PoolVector2Array;
                          colors: PoolColorArray; width: float64 = 1.0;
                          antialiased: bool = false) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddRect(item: RID; rect: Rect2; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddCircle(item: RID; pos: Vector2; radius: float64; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddTextureRect(item: RID; rect: Rect2; texture: RID; tile: bool = false;
                             modulate: Color = initColor(1.0, 1.0, 1.0, 1.0);
                             transpose: bool = false; normalMap: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddTextureRectRegion(item: RID; rect: Rect2; texture: RID;
                                   srcRect: Rect2; modulate: Color = initColor(1.0,
    1.0, 1.0, 1.0); transpose: bool = false; normalMap: RID = initRID();
                                   clipUv: bool = true) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddNinePatch(item: RID; rect: Rect2; source: Rect2; texture: RID;
                           topleft: Vector2; bottomright: Vector2;
                           xAxisMode: int64 = 0'i64; yAxisMode: int64 = 0'i64;
                           drawCenter: bool = true;
                           modulate: Color = initColor(1.0, 1.0, 1.0, 1.0);
                           normalMap: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddPrimitive(item: RID; points: PoolVector2Array;
                           colors: PoolColorArray; uvs: PoolVector2Array;
                           texture: RID; width: float64 = 1.0;
                           normalMap: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddPolygon(item: RID; points: PoolVector2Array;
                         colors: PoolColorArray;
                         uvs: PoolVector2Array = newPoolVector2Array();
                         texture: RID = initRID(); normalMap: RID = initRID();
                         antialiased: bool = false) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddTriangleArray(item: RID; indices: PoolIntArray;
                               points: PoolVector2Array; colors: PoolColorArray;
                               uvs: PoolVector2Array = newPoolVector2Array();
                               bones: PoolIntArray = newPoolIntArray();
                               weights: PoolRealArray = newPoolRealArray();
                               texture: RID = initRID(); count: int64 = -1'i64;
                               normalMap: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddMesh(item: RID; mesh: RID; texture: RID; normalMap: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddMultimesh(item: RID; mesh: RID; texture: RID;
                           normalMap: RID = initRID()) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddParticles(item: RID; particles: RID; texture: RID; normalMap: RID;
                           hFrames: int64; vFrames: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddSetTransform(item: RID; transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemAddClipIgnore(item: RID; ignore: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetSortChildrenByY(item: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetZIndex(item: RID; zIndex: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetZAsRelativeToParent(item: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetCopyToBackbuffer(item: RID; enabled: bool; rect: Rect2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemClear(item: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetDrawIndex(item: RID; index: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetMaterial(item: RID; material: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasItemSetUseParentMaterial(item: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightAttachToCanvas(light: RID; canvas: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetEnabled(light: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetScale(light: RID; scale: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetTransform(light: RID; transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetTexture(light: RID; texture: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetTextureOffset(light: RID; offset: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetColor(light: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetHeight(light: RID; height: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetEnergy(light: RID; energy: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetZRange(light: RID; minZ: int64; maxZ: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetLayerRange(light: RID; minLayer: int64; maxLayer: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetItemCullMask(light: RID; mask: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetItemShadowCullMask(light: RID; mask: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetMode(light: RID; mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetShadowEnabled(light: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetShadowBufferSize(light: RID; size: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetShadowGradientLength(light: RID; length: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetShadowFilter(light: RID; filter: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetShadowColor(light: RID; color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightSetShadowSmooth(light: RID; smooth: float64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightOccluderCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightOccluderAttachToCanvas(occluder: RID; canvas: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightOccluderSetEnabled(occluder: RID; enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightOccluderSetPolygon(occluder: RID; polygon: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightOccluderSetTransform(occluder: RID; transform: Transform2D) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasLightOccluderSetLightMask(occluder: RID; mask: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasOccluderPolygonCreate(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasOccluderPolygonSetShape(occluderPolygon: RID; shape: PoolVector2Array;
                                  closed: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasOccluderPolygonSetShapeAsLines(occluderPolygon: RID;
    shape: PoolVector2Array) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canvasOccluderPolygonSetCullMode(occluderPolygon: RID; mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc blackBarsSetMargins(left: int64; top: int64; right: int64; bottom: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc blackBarsSetImages(left: RID; top: RID; right: RID; bottom: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc freeRid(rid: RID) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc requestFrameDrawnCallback(where: Object; methodd: string; userdata: Variant) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasChanged(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc init() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc finish() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getRenderInfo(info: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getTestCube(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getTestTexture(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getWhiteTexture(): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc makeSphereMesh(latitudes: int64; longitudes: int64; radius: float64): RID {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setBootImage(image: Image; color: Color; scale: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setDefaultClearColor(color: Color) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasFeature(feature: int64): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasOsFeature(feature: string): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setDebugGenerateWireframes(generate: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}