Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
Public Member Functions | Public Attributes

ScreenRenderer Class Reference

A screen renderer is used to draw the content of an other screen in the current screen. More...

#include <header.hpp>

Inheritance diagram for ScreenRenderer:
Drawable Object

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.


Member Data Documentation

Access drawed screen.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables