$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

CVideo Class Reference

#include <video.h>

List of all members.


Public Member Functions

 CVideo ()
Uint32 MapRGB (SDL_PixelFormat *f, Uint8 r, Uint8 g, Uint8 b)
Uint32 MapRGBA (SDL_PixelFormat *f, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
void GetRGB (Uint32 c, SDL_PixelFormat *f, Uint8 *r, Uint8 *g, Uint8 *b)
void GetRGBA (Uint32 c, SDL_PixelFormat *f, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a)
video.cpp - The universal video functions.
void LockScreen ()
void UnlockScreen ()
void ClearScreen ()
bool ResizeScreen (int x, int y)
linedraw.cpp - The general linedraw functions.
void DrawPixelClip (Uint32 color, int x, int y)
void DrawTransPixelClip (Uint32 color, int x, int y, unsigned char alpha)
void DrawVLine (Uint32 color, int x, int y, int height)
void DrawTransVLine (Uint32 color, int x, int y, int height, unsigned char alpha)
void DrawVLineClip (Uint32 color, int x, int y, int height)
void DrawTransVLineClip (Uint32 color, int x, int y, int height, unsigned char alpha)
void DrawHLine (Uint32 color, int x, int y, int width)
void DrawTransHLine (Uint32 color, int x, int y, int width, unsigned char alpha)
void DrawHLineClip (Uint32 color, int x, int y, int width)
void DrawTransHLineClip (Uint32 color, int x, int y, int width, unsigned char alpha)
void DrawLine (Uint32 color, int sx, int sy, int dx, int dy)
void DrawTransLine (Uint32 color, int sx, int sy, int dx, int dy, unsigned char alpha)
void DrawLineClip (Uint32 color, int sx, int sy, int dx, int dy)
void DrawTransLineClip (Uint32 color, int sx, int sy, int dx, int dy, unsigned char alpha)
void DrawRectangle (Uint32 color, int x, int y, int w, int h)
void DrawTransRectangle (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
void DrawRectangleClip (Uint32 color, int x, int y, int w, int h)
void DrawTransRectangleClip (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
void FillRectangle (Uint32 color, int x, int y, int w, int h)
void FillTransRectangle (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
void FillRectangleClip (Uint32 color, int x, int y, int w, int h)
void FillTransRectangleClip (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
void DrawCircle (Uint32 color, int x, int y, int r)
void DrawTransCircle (Uint32 color, int x, int y, int r, unsigned char alpha)
void DrawCircleClip (Uint32 color, int x, int y, int r)
void DrawTransCircleClip (Uint32 color, int x, int y, int r, unsigned char alpha)
void FillCircle (Uint32 color, int x, int y, int radius)
void FillTransCircle (Uint32 color, int x, int y, int radius, unsigned char alpha)
void FillCircleClip (Uint32 color, int x, int y, int radius)
void FillTransCircleClip (Uint32 color, int x, int y, int radius, unsigned char alpha)

Public Attributes

int Width
int Height
int Depth
bool FullScreen

Constructor & Destructor Documentation

CVideo::CVideo (  )  [inline]


Member Function Documentation

void CVideo::LockScreen (  ) 

Lock the screen for write access.

void CVideo::UnlockScreen (  ) 

Unlock the screen for write access.

void CVideo::ClearScreen (  ) 

Clear the video screen.

bool CVideo::ResizeScreen ( int  w,
int  h 
)

Resize the video screen.

Returns:
True if the resolution changed, false otherwise

void CVideo::DrawPixelClip ( Uint32  color,
int  x,
int  y 
)

void CVideo::DrawTransPixelClip ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)

void CVideo::DrawVLine ( Uint32  color,
int  x,
int  y,
int  height 
)

void CVideo::DrawTransVLine ( Uint32  color,
int  x,
int  y,
int  height,
unsigned char  alpha 
)

void CVideo::DrawVLineClip ( Uint32  color,
int  x,
int  y,
int  height 
)

void CVideo::DrawTransVLineClip ( Uint32  color,
int  x,
int  y,
int  height,
unsigned char  alpha 
)

void CVideo::DrawHLine ( Uint32  color,
int  x,
int  y,
int  width 
)

void CVideo::DrawTransHLine ( Uint32  color,
int  x,
int  y,
int  width,
unsigned char  alpha 
)

void CVideo::DrawHLineClip ( Uint32  color,
int  x,
int  y,
int  width 
)

void CVideo::DrawTransHLineClip ( Uint32  color,
int  x,
int  y,
int  width,
unsigned char  alpha 
)

void CVideo::DrawLine ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy 
)

void CVideo::DrawTransLine ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy,
unsigned char  alpha 
)

void CVideo::DrawLineClip ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy 
)

void CVideo::DrawTransLineClip ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy,
unsigned char  alpha 
)

void CVideo::DrawRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

void CVideo::DrawTransRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

void CVideo::DrawRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

void CVideo::DrawTransRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

void CVideo::FillRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

void CVideo::FillTransRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

void CVideo::FillRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

void CVideo::FillTransRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

void CVideo::DrawCircle ( Uint32  color,
int  x,
int  y,
int  r 
)

void CVideo::DrawTransCircle ( Uint32  color,
int  x,
int  y,
int  r,
unsigned char  alpha 
)

void CVideo::DrawCircleClip ( Uint32  color,
int  x,
int  y,
int  r 
)

void CVideo::DrawTransCircleClip ( Uint32  color,
int  x,
int  y,
int  r,
unsigned char  alpha 
)

void CVideo::FillCircle ( Uint32  color,
int  x,
int  y,
int  radius 
)

void CVideo::FillTransCircle ( Uint32  color,
int  x,
int  y,
int  radius,
unsigned char  alpha 
)

void CVideo::FillCircleClip ( Uint32  color,
int  x,
int  y,
int  radius 
)

void CVideo::FillTransCircleClip ( Uint32  color,
int  x,
int  y,
int  radius,
unsigned char  alpha 
)

Uint32 CVideo::MapRGB ( SDL_PixelFormat *  f,
Uint8  r,
Uint8  g,
Uint8  b 
) [inline]

Uint32 CVideo::MapRGBA ( SDL_PixelFormat *  f,
Uint8  r,
Uint8  g,
Uint8  b,
Uint8  a 
) [inline]

void CVideo::GetRGB ( Uint32  c,
SDL_PixelFormat *  f,
Uint8 *  r,
Uint8 *  g,
Uint8 *  b 
) [inline]

void CVideo::GetRGBA ( Uint32  c,
SDL_PixelFormat *  f,
Uint8 *  r,
Uint8 *  g,
Uint8 *  b,
Uint8 *  a 
) [inline]


Member Data Documentation


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.