siege.sfml

BlendModeEquation

class BlendModeEquation
Add = siege.sfml.BlendModeEquation.Add
Subtract = siege.sfml.BlendModeEquation.Subtract

BlendModeFactor

class BlendModeFactor
DstAlpha = siege.sfml.BlendModeFactor.DstAlpha
DstColor = siege.sfml.BlendModeFactor.DstColor
One = siege.sfml.BlendModeFactor.One
OneMinusDstAlpha = siege.sfml.BlendModeFactor.OneMinusDstAlpha
OneMinusDstColor = siege.sfml.BlendModeFactor.OneMinusDstColor
OneMinusSrcAlpha = siege.sfml.BlendModeFactor.OneMinusSrcAlpha
OneMinusSrcColor = siege.sfml.BlendModeFactor.OneMinusSrcColor
SrcAlpha = siege.sfml.BlendModeFactor.SrcAlpha
SrcColor = siege.sfml.BlendModeFactor.SrcColor
Zero = siege.sfml.BlendModeFactor.Zero

PrimitiveType

class PrimitiveType
Lines = siege.sfml.PrimitiveType.Lines
LinesStrip = siege.sfml.PrimitiveType.LinesStrip
Points = siege.sfml.PrimitiveType.Points
Quads = siege.sfml.PrimitiveType.Quads
Triangles = siege.sfml.PrimitiveType.Triangles
TrianglesFan = siege.sfml.PrimitiveType.TrianglesFan
TrianglesStrip = siege.sfml.PrimitiveType.TrianglesStrip

BlendMode

class BlendMode
__init__(sourceFactor, destinationFactor[, blendEquation=siege.sfml.BlendModeEquation.Add])
Parameters:
__init__(colorSourceFactor, colorDestinationFactor, colorBlendEquation, alphaSourceFactor, alphaDestinationFactor, alphaBlendEquation)
Parameters:
BlendAdd
BlendAlpha
BlendMultiply
BlendNone
alphaDstFactor
alphaEquation
alphaSrcFactor
colorDstFactor
colorEquation
colorSrcFactor

Drawable

class Drawable
draw(arg2, arg3)
Parameters:
draw(arg2, arg3)
Parameters:

VertexArray

class VertexArray
__init__(type[, vertexCount=0])
Parameters:
append(arg2)
Parameters:arg2 (Vertex) –
clear()
getBounds()
Return type:sfRect
getPrimitiveType()
Return type:PrimitiveType
getVertexCount()
Return type:int
resize(arg2)
Parameters:arg2 (int) –
setPrimitiveType(arg2)
Parameters:arg2 (PrimitiveType) –

RenderStates

class RenderStates
__init__(arg2)
Parameters:arg2 (BlendMode) –
__init__(arg2)
Parameters:arg2 (Transform) –
__init__(arg2)
Parameters:arg2 (sfTexture) –
__init__(arg2)
Parameters:arg2 (Shader) –
__init__(arg2, arg3, arg4, arg5)
Parameters:
blendMode
shader
texture
transform

Shader

