Nokia N97 SDK
Example Applications Guide

CMaskTransition Class Reference

#include <Slideshowrenderers.h>

Inheritance diagram for CMaskTransition:

MTransitionRenderer List of all members.

Detailed Description

A mask transition effect.

This transition effect uses a mask texture to fade in a picture. It uses OpenGL ES texture environment combiners to modulate the picture with the mask.

Definition at line 65 of file Slideshowrenderers.h.


Public Types

enum   TSweepStyle { ESweepHorizontal, ESweepVertical, ESweepCurved, ESweepCurved2 }

Public Member Functions

  CMaskTransition (const TTexture &mask, TSweepStyle sweepStyle)
virtual void  Render (const TTexture &texture, GLfloat ratio)

Private Attributes

TSweepStyle  iSweepStyle
const TTexture &  iMask


Member Enumeration Documentation

enum CMaskTransition::TSweepStyle
 

Different mask sweeping styles supported by the effect.

Definition at line 71 of file Slideshowrenderers.h.

00072             {
00073             ESweepHorizontal,
00074             ESweepVertical,
00075             ESweepCurved,
00076             ESweepCurved2,
00077             };


Constructor & Destructor Documentation

CMaskTransition::CMaskTransition (  const TTexture &  mask,
TSweepStyle  sweepStyle
) 
 

Constructor.

Parameters:
mask  Mask texture. The texture should be in RGBA format, opaque white at the top and fully transparent at the bottom.
sweepStyle  Sweep style to use for moving the mask.

Definition at line 70 of file Slideshowrenderers.cpp.

00070                                                                             :
00071     iSweepStyle(sweepStyle), iMask(mask)
00072     {
00073     }


Member Function Documentation

virtual void CMaskTransition::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

TSweepStyle CMaskTransition::iSweepStyle [private]
 

Selected sweep style for this instance

Definition at line 90 of file Slideshowrenderers.h.

const TTexture& CMaskTransition::iMask [private]
 

Mask texture

Definition at line 92 of file Slideshowrenderers.h.


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

© Nokia 2009

Back to top