Resolution independent 2D graphics engine
qr::quad

Class Description

Quadrangle primitive, mainly used for displaying sprites. Inherits qr::scene_node.

Public Methods

quad (scene_manager *scene_man)
quad (scene_node *parent)

Protected Methods

void on_register ()
void on_render ()
void on_drop ()

Details

qr::quad::quad ( scene_manager * scene_man
)

Description

Creates a quad and registers it with the scene manager. By default quads are 2 X 2 units in size, are located at 0-0 and are on layer 1.

Paramiters

scene_man Scene manager.
qr::quad::quad ( scene_node * parent
)

Description

Creates a quad and attaches it to another scene node.

Paramiters

parent Parent scene node.
void qr::quad::on_register ( ) [protected, virtual]

Description

Sets up the quad.

void qr::quad::on_render ( ) [protected, inline, virtual]

Description

Necessary so that the node will register, but doesn't actually do anything.

void qr::quad::on_drop ( ) [protected, inline, virtual]

Description

Necessary so that the node will register, but doesn't actually do anything.