Public Types | Public Member Functions | Static Protected Member Functions | List of all members
Environment Class Reference
Inheritance diagram for Environment:
Resource Reference Object

Public Types

enum  BG {
  BG_KEEP =VS::ENV_BG_KEEP, BG_DEFAULT_COLOR =VS::ENV_BG_DEFAULT_COLOR, BG_COLOR =VS::ENV_BG_COLOR, BG_TEXTURE =VS::ENV_BG_TEXTURE,
  BG_CUBEMAP =VS::ENV_BG_CUBEMAP, BG_CANVAS =VS::ENV_BG_CANVAS, BG_MAX =VS::ENV_BG_MAX
}
 
enum  BGParam {
  BG_PARAM_CANVAS_MAX_LAYER =VS::ENV_BG_PARAM_CANVAS_MAX_LAYER, BG_PARAM_COLOR =VS::ENV_BG_PARAM_COLOR, BG_PARAM_TEXTURE =VS::ENV_BG_PARAM_TEXTURE, BG_PARAM_CUBEMAP =VS::ENV_BG_PARAM_CUBEMAP,
  BG_PARAM_ENERGY =VS::ENV_BG_PARAM_ENERGY, BG_PARAM_SCALE =VS::ENV_BG_PARAM_SCALE, BG_PARAM_GLOW =VS::ENV_BG_PARAM_GLOW, BG_PARAM_MAX =VS::ENV_BG_PARAM_MAX
}
 
enum  Fx {
  FX_AMBIENT_LIGHT =VS::ENV_FX_AMBIENT_LIGHT, FX_FXAA =VS::ENV_FX_FXAA, FX_GLOW =VS::ENV_FX_GLOW, FX_DOF_BLUR =VS::ENV_FX_DOF_BLUR,
  FX_HDR =VS::ENV_FX_HDR, FX_FOG =VS::ENV_FX_FOG, FX_BCS =VS::ENV_FX_BCS, FX_SRGB =VS::ENV_FX_SRGB,
  FX_MAX =VS::ENV_FX_MAX
}
 
enum  FxBlurBlendMode { FX_BLUR_BLEND_MODE_ADDITIVE, FX_BLUR_BLEND_MODE_SCREEN, FX_BLUR_BLEND_MODE_SOFTLIGHT }
 
enum  FxHDRToneMapper { FX_HDR_TONE_MAPPER_LINEAR, FX_HDR_TONE_MAPPER_LOG, FX_HDR_TONE_MAPPER_REINHARDT, FX_HDR_TONE_MAPPER_REINHARDT_AUTOWHITE }
 
enum  FxParam {
  FX_PARAM_AMBIENT_LIGHT_COLOR =VS::ENV_FX_PARAM_AMBIENT_LIGHT_COLOR, FX_PARAM_AMBIENT_LIGHT_ENERGY =VS::ENV_FX_PARAM_AMBIENT_LIGHT_ENERGY, FX_PARAM_GLOW_BLUR_PASSES =VS::ENV_FX_PARAM_GLOW_BLUR_PASSES, FX_PARAM_GLOW_BLUR_SCALE =VS::ENV_FX_PARAM_GLOW_BLUR_SCALE,
  FX_PARAM_GLOW_BLUR_STRENGTH =VS::ENV_FX_PARAM_GLOW_BLUR_STRENGTH, FX_PARAM_GLOW_BLUR_BLEND_MODE =VS::ENV_FX_PARAM_GLOW_BLUR_BLEND_MODE, FX_PARAM_GLOW_BLOOM =VS::ENV_FX_PARAM_GLOW_BLOOM, FX_PARAM_GLOW_BLOOM_TRESHOLD =VS::ENV_FX_PARAM_GLOW_BLOOM_TRESHOLD,
  FX_PARAM_DOF_BLUR_PASSES =VS::ENV_FX_PARAM_DOF_BLUR_PASSES, FX_PARAM_DOF_BLUR_BEGIN =VS::ENV_FX_PARAM_DOF_BLUR_BEGIN, FX_PARAM_DOF_BLUR_RANGE =VS::ENV_FX_PARAM_DOF_BLUR_RANGE, FX_PARAM_HDR_EXPOSURE =VS::ENV_FX_PARAM_HDR_EXPOSURE,
  FX_PARAM_HDR_TONEMAPPER =VS::ENV_FX_PARAM_HDR_TONEMAPPER, FX_PARAM_HDR_WHITE =VS::ENV_FX_PARAM_HDR_WHITE, FX_PARAM_HDR_GLOW_TRESHOLD =VS::ENV_FX_PARAM_HDR_GLOW_TRESHOLD, FX_PARAM_HDR_GLOW_SCALE =VS::ENV_FX_PARAM_HDR_GLOW_SCALE,
  FX_PARAM_HDR_MIN_LUMINANCE =VS::ENV_FX_PARAM_HDR_MIN_LUMINANCE, FX_PARAM_HDR_MAX_LUMINANCE =VS::ENV_FX_PARAM_HDR_MAX_LUMINANCE, FX_PARAM_HDR_EXPOSURE_ADJUST_SPEED =VS::ENV_FX_PARAM_HDR_EXPOSURE_ADJUST_SPEED, FX_PARAM_FOG_BEGIN =VS::ENV_FX_PARAM_FOG_BEGIN,
  FX_PARAM_FOG_BEGIN_COLOR =VS::ENV_FX_PARAM_FOG_BEGIN_COLOR, FX_PARAM_FOG_END_COLOR =VS::ENV_FX_PARAM_FOG_END_COLOR, FX_PARAM_FOG_ATTENUATION =VS::ENV_FX_PARAM_FOG_ATTENUATION, FX_PARAM_FOG_BG =VS::ENV_FX_PARAM_FOG_BG,
  FX_PARAM_BCS_BRIGHTNESS =VS::ENV_FX_PARAM_BCS_BRIGHTNESS, FX_PARAM_BCS_CONTRAST =VS::ENV_FX_PARAM_BCS_CONTRAST, FX_PARAM_BCS_SATURATION =VS::ENV_FX_PARAM_BCS_SATURATION, FX_PARAM_MAX =VS::ENV_FX_PARAM_MAX
}
 
