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

src/video/movie.cpp File Reference

#include "stratagus.h"
#include "movie.h"
#include "iocompat.h"
#include "iolib.h"
#include "network.h"
#include "sound.h"
#include "sound_server.h"
#include "video.h"
#include "SDL.h"

movie.cpp - Movie playback functions.

SDL_Surface * TheScreen
 The SDL screen.
static bool MovieStop
static void MovieCallbackButtonPressed (unsigned)
static void MovieCallbackButtonReleased (unsigned)
static void MovieCallbackKeyPressed (unsigned, unsigned)
static void MovieCallbackKeyReleased (unsigned, unsigned)
static void MovieCallbackKeyRepeated (unsigned, unsigned)
static void MovieCallbackMouseMove (const PixelPos &)
static void MovieCallbackMouseExit ()
static int OutputTheora (OggData *data, SDL_Overlay *yuv_overlay, SDL_Rect *rect)
static int TheoraProcessData (OggData *data)
int PlayMovie (const std::string &name)
 Play a movie file.

Function Documentation

static void MovieCallbackButtonPressed ( unsigned   )  [static]

Callbacks for movie input.

static void MovieCallbackButtonReleased ( unsigned   )  [static]

static void MovieCallbackKeyPressed ( unsigned  ,
unsigned   
) [static]

static void MovieCallbackKeyReleased ( unsigned  ,
unsigned   
) [static]

static void MovieCallbackKeyRepeated ( unsigned  ,
unsigned   
) [static]

static void MovieCallbackMouseExit (  )  [static]

static void MovieCallbackMouseMove ( const PixelPos  )  [static]

static int OutputTheora ( OggData data,
SDL_Overlay *  yuv_overlay,
SDL_Rect *  rect 
) [static]

Draw Ogg data to the overlay

int PlayMovie ( const std::string &  name  ) 

Play a movie file.

Play a video file.

Parameters:
name Filename of movie file.
Returns:
Non-zero if file isn't a supported movie.

static int TheoraProcessData ( OggData data  )  [static]

Process Ogg data


Variable Documentation

bool MovieStop [static]

SDL_Surface* TheScreen

The SDL screen.

(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.