4 #include "scene/3d/visual_instance.h" 5 #include "scene/2d/animated_sprite.h" 23 ALPHA_CUT_OPAQUE_PREPASS
53 AlphaCutMode alpha_cut;
58 void _propagate_color_changed();
62 Color _get_color_accum();
63 void _notification(
int p_what);
64 static void _bind_methods();
65 virtual void _draw()=0;
66 _FORCE_INLINE_
void set_aabb(
const AABB& p_aabb) { aabb=p_aabb; }
67 _FORCE_INLINE_
RID& get_immediate() {
return immediate; }
71 void set_centered(
bool p_center);
72 bool is_centered()
const;
74 void set_offset(
const Point2& p_offset);
77 void set_flip_h(
bool p_flip);
78 bool is_flipped_h()
const;
80 void set_flip_v(
bool p_flip);
81 bool is_flipped_v()
const;
83 void set_region(
bool p_region);
84 bool is_region()
const;
86 void set_region_rect(
const Rect2& p_region_rect);
87 Rect2 get_region_rect()
const;
89 void set_modulate(
const Color& p_color);
90 Color get_modulate()
const;
92 void set_opacity(
float p_amount);
93 float get_opacity()
const;
95 void set_pixel_size(
float p_amount);
96 float get_pixel_size()
const;
98 void set_axis(Vector3::Axis p_amount);
99 Vector3::Axis get_axis()
const;
101 void set_draw_flag(DrawFlags p_flag,
bool p_enable);
102 bool get_draw_flag(DrawFlags p_flag)
const;
104 void set_alpha_cut_mode(AlphaCutMode p_mode);
105 AlphaCutMode get_alpha_cut_mode()
const;
107 virtual Rect2 get_item_rect()
const=0;
109 virtual AABB get_aabb()
const;
131 virtual void _draw();
132 static void _bind_methods();
140 void set_region(
bool p_region);
141 bool is_region()
const;
143 void set_region_rect(
const Rect2& p_region_rect);
144 Rect2 get_region_rect()
const;
146 void set_frame(
int p_frame);
147 int get_frame()
const;
149 void set_vframes(
int p_amount);
150 int get_vframes()
const;
152 void set_hframes(
int p_amount);
153 int get_hframes()
const;
155 virtual Rect2 get_item_rect()
const;
170 virtual void _draw();
171 static void _bind_methods();
179 void set_frame(
int p_frame);
180 int get_frame()
const;
183 virtual Rect2 get_item_rect()
const;
189 VARIANT_ENUM_CAST(SpriteBase3D::DrawFlags);
190 VARIANT_ENUM_CAST(SpriteBase3D::AlphaCutMode);
191 #endif // SPRITE_3D_H
Definition: sprite_3d.h:161
Definition: math_2d.h:204
Definition: sprite_3d.h:117
Definition: sprite_3d.h:8
Definition: visual_instance.h:84