OpenTTD
Functions | Variables
sdl.cpp File Reference

Implementation of SDL support. More...

#include "stdafx.h"
#include "sdl.h"
#include <SDL.h>
#include "safeguards.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
xThe subsystem to close.

Definition at line 109 of file sdl.cpp.

References _sdl_usage.

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

const char* SdlOpen ( uint32  x)

Open the SDL library.

Parameters
xThe subsystem to load.

Definition at line 88 of file sdl.cpp.

References _sdl_usage.

Referenced by SoundDriver_SDL::Start(), and VideoDriver_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().