- Public Types inherited from Object
enum  ConnectFlags { CONNECT_DEFERRED =1, CONNECT_PERSIST =2, CONNECT_ONESHOT =4 }
 
enum  { NOTIFICATION_POSTINITIALIZE =0, NOTIFICATION_PREDELETE =1 }
 

Public Member Functions

void set_background (BG p_bg)
 
BG get_background () const
 
void set_background_param (BGParam p_param, const Variant &p_value)
 
Variant get_background_param (BGParam p_param) const
 
void set_enable_fx (Fx p_effect, bool p_enabled)
 
bool is_fx_enabled (Fx p_effect) const
 
void fx_set_param (FxParam p_param, const Variant &p_value)
 
Variant fx_get_param (FxParam p_param) const
 
virtual RID get_rid () const
 
- Public Member Functions inherited from Resource
virtual bool can_reload_from_file ()
 
virtual void reload_from_file ()
 
void register_owner (Object *p_owner)
 
void unregister_owner (Object *p_owner)
 
void set_name (const String &p_name)
 
String get_name () const
 
virtual void set_path (const String &p_path, bool p_take_over=false)
 
String get_path () const
 
void set_subindex (int p_sub_index)
 
int get_subindex () const
 
Ref< Resourceduplicate (bool p_subresources=false)
 
void set_import_metadata (const Ref< ResourceImportMetadata > &p_metadata)
 
Ref< ResourceImportMetadataget_import_metadata () const
 
- Public Member Functions inherited from Reference
_FORCE_INLINE_ bool is_referenced () const
 
bool init_ref ()
 
void reference ()
 
bool unreference ()
 
int reference_get_count () const
 
- Public Member Functions inherited from Object
_FORCE_INLINE_ void _change_notify (const char *p_what="")
 
bool _is_gpl_reversed () const
 
_FORCE_INLINE_ ObjectID get_instance_ID () const
 
void add_change_receptor (Object *p_receptor)
 
void remove_change_receptor (Object *p_receptor)
 
template<class T >
T * cast_to ()
 
template<class T >
const T * cast_to () const
 
virtual String get_type () const
 
virtual String get_save_type () const
 
virtual bool is_type (const String &p_type) const
 
virtual bool is_type_ptr (void *p_ptr) const
 
_FORCE_INLINE_ const StringNameget_type_name () const
 
void set (const StringName &p_name, const Variant &p_value, bool *r_valid=NULL)
 
Variant get (const StringName &p_name, bool *r_valid=NULL) const
 
void get_property_list (List< PropertyInfo > *p_list, bool p_reversed=false) const
 
bool has_method (const StringName &p_method) const
 
void get_method_list (List< MethodInfo > *p_list) const
 
Variant callv (const StringName &p_method, const Array &p_args)
 
virtual Variant call (const StringName &p_method, const Variant **p_args, int p_argcount, Variant::CallError &r_error)
 
virtual void call_multilevel (const StringName &p_method, const Variant **p_args, int p_argcount)
 
virtual void call_multilevel_reversed (const StringName &p_method, const Variant **p_args, int p_argcount)
 
Variant call (const StringName &p_name, VARIANT_ARG_LIST)
 
void call_multilevel (const StringName &p_name, VARIANT_ARG_LIST)
 
void notification (int p_notification, bool p_reversed=false)
 
virtual Variant getvar (const Variant &p_key, bool *r_valid=NULL) const
 
virtual void setvar (const Variant &p_key, const Variant &p_value, bool *r_valid=NULL)
 
void set_script (const RefPtr &p_script)
 
RefPtr get_script () const
 
