|
@@ -17,7 +17,7 @@
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_texture
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_texture
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -26,7 +26,33 @@ set_texture(Texture *tex) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_color
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_ll_uv
|
|
|
|
|
+// Access : public
|
|
|
|
|
+// Description : Sets the UV coordinate of the lower-left corner of
|
|
|
|
|
+// all the sprites generated by this renderer. Normally
|
|
|
|
|
+// this is (0, 0), but it might be set to something else
|
|
|
|
|
+// to use only a portion of the texture.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE void SpriteParticleRenderer::
|
|
|
|
|
+set_ll_uv(const TexCoordf &ll_uv) {
|
|
|
|
|
+ _sprite_primitive->set_ll_uv(ll_uv);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_ur_uv
|
|
|
|
|
+// Access : public
|
|
|
|
|
+// Description : Sets the UV coordinate of the upper-right corner of
|
|
|
|
|
+// all the sprites generated by this renderer. Normally
|
|
|
|
|
+// this is (1, 1), but it might be set to something else
|
|
|
|
|
+// to use only a portion of the texture.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE void SpriteParticleRenderer::
|
|
|
|
|
+set_ur_uv(const TexCoordf &ur_uv) {
|
|
|
|
|
+ _sprite_primitive->set_ur_uv(ur_uv);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_color
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -35,7 +61,7 @@ set_color(const Colorf &color) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_x_scale_flag
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_x_scale_flag
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -53,7 +79,7 @@ set_x_scale_flag(bool animate_x_ratio) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_y_scale_flag
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_y_scale_flag
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -71,7 +97,7 @@ set_y_scale_flag(bool animate_y_ratio) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_anim_angle_flag
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_anim_angle_flag
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -89,7 +115,7 @@ set_anim_angle_flag(bool animate_theta) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_initial_x_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_initial_x_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -98,7 +124,7 @@ set_initial_x_scale(float initial_x_scale) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_final_x_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_final_x_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -107,7 +133,7 @@ set_final_x_scale(float final_x_scale) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_initial_y_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_initial_y_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -116,7 +142,7 @@ set_initial_y_scale(float initial_y_scale) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_final_y_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_final_y_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -125,7 +151,7 @@ set_final_y_scale(float final_y_scale) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_nonanimated_theta
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_nonanimated_theta
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -134,7 +160,7 @@ set_nonanimated_theta(float theta) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_alpha_blend_method
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_alpha_blend_method
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -143,7 +169,7 @@ set_alpha_blend_method(ParticleRendererBlendMethod bm) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : set_alpha_disable
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::set_alpha_disable
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void SpriteParticleRenderer::
|
|
INLINE void SpriteParticleRenderer::
|
|
@@ -152,7 +178,7 @@ set_alpha_disable(bool ad) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_texture
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_texture
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE Texture *SpriteParticleRenderer::
|
|
INLINE Texture *SpriteParticleRenderer::
|
|
@@ -161,7 +187,29 @@ get_texture(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_color
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_ll_uv
|
|
|
|
|
+// Access : public
|
|
|
|
|
+// Description : Returns the UV coordinate of the lower-left corner;
|
|
|
|
|
+// see set_ll_uv().
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE const TexCoordf &SpriteParticleRenderer::
|
|
|
|
|
+get_ll_uv() const {
|
|
|
|
|
+ return _sprite_primitive->get_ll_uv();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_ur_uv
|
|
|
|
|
+// Access : public
|
|
|
|
|
+// Description : Returns the UV coordinate of the upper-right corner;
|
|
|
|
|
+// see set_ur_uv().
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE const TexCoordf &SpriteParticleRenderer::
|
|
|
|
|
+get_ur_uv() const {
|
|
|
|
|
+ return _sprite_primitive->get_ur_uv();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_color
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE Colorf SpriteParticleRenderer::
|
|
INLINE Colorf SpriteParticleRenderer::
|
|
@@ -170,7 +218,7 @@ get_color(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_x_scale_flag
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_x_scale_flag
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE bool SpriteParticleRenderer::
|
|
INLINE bool SpriteParticleRenderer::
|
|
@@ -179,7 +227,7 @@ get_x_scale_flag(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_y_scale_flag
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_y_scale_flag
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE bool SpriteParticleRenderer::
|
|
INLINE bool SpriteParticleRenderer::
|
|
@@ -188,7 +236,7 @@ get_y_scale_flag(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_anim_angle_flag
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_anim_angle_flag
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE bool SpriteParticleRenderer::
|
|
INLINE bool SpriteParticleRenderer::
|
|
@@ -197,7 +245,7 @@ get_anim_angle_flag(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_initial_x_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_initial_x_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE float SpriteParticleRenderer::
|
|
INLINE float SpriteParticleRenderer::
|
|
@@ -206,7 +254,7 @@ get_initial_x_scale(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_final_x_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_final_x_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE float SpriteParticleRenderer::
|
|
INLINE float SpriteParticleRenderer::
|
|
@@ -215,7 +263,7 @@ get_final_x_scale(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_initial_y_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_initial_y_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE float SpriteParticleRenderer::
|
|
INLINE float SpriteParticleRenderer::
|
|
@@ -224,7 +272,7 @@ get_initial_y_scale(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_final_y_scale
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_final_y_scale
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE float SpriteParticleRenderer::
|
|
INLINE float SpriteParticleRenderer::
|
|
@@ -233,7 +281,7 @@ get_final_y_scale(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_nonanimated_theta
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_nonanimated_theta
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE float SpriteParticleRenderer::
|
|
INLINE float SpriteParticleRenderer::
|
|
@@ -242,7 +290,7 @@ get_nonanimated_theta(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_alpha_blend_method
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_alpha_blend_method
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE BaseParticleRenderer::ParticleRendererBlendMethod SpriteParticleRenderer::
|
|
INLINE BaseParticleRenderer::ParticleRendererBlendMethod SpriteParticleRenderer::
|
|
@@ -251,7 +299,7 @@ get_alpha_blend_method(void) const {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-// Function : get_alpha_disable
|
|
|
|
|
|
|
+// Function : SpriteParticleRenderer::get_alpha_disable
|
|
|
// Access : public
|
|
// Access : public
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE bool SpriteParticleRenderer::
|
|
INLINE bool SpriteParticleRenderer::
|