Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

fx.cpp File Reference

#include <SDL.h>
#include <fx.h>
#include <math.h>
#include <Resource.h>
#include <SDL_gfxPrimitives.h>

Include dependency graph for fx.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void fade_out (SDL_Surface *surf, double inc)
void fade_in (SDL_Surface *surf, double inc)
void drawGrid ()
void cb_playsound (void *udata, Uint8 *stream, int len)
void playSound (const char *wav)
bool playFinished ()

Variables

SDL_Surface * Screen
Uint8 * audio_chunk
Uint32 audio_len
Uint8 * audio_pos


Function Documentation

void cb_playsound void *    udata,
Uint8 *    stream,
int    len
 

Definition at line 102 of file fx.cpp.

References audio_len, and audio_pos.

Referenced by playSound().

void drawGrid  
 

Definition at line 56 of file fx.cpp.

References Screen.

Referenced by main().

void fade_in SDL_Surface *    surf,
double    inc
 

Definition at line 34 of file fx.cpp.

References Screen.

Referenced by main().

void fade_out SDL_Surface *    surf,
double    inc
 

Definition at line 11 of file fx.cpp.

References Screen.

Referenced by main().

bool playFinished  
 

Definition at line 95 of file fx.cpp.

References audio_len.

Referenced by main().

void playSound const char *    wav
 

Definition at line 75 of file fx.cpp.

References audio_chunk, audio_len, audio_pos, and cb_playsound().

Referenced by main().


Variable Documentation

Uint8* audio_chunk
 

Definition at line 71 of file fx.cpp.

Referenced by playSound().

Uint32 audio_len
 

Definition at line 72 of file fx.cpp.

Referenced by cb_playsound(), playFinished(), and playSound().

Uint8* audio_pos
 

Definition at line 73 of file fx.cpp.

Referenced by cb_playsound(), and playSound().

SDL_Surface* Screen
 

Definition at line 9 of file fx.cpp.

Referenced by drawGrid(), fade_in(), and fade_out().

Powered by:

SourceForge Logo