VisualServer¶
Inherits: Object
Category: Core
Brief Description¶
Server for anything visible.
Member Functions¶
Numeric Constants¶
- NO_INDEX_ARRAY = -1
- CUSTOM_ARRAY_SIZE = 8
- ARRAY_WEIGHTS_SIZE = 4
- MAX_PARTICLE_COLOR_PHASES = 4
- MAX_PARTICLE_ATTRACTORS = 4
- MAX_CURSORS = 8
- TEXTURE_FLAG_MIPMAPS = 1
- TEXTURE_FLAG_REPEAT = 2
- TEXTURE_FLAG_FILTER = 4
- TEXTURE_FLAG_CUBEMAP = 2048
- TEXTURE_FLAGS_DEFAULT = 7
- CUBEMAP_LEFT = 0
- CUBEMAP_RIGHT = 1
- CUBEMAP_BOTTOM = 2
- CUBEMAP_TOP = 3
- CUBEMAP_FRONT = 4
- CUBEMAP_BACK = 5
- SHADER_MATERIAL = 0
- SHADER_POST_PROCESS = 2
- MATERIAL_FLAG_VISIBLE = 0
- MATERIAL_FLAG_DOUBLE_SIDED = 1
- MATERIAL_FLAG_INVERT_FACES = 2
- MATERIAL_FLAG_UNSHADED = 3
- MATERIAL_FLAG_ONTOP = 4
- MATERIAL_FLAG_MAX = 7
- MATERIAL_BLEND_MODE_MIX = 0
- MATERIAL_BLEND_MODE_ADD = 1
- MATERIAL_BLEND_MODE_SUB = 2
- MATERIAL_BLEND_MODE_MUL = 3
- FIXED_MATERIAL_PARAM_DIFFUSE = 0
- FIXED_MATERIAL_PARAM_DETAIL = 1
- FIXED_MATERIAL_PARAM_SPECULAR = 2
- FIXED_MATERIAL_PARAM_EMISSION = 3
- FIXED_MATERIAL_PARAM_SPECULAR_EXP = 4
- FIXED_MATERIAL_PARAM_GLOW = 5
- FIXED_MATERIAL_PARAM_NORMAL = 6
- FIXED_MATERIAL_PARAM_SHADE_PARAM = 7
- FIXED_MATERIAL_PARAM_MAX = 8
- FIXED_MATERIAL_TEXCOORD_SPHERE = 3
- FIXED_MATERIAL_TEXCOORD_UV = 0
- FIXED_MATERIAL_TEXCOORD_UV_TRANSFORM = 1
- FIXED_MATERIAL_TEXCOORD_UV2 = 2
- ARRAY_VERTEX = 0
- ARRAY_NORMAL = 1
- ARRAY_TANGENT = 2
- ARRAY_COLOR = 3
- ARRAY_TEX_UV = 4
- ARRAY_BONES = 6
- ARRAY_WEIGHTS = 7
- ARRAY_INDEX = 8
- ARRAY_MAX = 9
- ARRAY_FORMAT_VERTEX = 1
- ARRAY_FORMAT_NORMAL = 2
- ARRAY_FORMAT_TANGENT = 4
- ARRAY_FORMAT_COLOR = 8
- ARRAY_FORMAT_TEX_UV = 16
- ARRAY_FORMAT_BONES = 64
- ARRAY_FORMAT_WEIGHTS = 128
- ARRAY_FORMAT_INDEX = 256
- PRIMITIVE_POINTS = 0
- PRIMITIVE_LINES = 1
- PRIMITIVE_LINE_STRIP = 2
- PRIMITIVE_LINE_LOOP = 3
- PRIMITIVE_TRIANGLES = 4
- PRIMITIVE_TRIANGLE_STRIP = 5
- PRIMITIVE_TRIANGLE_FAN = 6
- PRIMITIVE_MAX = 7
- PARTICLE_LIFETIME = 0
- PARTICLE_SPREAD = 1
- PARTICLE_GRAVITY = 2
- PARTICLE_LINEAR_VELOCITY = 3
- PARTICLE_ANGULAR_VELOCITY = 4
- PARTICLE_LINEAR_ACCELERATION = 5
- PARTICLE_RADIAL_ACCELERATION = 6
- PARTICLE_TANGENTIAL_ACCELERATION = 7
- PARTICLE_INITIAL_SIZE = 9
- PARTICLE_FINAL_SIZE = 10
- PARTICLE_INITIAL_ANGLE = 11
- PARTICLE_HEIGHT = 12
- PARTICLE_HEIGHT_SPEED_SCALE = 13
- PARTICLE_VAR_MAX = 14
- LIGHT_DIRECTIONAL = 0
- LIGHT_OMNI = 1
- LIGHT_SPOT = 2
- LIGHT_COLOR_DIFFUSE = 0
- LIGHT_COLOR_SPECULAR = 1
- LIGHT_PARAM_SPOT_ATTENUATION = 0
- LIGHT_PARAM_SPOT_ANGLE = 1
- LIGHT_PARAM_RADIUS = 2
- LIGHT_PARAM_ENERGY = 3
- LIGHT_PARAM_ATTENUATION = 4
- LIGHT_PARAM_MAX = 10
- SCENARIO_DEBUG_DISABLED = 0
- SCENARIO_DEBUG_WIREFRAME = 1
- SCENARIO_DEBUG_OVERDRAW = 2
- INSTANCE_MESH = 1
- INSTANCE_MULTIMESH = 2
- INSTANCE_PARTICLES = 4
- INSTANCE_LIGHT = 5
- INSTANCE_ROOM = 6
- INSTANCE_PORTAL = 7
- INSTANCE_GEOMETRY_MASK = 30
- INFO_OBJECTS_IN_FRAME = 0
- INFO_VERTICES_IN_FRAME = 1
- INFO_MATERIAL_CHANGES_IN_FRAME = 2
- INFO_SHADER_CHANGES_IN_FRAME = 3
- INFO_SURFACE_CHANGES_IN_FRAME = 4
- INFO_DRAW_CALLS_IN_FRAME = 5
- INFO_USAGE_VIDEO_MEM_TOTAL = 6
- INFO_VIDEO_MEM_USED = 7
- INFO_TEXTURE_MEM_USED = 8
- INFO_VERTEX_MEM_USED = 9
Description¶
Server for anything visible. The visual server is the API backend for everything visible. The whole scene system mounts on it to display.
The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
Member Function Description¶
- RID camera_create ( )
- RID canvas_create ( )
- void canvas_item_add_style_box ( RID arg0, Rect2 arg1, Rect2 arg2, RID arg3, RealArray arg4, Color arg5=Color(1,1,1,1) )
- void canvas_item_add_texture_rect ( RID arg0, Rect2 arg1, RID arg2, bool arg3, Color arg4=Color(1,1,1,1), bool arg5=false )
- void canvas_item_add_texture_rect_region ( RID arg0, Rect2 arg1, RID arg2, Rect2 arg3, Color arg4=Color(1,1,1,1), bool arg5=false )
- void canvas_item_clear ( RID arg0 )
- RID canvas_item_create ( )
- void canvas_item_raise ( RID arg0 )
- void canvas_item_set_transform ( RID arg0, Matrix32 arg1 )
- void draw ( )
- void free_rid ( RID arg0 )
- Color get_default_clear_color ( ) const
- RID get_test_cube ( )
- RID instance_create ( )
- RID material_create ( )
- RID mesh_create ( )
- RID multimesh_create ( )
- AABB multimesh_get_aabb ( RID arg0, AABB arg1 ) const
- void multimesh_set_aabb ( RID arg0, AABB arg1 )
- RID particles_create ( )
- AABB particles_get_visibility_aabb ( RID arg0 ) const
- void particles_set_visibility_aabb ( RID arg0, AABB arg1 )
- RID portal_create ( )
- Vector2Array portal_get_shape ( RID arg0 ) const
- void portal_set_shape ( RID arg0, Vector2Array arg1 )
- RID room_create ( )
- Dictionary room_get_bounds ( RID arg0 ) const
- void room_set_bounds ( RID arg0, Dictionary arg1 )
- RID scenario_create ( )
- void set_default_clear_color ( Color arg0 )
- void set_time_scale ( float arg0 )
- RID skeleton_create ( )
- void sync ( )
- RID texture_create ( )
- void texture_set_shrink_all_x2_on_set_data ( bool shrink )