Nokia N97 SDK
Example Applications Guide

CCurtainTransition Class Reference

#include <Slideshowrenderers.h>

Inheritance diagram for CCurtainTransition:

MTransitionRenderer List of all members.

Detailed Description

A curtain transition.

This transition brings in a new picture as if it was drawn on a hanging curtain.

Definition at line 131 of file Slideshowrenderers.h.


Public Types

enum   TDirection { ELeft, ERight }

Public Member Functions

  CCurtainTransition (TDirection dir)
virtual void  Render (const TTexture &texture, GLfloat ratio)

Private Attributes

TDirection  iDir


Member Enumeration Documentation

enum CCurtainTransition::TDirection
 

The side of the screen the curtain enters from.

Definition at line 137 of file Slideshowrenderers.h.

00138             {
00139             ELeft,
00140             ERight
00141             };


Constructor & Destructor Documentation

CCurtainTransition::CCurtainTransition (  TDirection  dir  ) 
 

Constructor.

Parameters:
dir  Chooses whether the curtain enters from the left or right side of the screen.

Definition at line 284 of file Slideshowrenderers.cpp.

00284                                                     :
00285     iDir(dir)
00286     {
00287     }


Member Function Documentation

virtual void CCurtainTransition::Render (  const TTexture &  texture,
GLfloat  ratio
)  [virtual]
 

Draw a gradually appearing picture. The previous picture is assumed to already be on the screen.

See also:
CStaticRenderer.
Parameters:
texture  The picture that should appear.
ratio  Picture visibility in the range 0..1. A ratio of 0 means that the picture is not visible at all, while 1 means the new picture fully covers the screen just as if it was drawn with CStaticRenderer.

Implements MTransitionRenderer.


Member Data Documentation

TDirection CCurtainTransition::iDir [private]
 

Curtain entry direction

Definition at line 152 of file Slideshowrenderers.h.


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top