siege.graphic

DisplayMode

class DisplayMode
Fullscreen = siege.graphic.DisplayMode.Fullscreen
Window = siege.graphic.DisplayMode.Window
WindowFullscreen = siege.graphic.DisplayMode.WindowFullscreen

AnimationMap

class AnimationMap
__contains__(arg2)
Parameters:arg2 (object) –
Return type:bool
__delitem__(arg2)
Parameters:arg2 (object) –
__getitem__(arg2)
Parameters:arg2 (object) –
Return type:object
__iter__()
Return type:object
__len__()
Return type:int
__setitem__(arg2, arg3)
Parameters:
  • arg2 (object) –
  • arg3 (object) –

Color

class Color
__add__(arg2)
Parameters:arg2 (Color) –
Return type:object
__eq__(arg2)
Parameters:arg2 (Color) –
Return type:object
__iadd__(arg2)
Parameters:arg2 (Color) –
Return type:object
__imul__(arg2)
Parameters:arg2 (Color) –
Return type:object
__init__([red=0[, green=0[, blue=0[, alpha=255]]]])
Parameters:
  • red (int) –
  • green (int) –
  • blue (int) –
  • alpha (int) –
__mul__(arg2)
Parameters:arg2 (Color) –
Return type:object
__ne__(arg2)
Parameters:arg2 (Color) –
Return type:object
a
b
g
r

DebugDrawSystem

class DebugDrawSystem
add(rect, color)
Parameters:
add(position, radius, color)
Parameters:
  • position (Vector) –
  • radius (float) –
  • color (Color) –
add(point1, point2, color)
Parameters:
enabled

DrawableText

class DrawableText
__init__( text, font, size])
Parameters:
  • text (str) –
  • font (str) –
  • size] (int) –
getColor()
Return type:Color
getGlobalBounds()
Return type:Rect
getLocalBounds()
Return type:Rect
getPosition()
Return type:Vector
getSize()
Return type:int
getString()
Return type:str
render(target)
Parameters:target (sfRenderTarget) –
renderOutlined(target, outline)
Parameters:
renderShadowed(target, shadow)
Parameters:
setColor(color)
Parameters:color (Color) –
setFont(font)
Parameters:font (str) –
setPosition(position)
Parameters:position (Vector) –
setSize(size)
Parameters:size (int) –
setString(text)
Parameters:text (object) –
isVisible

Frame

class Frame
__init__(arg2, arg3)
Parameters:
  • arg2 (int) –
  • arg3 (int) –
delay
forced
index

FrameVector

class FrameVector
__contains__(arg2)
Parameters:arg2 (object) –
Return type:bool
__delitem__(arg2)
Parameters:arg2 (object) –
__getitem__(arg2)
Parameters:arg2 (object) –
Return type:object
__iter__()
Return type:object
__len__()
Return type:int
__setitem__(arg2, arg3)
Parameters:
  • arg2 (object) –
  • arg3 (object) –
append(arg2)
Parameters:arg2 (object) –
extend(arg2)
Parameters:arg2 (object) –

PixelCheck

class PixelCheck
static collision(arg1, arg2, arg3)
Parameters:
Return type:

bool

static collision(arg1, arg2, arg3)
Parameters:
Return type:

bool

static collision(arg1, arg2, arg3)
Parameters:
Return type:

bool

static collision(arg1, arg2, arg3, arg4)
Parameters:
Return type:

bool

static collision(arg1, arg2, arg3, arg4, arg5)
Parameters:
Return type:

bool

static collision(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
Parameters:
Return type:

bool

static contains(arg1, arg2, arg3)
Parameters:
Return type:

bool

static contains(arg1, arg2, arg3, arg4)
Parameters:
Return type:

bool

static contains(arg1, arg2, arg3, arg4, arg5)
Parameters:
Return type:

bool

Renderable

class Renderable
getView()
Return type:sfView
getViewport()
Return type:Rect
render(arg2)
Parameters:arg2 (sfRenderTarget) –
render(arg2)
Parameters:arg2 (sfRenderTarget) –
setViewCenter(arg2)
Parameters:arg2 (Vector) –
updateView(arg2, arg3)
Parameters:
  • arg2 (Vector) –
  • arg3 (float) –
attached
priority
scroll
view

SpriteAnimation

class SpriteAnimation
__init__(arg2, arg3)
Parameters:
  • arg2 (str) –
  • arg3 (list) –
delay
frames
looped
name

SpriteData

class SpriteData
addAnimation(arg2)
Parameters:arg2 (SpriteAnimation) –
animations
frames

SpriteFrame

class SpriteFrame
__init__( arg2, arg3, arg4, arg5, arg6])
Parameters:
  • arg2 (int) –
  • arg3 (int) –
  • arg4 (int) –
  • arg5 (int) –
  • arg6] (Vector) –
height
origin
width
x
y

Substitution

class Substitution
__init__( arg2, arg3, arg4])
Parameters:
  • arg2 (str) –
  • arg3 (str) –
  • arg4] (Vector) –
__nonzero__()
Return type:bool
isHidden()
Return type:bool
base
origin
replacement

SubstitutionMap

class SubstitutionMap
__contains__(arg2)
Parameters:arg2 (object) –
Return type:bool
__delitem__(arg2)
Parameters:arg2 (object) –
__getitem__(arg2)
Parameters:arg2 (object) –
Return type:object
__iter__()
Return type:object
__len__()
Return type:int
__setitem__(arg2, arg3)
Parameters:
  • arg2 (object) –
  • arg3 (object) –

Texture

class Texture
get()
Return type:sfTexture
getPath()
Return type:str
getSize()
Return type:PixelVector
height
width

VideoMode

class VideoMode
__eq__(arg2)
Parameters:arg2 (VideoMode) –
Return type:object
__ge__(arg2)
Parameters:arg2 (VideoMode) –
Return type:object
__gt__(arg2)
Parameters:arg2 (VideoMode) –
Return type:object
__init__(width, height[, bitsPerPixel=32])
Parameters:
  • width (int) –
  • height (int) –
  • bitsPerPixel (int) –
__le__(arg2)
Parameters:arg2 (VideoMode) –
Return type:object
__lt__(arg2)
Parameters:arg2 (VideoMode) –
Return type:object
__ne__(arg2)
Parameters:arg2 (VideoMode) –
Return type:object
isValid()
Return type:bool
static getDesktopMode()
Return type:VideoMode
static getFullscreenModes()
Return type:VideoModeList
bitsPerPixel
height
width

VideoModeList

class VideoModeList
__contains__(arg2)
Parameters:arg2 (object) –
Return type:bool
__delitem__(arg2)
Parameters:arg2 (object) –
__getitem__(arg2)
Parameters:arg2 (object) –
Return type:object
__iter__()
Return type:object
__len__()
Return type:int
__setitem__(arg2, arg3)
Parameters:
  • arg2 (object) –
  • arg3 (object) –
append(arg2)
Parameters:arg2 (object) –
extend(arg2)
Parameters:arg2 (object) –

sfRenderTarget

class sfRenderTarget
draw( drawable[, states=<siege.sfml.RenderStates)
Parameters:

sfView

class sfView
getCenter()
Return type:sfVector
getSize()
Return type:sfVector

TextureCache

class TextureCache
static get(arg1)
Parameters:arg1 (object) –
Return type:Texture
static getAbsolute(arg1)
Parameters:arg1 (object) –
Return type:Texture
static getAbsolutePath(arg1)
Parameters:arg1 (object) –
Return type:str
static getPath(arg1, arg2)
Parameters:
  • arg1 (object) –
  • arg2 (object) –
Return type:

str

static instance()
Return type:TextureCache
static setSmooth(arg1)
Parameters:arg1 (bool) –