_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | List of all members
Movie Class Reference

#include <movie.h>

Inheritance diagram for Movie:
gcn::Image

Public Member Functions

 Movie ()
 
bool IsPlaying () const
 
virtual int getWidth () const
 
virtual int getHeight () const
 
virtual bool isDirty () const
 
movie.cpp - Movie playback functions.
 ~Movie ()
 
bool Load (const std::string &filename, int w, int h)
 
virtual void_getData () const
 
- Public Member Functions inherited from gcn::Image
 Image (void *data, int width, int height)
 
 Image (const std::string &filename)
 
virtual ~Image ()
 

Public Attributes

int Width
 
int Height
 
SDL_Surface * surface
 
CFilef
 
bool is_dirty
 
bool need_data
 
Uint32 start_time
 
OggDatadata
 
SDL_Rect * rect
 
SDL_Texture * yuv_overlay
 

Additional Inherited Members

- Static Public Member Functions inherited from gcn::Image
static ImageLoader_getImageLoader ()
 
static void setImageLoader (ImageLoader *imageLoader)
 
- Protected Member Functions inherited from gcn::Image
 Image ()
 
- Protected Attributes inherited from gcn::Image
voidmData
 
int mWidth
 
int mHeight
 
bool mLoadedWithImageLoader
 
- Static Protected Attributes inherited from gcn::Image
static ImageLoadermImageLoader = NULL
 

Constructor & Destructor Documentation

◆ Movie()

Movie::Movie ( )
inline

◆ ~Movie()

Movie::~Movie ( )

Member Function Documentation

◆ _getData()

void * Movie::_getData ( ) const
virtual

Gets the data of the Image. Image data can be different things depending on what ImageLoader you use. If you for instance use the SDLImageLoader then an SDL_Surface will be returned.

Returns
a void pointer to the Image data.
See also
SDLImageLoader, AllegroImageLoader

Reimplemented from gcn::Image.

◆ getHeight()

virtual int Movie::getHeight ( ) const
inlinevirtual

Gets the height of the Image.

Returns
the image height

Reimplemented from gcn::Image.

◆ getWidth()

virtual int Movie::getWidth ( ) const
inlinevirtual

Gets the width of the Image.

Returns
the image width

Reimplemented from gcn::Image.

◆ isDirty()

virtual bool Movie::isDirty ( ) const
inlinevirtual

Reimplemented from gcn::Image.

◆ IsPlaying()

bool Movie::IsPlaying ( ) const
inline

◆ Load()

bool Movie::Load ( const std::string &  filename,
int  w,
int  h 
)

Member Data Documentation

◆ data

OggData* Movie::data
mutable

◆ f

CFile* Movie::f

◆ Height

int Movie::Height

◆ is_dirty

bool Movie::is_dirty
mutable

◆ need_data

bool Movie::need_data
mutable

◆ rect

SDL_Rect* Movie::rect
mutable

◆ start_time

Uint32 Movie::start_time
mutable

◆ surface

SDL_Surface* Movie::surface

◆ Width

int Movie::Width

◆ yuv_overlay

SDL_Texture* Movie::yuv_overlay
mutable

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.