Champlain.Renderer¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Champlain.Renderer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.Renderer
structure contains only private data and should be accessed using the provided APINew in version 0.8.
- render(tile)¶
- Parameters:
tile (
Champlain.Tile
) – the tile to render
Renders the texture for the provided tile and calls
Champlain.Tile.set_content
() to set the content of the tile. When the rendering is finished, the renderer emits theChamplain.Tile
::render-complete
signal. The tile has to be displayed manually by callingChamplain.Tile.display_content
().New in version 0.8.
- set_data(data)¶
- Parameters:
data (
bytes
) – data used for tile rendering
Sets the data which is used to render tiles by the renderer.
New in version 0.8.
- do_render(tile) virtual¶
- Parameters:
tile (
Champlain.Tile
) – the tile to render
Renders the texture for the provided tile and calls
Champlain.Tile.set_content
() to set the content of the tile. When the rendering is finished, the renderer emits theChamplain.Tile
::render-complete
signal. The tile has to be displayed manually by callingChamplain.Tile.display_content
().New in version 0.8.