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. More...
 
void SdlClose (uint32 x)
 Close the SDL library. More...
 

Variables

static int _sdl_usage
 Number of users of the SDL library. More...
 

Detailed Description

Implementation of SDL support.

Definition in file sdl.cpp.

Function Documentation

◆ SdlClose()

void SdlClose ( uint32  x)

Close the SDL library.

Parameters
xThe subsystem to close.

Definition at line 109 of file sdl.cpp.

Referenced by VideoDriver_SDL::Stop().

◆ SdlOpen()

const char* SdlOpen ( uint32  x)

Open the SDL library.

Parameters
xThe subsystem to load.

Definition at line 88 of file sdl.cpp.

Referenced by SoundDriver_SDL::Start().

Variable Documentation

◆ _sdl_usage

int _sdl_usage
static

Number of users of the SDL library.

Definition at line 20 of file sdl.cpp.