Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A screen renderer is used to draw the content of an other screen in the current screen. More...
#include <header.hpp>
Public Member Functions | |
ScreenRenderer | Clone () |
Create a clone of the object and return an handler to the clone. | |
ScreenRenderer | CloneToGroup (Group newParent) |
Create a clone of the object, change the parent and return an handler to the clone. | |
nil | SetTargetScreen (Screen targetScreen) |
Set the target screen. | |
Screen | GetTargetScreen () |
Get the target screen. | |
Public Attributes | |
Screen | targetScreen |
Access drawed screen. |
A screen renderer is used to draw the content of an other screen in the current screen.
It can be usefull if you want to draw the content of your game in the menu background, for example. This object is created using Group::CreateScreenRendere.
ScreenRenderer ScreenRenderer::Clone | ( | ) |
Create a clone of the object and return an handler to the clone.
Reimplemented from Object.
ScreenRenderer ScreenRenderer::CloneToGroup | ( | Group | newParent | ) |
Create a clone of the object, change the parent and return an handler to the clone.
Reimplemented from Object.
Screen ScreenRenderer::GetTargetScreen | ( | ) |
Get the target screen.
nil ScreenRenderer::SetTargetScreen | ( | Screen | targetScreen | ) |
Set the target screen.
Access drawed screen.