forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_visualserver
reduz edited this page Feb 23, 2014
·
15 revisions
#####Inherits: Object
Server for anything visible.
-
RID
texture_create
( ) -
RID
texture_create_from_image
( Image arg0, int arg1=7 ) - void
texture_set_flags
( RID arg0, int arg1 ) -
int
texture_get_flags
( RID arg0 ) const -
int
texture_get_width
( RID arg0 ) const -
int
texture_get_height
( RID arg0 ) const -
RID
shader_create
( int mode=0 ) - void
shader_set_mode
( RID shader, int mode ) -
RID
material_create
( ) - void
material_set_shader
( RID shader, RID arg1 ) -
RID
material_get_shader
( RID arg0 ) const - void
material_set_param
( RID arg0, String arg1, var arg2 ) - void
material_get_param
( RID arg0, String arg1 ) const - void
material_set_flag
( RID arg0, int arg1, bool arg2 ) -
bool
material_get_flag
( RID arg0, int arg1 ) const - void
material_set_blend_mode
( RID arg0, int arg1 ) -
int
material_get_blend_mode
( RID arg0 ) const - void
material_set_line_width
( RID arg0, real arg1 ) -
real
material_get_line_width
( RID arg0 ) const -
RID
mesh_create
( ) - void
mesh_add_surface
( RID arg0, int arg1, Array arg2, Array arg3, bool arg4=-1 ) - void
mesh_surface_set_material
( RID arg0, int arg1, RID arg2, bool arg3=false ) -
RID
mesh_surface_get_material
( RID arg0, int arg1 ) const -
int
mesh_surface_get_array_len
( RID arg0, int arg1 ) const -
int
mesh_surface_get_array_index_len
( RID arg0, int arg1 ) const -
int
mesh_surface_get_format
( RID arg0, int arg1 ) const -
int
mesh_surface_get_primitive_type
( RID arg0, int arg1 ) const - void
mesh_remove_surface
( RID arg0, int arg1 ) -
int
mesh_get_surface_count
( RID arg0 ) const -
RID
multimesh_create
( ) - void
multimesh_set_mesh
( RID arg0, RID arg1 ) - void
multimesh_set_aabb
( RID arg0, AABB arg1 ) - void
multimesh_instance_set_transform
( RID arg0, int arg1, Transform arg2 ) - void
multimesh_instance_set_color
( RID arg0, int arg1, Color arg2 ) -
RID
multimesh_get_mesh
( RID arg0 ) const -
AABB
multimesh_get_aabb
( RID arg0, AABB arg1 ) const -
Transform
multimesh_instance_get_transform
( RID arg0, int arg1 ) const -
Color
multimesh_instance_get_color
( RID arg0, int arg1 ) const -
RID
particles_create
( ) - void
particles_set_amount
( RID arg0, int arg1 ) -
int
particles_get_amount
( RID arg0 ) const - void
particles_set_emitting
( RID arg0, bool arg1 ) -
bool
particles_is_emitting
( RID arg0 ) const - void
particles_set_visibility_aabb
( RID arg0, AABB arg1 ) -
AABB
particles_get_visibility_aabb
( RID arg0 ) const - void
particles_set_variable
( RID arg0, int arg1, real arg2 ) -
real
particles_get_variable
( RID arg0, int arg1 ) const - void
particles_set_randomness
( RID arg0, int arg1, real arg2 ) -
real
particles_get_randomness
( RID arg0, int arg1 ) const - void
particles_set_color_phases
( RID arg0, int arg1 ) -
int
particles_get_color_phases
( RID arg0 ) const - void
particles_set_color_phase_pos
( RID arg0, int arg1, real arg2 ) -
real
particles_get_color_phase_pos
( RID arg0, int arg1 ) const - void
particles_set_color_phase_color
( RID arg0, int arg1, Color arg2 ) -
Color
particles_get_color_phase_color
( RID arg0, int arg1 ) const - void
particles_set_attractors
( RID arg0, int arg1 ) -
int
particles_get_attractors
( RID arg0 ) const - void
particles_set_attractor_pos
( RID arg0, int arg1, Vector3 arg2 ) -
Vector3
particles_get_attractor_pos
( RID arg0, int arg1 ) const - void
particles_set_attractor_strength
( RID arg0, int arg1, real arg2 ) -
real
particles_get_attractor_strength
( RID arg0, int arg1 ) const - void
particles_set_material
( RID arg0, RID arg1, bool arg2=false ) - void
particles_set_height_from_velocity
( RID arg0, bool arg1 ) -
bool
particles_has_height_from_velocity
( RID arg0 ) const -
RID
light_create
( int arg0 ) -
int
light_get_type
( RID arg0 ) const - void
light_set_color
( RID arg0, int arg1, Color arg2 ) -
Color
light_get_color
( RID arg0, int arg1 ) const - void
light_set_shadow
( RID arg0, bool arg1 ) -
bool
light_has_shadow
( RID arg0 ) const - void
light_set_volumetric
( RID arg0, bool arg1 ) -
bool
light_is_volumetric
( RID arg0 ) const - void
light_set_projector
( RID arg0, RID arg1 ) -
RID
light_get_projector
( RID arg0 ) const - void
light_set_var
( RID arg0, int arg1, real arg2 ) -
real
light_get_var
( RID arg0, int arg1 ) const -
RID
skeleton_create
( ) - void
skeleton_resize
( RID arg0, int arg1 ) -
int
skeleton_get_bone_count
( RID arg0 ) const - void
skeleton_bone_set_transform
( RID arg0, int arg1, Transform arg2 ) -
Transform
skeleton_bone_get_transform
( RID arg0, int arg1 ) -
RID
room_create
( ) - void
room_set_bounds
( RID arg0, Dictionary arg1 ) -
Dictionary
room_get_bounds
( RID arg0 ) const -
RID
portal_create
( ) - void
portal_set_shape
( RID arg0, Vector2Array arg1 ) -
Vector2Array
portal_get_shape
( RID arg0 ) const - void
portal_set_enabled
( RID arg0, bool arg1 ) -
bool
portal_is_enabled
( RID arg0 ) const - void
portal_set_disable_distance
( RID arg0, real arg1 ) -
real
portal_get_disable_distance
( RID arg0 ) const - void
portal_set_disabled_color
( RID arg0, Color arg1 ) -
Color
portal_get_disabled_color
( RID arg0 ) const -
RID
camera_create
( ) - void
camera_set_perspective
( RID arg0, real arg1, real arg2, real arg3 ) - void
camera_set_orthogonal
( RID arg0, real arg1, real arg2, real arg3 ) - void
camera_set_transform
( RID arg0, Transform arg1 ) -
RID
viewport_create
( ) - void
viewport_set_rect
( RID arg0, Rect2 arg1 ) -
Rect2
viewport_get_rect
( RID arg0 ) const - void
viewport_attach_camera
( RID arg0, RID arg1=RID() ) -
RID
viewport_get_attached_camera
( RID arg0 ) const -
RID
viewport_get_scenario
( RID arg0 ) const - void
viewport_attach_canvas
( RID arg0, RID arg1 ) - void
viewport_remove_canvas
( RID arg0, RID arg1 ) - void
viewport_set_global_canvas_transform
( RID arg0, Matrix32 arg1 ) -
RID
scenario_create
( ) - void
scenario_set_debug
( RID arg0, int arg1 ) -
RID
instance_create
( ) -
RID
instance_get_base
( RID arg0 ) const -
RID
instance_get_base_aabb
( RID arg0 ) const - void
instance_set_transform
( RID arg0, Transform arg1 ) -
Transform
instance_get_transform
( RID arg0 ) const - void
instance_attach_object_instance_ID
( RID arg0, int arg1 ) -
int
instance_get_object_instance_ID
( RID arg0 ) const - void
instance_attach_skeleton
( RID arg0, RID arg1 ) -
RID
instance_get_skeleton
( RID arg0 ) const - void
instance_set_room
( RID arg0, RID arg1 ) -
RID
instance_get_room
( RID arg0 ) const - void
instance_set_exterior
( RID arg0, bool arg1 ) -
bool
instance_is_exterior
( RID arg0 ) const -
Array
instances_cull_aabb
( AABB arg0, RID arg1 ) const -
Array
instances_cull_ray
( Vector3 arg0, Vector3 arg1, RID arg2 ) const -
Array
instances_cull_convex
( Vector3 arg0, Vector3 arg1, RID arg2 ) const -
RID
instance_geometry_override_material_param
( RID arg0 ) const -
RID
instance_geometry_get_material_param
( RID arg0 ) const -
RID
get_test_cube
( ) -
RID
canvas_create
( ) -
RID
canvas_item_create
( ) - void
canvas_item_set_parent
( RID arg0, RID arg1 ) -
RID
canvas_item_get_parent
( RID arg0 ) const - void
canvas_item_set_transform
( RID arg0, Matrix32 arg1 ) - void
canvas_item_set_custom_rect
( RID arg0, bool arg1, Rect2 arg2 ) - void
canvas_item_set_clip
( RID arg0, bool arg1 ) - void
canvas_item_set_opacity
( RID arg0, real arg1 ) -
real
canvas_item_get_opacity
( RID arg0, real arg1 ) const - void
canvas_item_set_self_opacity
( RID arg0, real arg1 ) -
real
canvas_item_get_self_opacity
( RID arg0, real arg1 ) const - void
canvas_item_add_line
( RID arg0, Vector2 arg1, Vector2 arg2, Color arg3, real arg4=1 ) - void
canvas_item_add_rect
( RID arg0, Rect2 arg1, Color arg2 ) - void
canvas_item_add_texture_rect
( RID arg0, Rect2 arg1, RID arg2, bool arg3, Color arg4=Color(1,1,1,1) ) - void
canvas_item_add_texture_rect_region
( RID arg0, Rect2 arg1, RID arg2, Rect2 arg3, Color arg4=Color(1,1,1,1) ) - void
canvas_item_add_style_box
( RID arg0, Rect2 arg1, RID arg2, RealArray arg3, Color arg4=Color(1,1,1,1) ) - void
canvas_item_add_circle
( RID arg0, Vector2 arg1, real arg2, Color arg3 ) - void
viewport_set_canvas_transform
( RID arg0, RID arg1, Matrix32 arg2 ) - void
canvas_item_clear
( RID arg0 ) - void
canvas_item_raise
( RID arg0 ) - void
cursor_set_rotation
( real arg0, int arg1 ) - void
cursor_set_texture
( RID arg0, Vector2 arg1, int arg2 ) - void
cursor_set_visible
( bool arg0, int arg1 ) - void
cursor_set_pos
( Vector2 arg0, int arg1 ) - void
black_bars_set_margins
( int left, int top, int right, int bottom ) -
RID
make_sphere_mesh
( int arg0, int arg1, real arg2 ) - void
mesh_add_surface_from_planes
( RID arg0, Array arg1 ) - void
draw
( ) - void
free
( RID arg0 ) - void
set_default_clear_color
( Color arg0 ) -
int
get_render_info
( int arg0 )
- 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 = 8
- 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_WIREFRAME = 5
- MATERIAL_FLAG_BILLBOARD = 6
- 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_AMBIENT = 0
- LIGHT_COLOR_DIFFUSE = 1
- LIGHT_COLOR_SPECULAR = 2
- 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 = 8
- SCENARIO_DEBUG_DISABLED = 0
- SCENARIO_DEBUG_WIREFRAME = 1
- SCENARIO_DEBUG_OVERDRAW = 2
- INSTANCE_MESH = 1
- INSTANCE_MULTIMESH = 2
- INSTANCE_PARTICLES = 3
- INSTANCE_LIGHT = 4
- INSTANCE_ROOM = 5
- INSTANCE_PORTAL = 6
- INSTANCE_GEOMETRY_MASK = 14
- 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
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.