Odamex
Setting the Standard in Multiplayer Doom
SDLVideo Class Reference

#include <i_sdlvideo.h>

Inheritance diagram for SDLVideo:
IVideo

Data Structures

class  cChain
struct  vidMode_t

Public Member Functions

 SDLVideo (int parm)
virtual ~SDLVideo (void)
virtual std::string GetVideoDriverName ()
virtual bool CanBlit (void)
virtual EDisplayType GetDisplayType (void)
virtual bool FullscreenChanged (bool fs)
virtual void SetWindowedScale (float scale)
virtual bool SetOverscan (float scale)
virtual bool SetMode (int width, int height, int bits, bool fs)
virtual void SetPalette (DWORD *palette)
virtual void SetOldPalette (byte *doompalette)
virtual void UpdateScreen (DCanvas *canvas)
virtual void ReadScreen (byte *block)
virtual int GetModeCount (void)
virtual void StartModeIterator (int bits)
virtual bool NextMode (int *width, int *height)
virtual DCanvasAllocateSurface (int width, int height, int bits, bool primary=false)
virtual void ReleaseSurface (DCanvas *scrn)
virtual void LockSurface (DCanvas *scrn)
virtual void UnlockSurface (DCanvas *scrn)
virtual bool Blit (DCanvas *src, int sx, int sy, int sw, int sh, DCanvas *dst, int dx, int dy, int dw, int dh)

Static Protected Member Functions

static bool bp_vm_uni_cmp (vidMode_t first, vidMode_t second)

Protected Attributes

std::vector< vidMode_tvidModeList
size_t vidModeIterator
int vidModeIteratorBits
SDL_Surface * sdlScreen
bool infullscreen
int screenw
int screenh
int screenbits
SDL_Color newPalette [256]
SDL_Color palette [256]
bool palettechanged
cChainchainHead

Constructor & Destructor Documentation

SDLVideo::SDLVideo ( int  parm)
SDLVideo::~SDLVideo ( void  ) [virtual]

Member Function Documentation

DCanvas * SDLVideo::AllocateSurface ( int  width,
int  height,
int  bits,
bool  primary = false 
) [virtual]

Reimplemented from IVideo.

bool SDLVideo::Blit ( DCanvas src,
int  sx,
int  sy,
int  sw,
int  sh,
DCanvas dst,
int  dx,
int  dy,
int  dw,
int  dh 
) [virtual]

Reimplemented from IVideo.

static bool SDLVideo::bp_vm_uni_cmp ( vidMode_t  first,
vidMode_t  second 
) [inline, static, protected]
virtual bool SDLVideo::CanBlit ( void  ) [inline, virtual]

Reimplemented from IVideo.

bool SDLVideo::FullscreenChanged ( bool  fs) [virtual]

Reimplemented from IVideo.

virtual EDisplayType SDLVideo::GetDisplayType ( void  ) [inline, virtual]

Reimplemented from IVideo.

int SDLVideo::GetModeCount ( void  ) [virtual]

Reimplemented from IVideo.

std::string SDLVideo::GetVideoDriverName ( ) [virtual]

Reimplemented from IVideo.

void SDLVideo::LockSurface ( DCanvas scrn) [virtual]

Reimplemented from IVideo.

bool SDLVideo::NextMode ( int *  width,
int *  height 
) [virtual]

Reimplemented from IVideo.

void SDLVideo::ReadScreen ( byte block) [virtual]

Reimplemented from IVideo.

void SDLVideo::ReleaseSurface ( DCanvas scrn) [virtual]

Reimplemented from IVideo.

bool SDLVideo::SetMode ( int  width,
int  height,
int  bits,
bool  fs 
) [virtual]

Reimplemented from IVideo.

void SDLVideo::SetOldPalette ( byte doompalette) [virtual]

Reimplemented from IVideo.

bool SDLVideo::SetOverscan ( float  scale) [virtual]

Reimplemented from IVideo.

void SDLVideo::SetPalette ( DWORD palette) [virtual]

Reimplemented from IVideo.

void SDLVideo::SetWindowedScale ( float  scale) [virtual]

HAHA FIXME

Reimplemented from IVideo.

void SDLVideo::StartModeIterator ( int  bits) [virtual]

Reimplemented from IVideo.

void SDLVideo::UnlockSurface ( DCanvas scrn) [virtual]

Reimplemented from IVideo.

void SDLVideo::UpdateScreen ( DCanvas canvas) [virtual]

Reimplemented from IVideo.


Field Documentation

bool SDLVideo::infullscreen [protected]
SDL_Color SDLVideo::newPalette[256] [protected]
SDL_Color SDLVideo::palette[256] [protected]
bool SDLVideo::palettechanged [protected]
int SDLVideo::screenbits [protected]
int SDLVideo::screenh [protected]
int SDLVideo::screenw [protected]
SDL_Surface* SDLVideo::sdlScreen [protected]
size_t SDLVideo::vidModeIterator [protected]
std::vector<vidMode_t> SDLVideo::vidModeList [protected]

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends