sf.PostFX Class Reference
sf.PostFX is used to apply a post effect to a window.
Default constructor : sf.PostFX()
Copy constructor : sf.PostFX(Copy) where Copy is a sf.PostFX instance.
Static methods
CanUsePostFX()
Tell wether or not the system supports post-effects.
Methods
GetCenter()
Get the center of the object, in coordinates relative to the object.
Inherited
GetColor()
Get the color of the object.
Inherited
GetPosition()
Get the position of the object.
Inherited
GetRotation()
Get the orientation of the object.
Inherited
GetScale()
Get the scale of the object.
Inherited
LoadFromFile(Filename)
Load the effect from a file.
LoadFromMemory(Effect)
Load the effect from a text in memory.
Move(OffsetX, OffsetY)
Move the object.
OffsetX : X offset
OffsetY : Y offset
Inherited
Rotate(Angle)
Rotate the object.
Angle : Angle of rotation, in degrees
Inherited
Scale(FactorX, FactorY)
Scale the object.
FactorX : Scaling factor on X (must be strictly positive)
FactorY : Scaling factor on Y (must be strictly positive)
Inherited
SetBlendMode(Mode)
Set the blending mode for the object. The default blend mode is sf.Blend.Alpha
Mode : New blending mode
Inherited
SetCenter(CenterX, CenterY)
Set the center of the object, in coordinates relative to the object.
CenterX : X coordinate of the center
CenterY : Y coordinate of the center
Inherited
SetColor(Color)
Set the color of the object.
Color : New color
Inherited
SetParameter(X), SetParameter(X, Y), SetParameter(X, Y, Z), SetParameter(X, Y, Z, W)
Change a parameter of the effect.
Name : Parameter name in the effect
X,Y,Z,W : Values to assign.
SetPosition(X, Y)
Set the position of the object.
X : New X coordinate
Y : New Y coordinate
Inherited
SetRotation(Rotation)
Set the orientation of the object.
Rotation : Angle of rotation, in degrees
Inherited
SetScale(ScaleX, ScaleY)
Set the scale of the object.
ScaleX : New horizontal scale (must be strictly positive)
ScaleY : New vertical scale (must be strictly positive)
Inherited
SetScaleX(ScaleX)
Set the X scale factor of the object.
ScaleX : New horizontal scale (must be strictly positive)
Inherited
SetScaleY(ScaleY)
Set the Y scale factor of the object.
ScaleY : New vertical scale (must be strictly positive)
Inherited
SetTexture(Name, Texture)
Set a texture parameter.
Name : Texture name in the effect
Texture : Image to set (pass None to use content of current framebuffer)
SetX(X)
Set the X position of the object.
X : New X coordinate
Inherited
SetY(Y)
Set the Y position of the object.
Y : New Y coordinate
Inherited
TransformToGlobal(X, Y)
Transform a point from local coordinates into global coordinates (ie it applies the object's center, translation, rotation and scale to the point). Returns a tuple.
X : X coordinate of the point to transform
Y : Y coordinate of the point to transform
Inherited
TransformToLocal(X, Y)
Transform a point from global coordinates into local coordinates (ie it applies the inverse of object's center, translation, rotation and scale to the point). Returns a tuple.
X : X coordinate of the point to transform
Y : Y coordinate of the point to transform
Inherited