sdl.cpp File Reference

Implementation of SDL support. More...

#include "stdafx.h"
#include "sdl.h"
#include <SDL.h>

Go to the source code of this file.

Functions

const char * SdlOpen (uint32 x)
 Open the SDL library.
void SdlClose (uint32 x)
 Close the SDL library.

Variables

static int _sdl_usage
 Number of users of the SDL library.

Detailed Description

Implementation of SDL support.

Definition in file sdl.cpp.


Function Documentation

void SdlClose ( uint32  x  ) 

Close the SDL library.

Parameters:
x The subsystem to close.

Definition at line 107 of file sdl.cpp.

References _sdl_usage.

Referenced by VideoDriver_SDL::Stop(), and SoundDriver_SDL::Stop().

const char* SdlOpen ( uint32  x  ) 

Open the SDL library.

Parameters:
x The subsystem to load.

Definition at line 86 of file sdl.cpp.

References _sdl_usage.

Referenced by VideoDriver_SDL::Start(), and SoundDriver_SDL::Start().


Variable Documentation

int _sdl_usage [static]

Number of users of the SDL library.

Definition at line 20 of file sdl.cpp.

Referenced by SdlClose(), and SdlOpen().


Generated on Fri May 27 04:20:02 2011 for OpenTTD by  doxygen 1.6.1