mImpl->mTransform.RegisterUniforms( mImpl->mRenderer, Direction::LEFT_TO_RIGHT );
}
-void BorderVisual::SetBorderColor(const Vector4& color)
-{
- mBorderColor = color;
-
- if( mImpl->mRenderer )
- {
- (mImpl->mRenderer).SetProperty( mBorderColorIndex, color );
- if( color.a < 1.f )
- {
- mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
- }
- }
-}
-
-void BorderVisual::SetBorderSize( float size )
-{
- mBorderSize = size;
-
- if( mImpl->mRenderer )
- {
- (mImpl->mRenderer).SetProperty( mBorderSizeIndex, size );
- }
-}
-
-void BorderVisual::RequireAntiAliasing( bool antiAliasing )
-{
- if( mAntiAliasing != antiAliasing )
- {
- mAntiAliasing = antiAliasing;
- if( mImpl->mRenderer )
- {
- Shader borderShader( GetBorderShader() );
- mImpl->mRenderer.SetShader( borderShader );
- if( mAntiAliasing )
- {
- mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
- }
- }
- }
-}
-
Shader BorderVisual::GetBorderShader()
{
Shader shader;
*/
void OnSetTransform() override;
-public:
-
- /**
- * Set the color of the border.
- * @param[in] color The border color.
- */
- void SetBorderColor( const Vector4& color);
-
- /**
- * Set the size of the border.
- * @param[in] size The border size.
- */
- void SetBorderSize( float size );
-
- /**
- * Enable/Disable the anti-aliasing.
- * @param[in] enable Whether the anti-aliasing be enabled or not.
- */
- void RequireAntiAliasing( bool antiAliasing );
-
private:
/**
*/
void DoSetOnStage( Actor& actor ) override;
-public:
-
- /**
- * Declare whether a texture map should be used for the object, if it's present. Defaults to true.
- * @param[in] useTexture boolean declaration.
- */
- void SetUseTexture( bool useTexture );
-
- /**
- * Declare whether a normal map should be used for the object, if it's present. Defaults to true.
- * @param[in] useNormalMap boolean declaration.
- */
- void SetUseNormalMap( bool useNormalMap );
-
private:
/**