.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisualServer.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisualServer: VisualServer ============ **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- Server for anything visible. Member Functions ---------------- +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`force_draw` **(** **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`force_sync` **(** **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`texture_create` **(** **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`texture_create_from_image` **(** :ref:`Image` image, :ref:`int` flags=7 **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`texture_get_flags` **(** :ref:`RID` texture **)** const | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`texture_get_height` **(** :ref:`RID` texture **)** const | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`texture_get_width` **(** :ref:`RID` texture **)** const | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`texture_set_flags` **(** :ref:`RID` texture, :ref:`int` flags **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`texture_set_shrink_all_x2_on_set_data` **(** :ref:`bool` shrink **)** | +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ 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 --------------------------- .. _class_VisualServer_force_draw: - void **force_draw** **(** **)** .. _class_VisualServer_force_sync: - void **force_sync** **(** **)** .. _class_VisualServer_texture_create: - :ref:`RID` **texture_create** **(** **)** .. _class_VisualServer_texture_create_from_image: - :ref:`RID` **texture_create_from_image** **(** :ref:`Image` image, :ref:`int` flags=7 **)** .. _class_VisualServer_texture_get_flags: - :ref:`int` **texture_get_flags** **(** :ref:`RID` texture **)** const .. _class_VisualServer_texture_get_height: - :ref:`int` **texture_get_height** **(** :ref:`RID` texture **)** const .. _class_VisualServer_texture_get_width: - :ref:`int` **texture_get_width** **(** :ref:`RID` texture **)** const .. _class_VisualServer_texture_set_flags: - void **texture_set_flags** **(** :ref:`RID` texture, :ref:`int` flags **)** .. _class_VisualServer_texture_set_shrink_all_x2_on_set_data: - void **texture_set_shrink_all_x2_on_set_data** **(** :ref:`bool` shrink **)**