bool has_meta (const String &p_name) const
 
void set_meta (const String &p_name, const Variant &p_value)
 
Variant get_meta (const String &p_name) const
 
void get_meta_list (List< String > *p_list) const
 
void set_script_instance (ScriptInstance *p_instance)
 
_FORCE_INLINE_ ScriptInstanceget_script_instance () const
 
void add_user_signal (const MethodInfo &p_signal)
 
void emit_signal (const StringName &p_name, VARIANT_ARG_LIST)
 
void emit_signal (const StringName &p_name, const Variant **p_args, int p_argcount)
 
void get_signal_list (List< MethodInfo > *p_signals) const
 
void get_signal_connection_list (const StringName &p_signal, List< Connection > *p_connections) const
 
void get_all_signal_connections (List< Connection > *p_connections) const
 
Error connect (const StringName &p_signal, Object *p_to_object, const StringName &p_to_method, const Vector< Variant > &p_binds=Vector< Variant >(), uint32_t p_flags=0)
 
void disconnect (const StringName &p_signal, Object *p_to_object, const StringName &p_to_method)
 
bool is_connected (const StringName &p_signal, Object *p_to_object, const StringName &p_to_method) const
 
void call_deferred (const StringName &p_method, VARIANT_ARG_LIST)
 
void set_block_signals (bool p_block)
 
bool is_blocking_signals () const
 
Variant::Type get_static_property_type (const StringName &p_property, bool *r_valid=NULL) const
 
virtual void get_translatable_strings (List< String > *p_strings) const
 
virtual void get_argument_options (const StringName &p_function, int p_idx, List< String > *r_options) const
 
StringName XL_MESSAGE (const StringName &p_message) const
 
StringName tr (const StringName &p_message) const
 
bool is_queued_for_deletion () const
 
_FORCE_INLINE_ void set_message_translation (bool p_enable)
 
_FORCE_INLINE_ bool can_translate_messages () const
 
void clear_internal_resource_paths ()
 

Static Protected Member Functions

static void _bind_methods ()
 
- Static Protected Member Functions inherited from Resource
static void _bind_methods ()
 
- Static Protected Member Functions inherited from Reference
static void _bind_methods ()
 
- Static Protected Member Functions inherited from Object
static String _get_category ()
 
static void _bind_methods ()
 
static void get_valid_parents_static (List< String > *p_parents)
 
static void _get_valid_parents_static (List< String > *p_parents)
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void initialize_type ()
 
static _FORCE_INLINE_ void register_custom_data_to_otdb ()
 
static void * get_type_ptr_static ()
 
static void get_inheritance_list_static (List< String > *p_inheritance_list)
 
static String get_type_static ()
 
static String get_parent_type_static ()
 
static String get_category_static ()
 
- Public Attributes inherited from Object
bool _is_queued_for_deletion
 
- Protected Member Functions inherited from Resource
void emit_changed ()
 
void notify_change_to_owners ()
 
virtual void _resource_path_changed ()
 
void _set_path (const String &p_path)
 
void _take_over_path (const String &p_path)
 
- Protected Member Functions inherited from Object
virtual void _initialize_typev ()
 
virtual bool _setv (const StringName &p_name, const Variant &p_property)
 
virtual bool _getv (const StringName &p_name, Variant &r_property) const
 
virtual void _get_property_listv (List< PropertyInfo > *p_list, bool p_reversed) const
 
virtual void _notificationv (int p_notification, bool p_reversed)
 
bool _set (const StringName &p_name, const Variant &p_property)
 
bool _get (const StringName &p_name, Variant &r_property) const
 
void _get_property_list (List< PropertyInfo > *p_list) const
 
void _notification (int p_notification)
 
void cancel_delete ()
 
virtual void _changed_callback (Object *p_changed, const char *p_prop)
 
Variant _call_bind (const Variant **p_args, int p_argcount, Variant::CallError &r_error)
 
Variant _call_deferred_bind (const Variant **p_args, int p_argcount, Variant::CallError &r_error)
 
virtual const StringName_get_type_namev () const
 
DVector< String_get_meta_list_bind () const
 
Array _get_property_list_bind () const
 
Array _get_method_list_bind () const
 
void _clear_internal_resource_paths (const Variant &p_var)
 
- Protected Attributes inherited from Object
_FORCE_INLINE_ bool(Object::*)(const StringName &p_name, Variant &r_ret) _get_get () const)
 
_FORCE_INLINE_ bool(Object::*)(const StringName &p_name, const Variant &p_property) _get_set () const)
 
_FORCE_INLINE_ void(Object::*)(List< PropertyInfo > *p_list) _get_get_property_list () const)
 
_FORCE_INLINE_ void(Object::*)(int) _get_notification () const)
 
- Static Protected Attributes inherited from Object
static _FORCE_INLINE_ void(*)() _get_bind_methods ()
 

The documentation for this class was generated from the following files: