Package fife :: Module fife :: Class RenderBackend
[hide private]
[frames] | no frames]

Class RenderBackend

source code

  _object --+    
            |    
AbstractImage --+
                |
               RenderBackend

Proxy of C++ FIFE::RenderBackend class

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
__repr__(self) source code
string
getName(self) source code
Image
getScreenImage(self) source code
 
captureScreen(self, *args)
captureScreen(self, string filename)
source code
SDL_Surface
getSurface(self) source code
ScreenMode
getCurrentScreenMode(self) source code
unsigned int
getWidth(self) source code
unsigned int
getHeight(self) source code
unsigned int
getScreenWidth(self) source code
unsigned int
getScreenHeight(self) source code
Rect
getArea(self) source code
 
getPixelRGBA(self, *args)
getPixelRGBA(self, int x, int y)
source code
 
putPixel(self, *args)
putPixel(self, int x, int y, int r, int g, int b, int a = 255) -> bool putPixel(self, int x, int y, int r, int g, int b) -> bool
source code
 
drawLine(self, *args)
drawLine(self, Point p1, Point p2, int r, int g, int b, int a = 255) drawLine(self, Point p1, Point p2, int r, int g, int b)
source code
 
drawTriangle(self, *args)
drawTriangle(self, Point p1, Point p2, Point p3, int r, int g, int b, ...
source code
 
drawRectangle(self, *args)
drawRectangle(self, Point p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, ...
source code
 
fillRectangle(self, *args)
fillRectangle(self, Point p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, ...
source code
 
drawQuad(self, *args)
drawQuad(self, Point p1, Point p2, Point p3, Point p4, int r, int g, ...
source code
 
drawVertex(self, *args)
drawVertex(self, Point p, int size, int r, int g, int b, int a = 255) drawVertex(self, Point p, int size, int r, int g, int b)
source code
 
drawLightPrimitive(self, *args)
drawLightPrimitive(self, Point p, uint8_t intensity, float radius, int subdivisions, ...
source code
 
pushClipArea(self, *args)
pushClipArea(self, Rect cliparea, bool clear = True) pushClipArea(self, Rect cliparea)
source code
 
popClipArea(self) source code
Rect
getClipArea(self) source code
 
setAlphaOptimizerEnabled(self, *args)
setAlphaOptimizerEnabled(self, bool enabled)
source code
bool
isAlphaOptimizerEnabled(self) source code
 
saveImage(self, *args)
saveImage(self, string filename)
source code
 
setColorKeyEnabled(self, *args)
setColorKeyEnabled(self, bool colorkeyenable)
source code
bool
isColorKeyEnabled(self) source code
 
setColorKey(self, *args)
setColorKey(self, SDL_Color colorkey)
source code
SDL_Color
getColorKey(self) source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _fife.delete_RenderBackend
  __del__ = lambda self:
Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Overrides: AbstractImage.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: _swig_repr

getSurface(self)

source code 
Returns: SDL_Surface
Overrides: AbstractImage.getSurface

getWidth(self)

source code 
Returns: unsigned int
Overrides: AbstractImage.getWidth

getHeight(self)

source code 
Returns: unsigned int
Overrides: AbstractImage.getHeight

getArea(self)

source code 
Returns: Rect
Overrides: AbstractImage.getArea

getPixelRGBA(self, *args)

source code 

getPixelRGBA(self, int x, int y)

Overrides: AbstractImage.getPixelRGBA

putPixel(self, *args)

source code 

putPixel(self, int x, int y, int r, int g, int b, int a = 255) -> bool putPixel(self, int x, int y, int r, int g, int b) -> bool

Overrides: AbstractImage.putPixel

drawLine(self, *args)

source code 

drawLine(self, Point p1, Point p2, int r, int g, int b, int a = 255) drawLine(self, Point p1, Point p2, int r, int g, int b)

Overrides: AbstractImage.drawLine

drawTriangle(self, *args)

source code 

drawTriangle(self, Point p1, Point p2, Point p3, int r, int g, int b, 
    int a = 255)
drawTriangle(self, Point p1, Point p2, Point p3, int r, int g, int b)

Overrides: AbstractImage.drawTriangle

drawRectangle(self, *args)

source code 

drawRectangle(self, Point p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, 
    uint8_t b, uint8_t a = 255)
drawRectangle(self, Point p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, 
    uint8_t b)

Overrides: AbstractImage.drawRectangle

fillRectangle(self, *args)

source code 

fillRectangle(self, Point p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, 
    uint8_t b, uint8_t a = 255)
fillRectangle(self, Point p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, 
    uint8_t b)

Overrides: AbstractImage.fillRectangle

drawQuad(self, *args)

source code 

drawQuad(self, Point p1, Point p2, Point p3, Point p4, int r, int g, 
    int b, int a = 255)
drawQuad(self, Point p1, Point p2, Point p3, Point p4, int r, int g, 
    int b)

Overrides: AbstractImage.drawQuad

drawLightPrimitive(self, *args)

source code 

drawLightPrimitive(self, Point p, uint8_t intensity, float radius, int subdivisions, 
    float xstretch, float ystretch, uint8_t red, 
    uint8_t green, uint8_t blue)

Overrides: AbstractImage.drawLightPrimitive

pushClipArea(self, *args)

source code 

pushClipArea(self, Rect cliparea, bool clear = True) pushClipArea(self, Rect cliparea)

Overrides: AbstractImage.pushClipArea

popClipArea(self)

source code 
Overrides: AbstractImage.popClipArea

getClipArea(self)

source code 
Returns: Rect
Overrides: AbstractImage.getClipArea

setAlphaOptimizerEnabled(self, *args)

source code 

setAlphaOptimizerEnabled(self, bool enabled)

Overrides: AbstractImage.setAlphaOptimizerEnabled

isAlphaOptimizerEnabled(self)

source code 
Returns: bool
Overrides: AbstractImage.isAlphaOptimizerEnabled

saveImage(self, *args)

source code 

saveImage(self, string filename)

Overrides: AbstractImage.saveImage