class Shader
isAvailable()
Return type:bool
loadFromFile(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (object) –
Return type:

bool

loadFromFile(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (str) –
Return type:

bool

loadFromMemory(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (object) –
Return type:

bool

loadFromMemory(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (str) –
Return type:

bool

setParameter(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (float) –
setParameter(arg2, arg3, arg4)
Parameters:
  • arg2 (str) –
  • arg3 (float) –
  • arg4 (float) –
setParameter(arg2, arg3, arg4, arg5)
Parameters:
  • arg2 (str) –
  • arg3 (float) –
  • arg4 (float) –
  • arg5 (float) –
setParameter(arg2, arg3, arg4, arg5, arg6)
Parameters:
  • arg2 (str) –
  • arg3 (float) –
  • arg4 (float) –
  • arg5 (float) –
  • arg6 (float) –
setParameter(arg2, arg3)
Parameters:
setParameter(arg2, arg3)
Parameters:
setParameter(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (Color) –
setParameter(arg2, arg3)
Parameters:
setParameter(arg2, arg3)
Parameters:

SoundBuffer

class SoundBuffer
loadFromFile(arg2)
Parameters:arg2 (str) –
Return type:bool

SoundSource

class SoundSource
getAttenuation()
Return type:float
getMinDistance()
Return type:float
getPitch()
Return type:float
getVolume()
Return type:float
isRelativeToListener()
Return type:bool
setAttenuation(arg2)
Parameters:arg2 (float) –
setMinDistance(arg2)
Parameters:arg2 (float) –
setPitch(arg2)
Parameters:arg2 (float) –
setRelativeToListener(arg2)
Parameters:arg2 (bool) –
setVolume(arg2)
Parameters:arg2 (float) –

Music

class Music
getDuration()
Return type:Time
getLoop()
Return type:bool
getPlayingOffset()
Return type:Time
getSampleRate()
Return type:int
getStatus()
Return type:SoundStatus
openFromFile(arg2)
Parameters:arg2 (str) –
Return type:bool
pause()
play()
setLoop(arg2)
Parameters:arg2 (bool) –
setPlayingOffset(arg2)
Parameters:arg2 (Time) –
stop()

Sound

class Sound
getLoop()
Return type:bool
getPlayingOffset()
Return type:Time
getStatus()
Return type:SoundStatus
pause()
play()
setBuffer(arg2)
Parameters:arg2 (SoundBuffer) –
setLoop(arg2)
Parameters:arg2 (bool) –
stop()

Transform

class Transform
combine(arg2)
Parameters:arg2 (Transform) –
Return type:Transform
getInverse()
Return type:Transform
rotate(arg2)
Parameters:arg2 (float) –
Return type:Transform
rotate(arg2, arg3, arg4)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
  • arg4 (float) –
Return type:

Transform

rotate(arg2, arg3)
Parameters:
Return type:

Transform

scale(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
Return type:

Transform

scale(arg2, arg3, arg4, arg5)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
  • arg4 (float) –
  • arg5 (float) –
Return type:

Transform

scale(arg2)
Parameters:arg2 (sfVector) –
Return type:Transform
scale(arg2, arg3)
Parameters:
Return type:

Transform

transformPoint(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
Return type:

sfVector

transformPoint(arg2)
Parameters:arg2 (sfVector) –
Return type:sfVector
transformRect(arg2)
Parameters:arg2 (sfRect) –
Return type:sfRect
translate(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
Return type:

Transform

translate(arg2)
Parameters:arg2 (sfVector) –
Return type:Transform

Transformable

class Transformable
getInverseTransform()
Return type:Transform
getOrigin()
Return type:sfVector
getPosition()
Return type:sfVector
getRotation()
Return type:float
getScale()
Return type:sfVector
getTransform()
Return type:Transform
move(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
move(arg2)
Parameters:arg2 (sfVector) –
rotate(arg2)
Parameters:arg2 (float) –
scale(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
scale(arg2)
Parameters:arg2 (sfVector) –
setOrigin(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
setOrigin(arg2)
Parameters:arg2 (sfVector) –
setPosition(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
setPosition(arg2)
Parameters:arg2 (sfVector) –
setRotation(arg2)
Parameters:arg2 (float) –
setScale(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
setScale(arg2)
Parameters:arg2 (sfVector) –

Shape(Transformable, Drawable)

class Shape(Transformable, Drawable)

RectangleShape

class RectangleShape
__init__(arg2)
Parameters:arg2 (sfVector) –
getSize()
Return type:sfVector
setSize(arg2)
Parameters:arg2 (sfVector) –

Sprite(Transformable, Drawable)

class Sprite(Transformable, Drawable)

Vertex

class Vertex
__init__(arg2)
Parameters:arg2 (sfVector) –
__init__(arg2, arg3)
Parameters:
__init__(arg2, arg3)
Parameters:
__init__(arg2, arg3, arg4)
Parameters:
color
position
texCoords

sfEvent

class sfEvent
joystickButton
joystickConnect
joystickMove
key
mouseButton
mouseMove
mouseWheel
size
text
type
Closed = siege.sfml.EventType.Closed
Count = siege.sfml.EventType.Count
EventType = <class 'siege.sfml.EventType'>
GainedFocus = siege.sfml.EventType.GainedFocus
JoystickButtonEvent = <class 'siege.sfml.JoystickButtonEvent'>
JoystickButtonPressed = siege.sfml.EventType.JoystickButtonPressed
JoystickButtonReleased = siege.sfml.EventType.JoystickButtonReleased
JoystickConnectEvent = <class 'siege.sfml.JoystickConnectEvent'>
JoystickConnected = siege.sfml.EventType.JoystickConnected
JoystickDisconnected = siege.sfml.EventType.JoystickDisconnected
JoystickMoveEvent = <class 'siege.sfml.JoystickMoveEvent'>
JoystickMoved = siege.sfml.EventType.JoystickMoved
KeyEvent = <class 'siege.sfml.KeyEvent'>
KeyPressed = siege.sfml.EventType.KeyPressed
KeyReleased = siege.sfml.EventType.KeyReleased
LostFocus = siege.sfml.EventType.LostFocus
MouseButtonEvent = <class 'siege.sfml.MouseButtonEvent'>
MouseButtonPressed = siege.sfml.EventType.MouseButtonPressed
MouseButtonReleased = siege.sfml.EventType.MouseButtonReleased
MouseEntered = siege.sfml.EventType.MouseEntered
MouseLeft = siege.sfml.EventType.MouseLeft
MouseMoveEvent = <class 'siege.sfml.MouseMoveEvent'>
MouseMoved = siege.sfml.EventType.MouseMoved
MouseWheelEvent = <class 'siege.sfml.MouseWheelEvent'>
MouseWheelMoved = siege.sfml.EventType.MouseWheelMoved
Resized = siege.sfml.EventType.Resized
SizeEvent = <class 'siege.sfml.SizeEvent'>
TextEntered = siege.sfml.EventType.TextEntered
TextEvent = <class 'siege.sfml.TextEvent'>

sfIntRect

class sfIntRect
__init__(arg2, arg3, arg4, arg5)
Parameters:
  • arg2 (int) –
  • arg3 (int) –
  • arg4 (int) –
  • arg5 (int) –
__repr__()
Return type:str
contains(arg2, arg3)
Parameters:
  • arg2 (int) –
  • arg3 (int) –
Return type:

bool

contains(arg2)
Parameters:arg2 (sfTileVector) –
Return type:bool
intersects(arg2)
Parameters:arg2 (sfIntRect) –
Return type:bool
intersects(arg2, arg3)
Parameters:
Return type:

bool

height
width
x
y

sfRect

class sfRect
__init__(arg2, arg3, arg4, arg5)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
  • arg4 (float) –
  • arg5 (float) –
__repr__()
Return type:str
contains(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
Return type:

bool

contains(arg2)
Parameters:arg2 (sfVector) –
Return type:bool
intersects(arg2)
Parameters:arg2 (sfRect) –
Return type:bool
intersects(arg2, arg3)
Parameters:
Return type:

bool

height
width
x
y

sfTexture

class sfTexture
create(arg2, arg3)
Parameters:
  • arg2 (int) –
  • arg3 (int) –
Return type:

bool

getSize()
Return type:object
loadFromFile(arg2, arg3)
Parameters:
Return type:

bool

loadFromImage(arg2, arg3)
Parameters:
Return type:

bool

loadFromMemory(arg2, arg3, arg4)
Parameters:
  • arg2 (object) –
  • arg3 (int) –
  • arg4 (sfIntRect) –
Return type:

bool

loadFromStream(arg2, arg3)
Parameters:
Return type:

bool

sfTileVector

class sfTileVector
__add__(arg2)
Parameters:arg2 (sfTileVector) –
Return type:object
__cmp__(arg2)
Parameters:arg2 (sfTileVector) –
Return type:int
__eq__(arg2)
Parameters:arg2 (sfTileVector) –
Return type:object
__hash__()
Return type:int
__iadd__(arg2)
Parameters:arg2 (sfTileVector) –
Return type:object
__init__(arg2, arg3)
Parameters:
  • arg2 (int) –
  • arg3 (int) –
__isub__(arg2)
Parameters:arg2 (sfTileVector) –
Return type:object
__repr__()
Return type:str
__sub__(arg2)
Parameters:arg2 (sfTileVector) –
Return type:object
x
y

sfVector

class sfVector
__add__(arg2)
Parameters:arg2 (sfVector) –
Return type:object
__eq__(arg2)
Parameters:arg2 (sfVector) –
Return type:object
__iadd__(arg2)
Parameters:arg2 (sfVector) –
Return type:object
__init__(arg2, arg3)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
__isub__(arg2)
Parameters:arg2 (sfVector) –
Return type:object
__repr__()
Return type:str
__sub__(arg2)
Parameters:arg2 (sfVector) –
Return type:object
x
y

sfVector3f

class sfVector3f
__add__(arg2)
Parameters:arg2 (sfVector3f) –
Return type:object
__eq__(arg2)
Parameters:arg2 (sfVector3f) –
Return type:object
__iadd__(arg2)
Parameters:arg2 (sfVector3f) –
Return type:object
__init__(arg2, arg3, arg4)
Parameters:
  • arg2 (float) –
  • arg3 (float) –
  • arg4 (float) –
__isub__(arg2)
Parameters:arg2 (sfVector3f) –
Return type:object
__sub__(arg2)
Parameters:arg2 (sfVector3f) –
Return type:object
x
y
z