Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
XSurface Class Referenceabstract

#include <xsurface.h>

Inherits Surface.

Inherited by BSurface, and DSurface.

Public Member Functions

 XSurface (int width=0, int height=0)
 
virtual ~XSurface (void)
 
virtual bool Blit_From (Rect const &dcliprect, Rect const &destrect, Surface const &source, Rect const &scliprect, Rect const &sourcerect, bool trans=false)
 
virtual bool Blit_From (Rect const &destrect, Surface const &source, Rect const &sourcerect, bool trans=false)
 
virtual bool Blit_From (Surface const &source, bool trans=false)
 
virtual bool Fill_Rect (Rect const &rect, int color)
 
virtual bool Fill_Rect (Rect const &cliprect, Rect const &fillrect, int color)
 
virtual bool Fill (int color)
 
virtual bool Put_Pixel (Point2D const &point, int color)
 
virtual int Get_Pixel (Point2D const &point) const
 
virtual bool Draw_Line (Point2D const &startpoint, Point2D const &endpoint, int color)
 
virtual bool Draw_Line (Rect const &cliprect, Point2D const &startpoint, Point2D const &endpoint, int color)
 
virtual bool Draw_Rect (Rect const &rect, int color)
 
virtual bool Draw_Rect (Rect const &cliprect, Rect const &rect, int color)
 
virtual void * Lock (Point2D=Point2D(0, 0)) const
 
virtual bool Unlock (void) const
 
virtual bool Is_Locked (void) const
 
virtual int Bytes_Per_Pixel (void) const =0
 
virtual int Stride (void) const =0
 
virtual bool Is_Direct_Draw (void) const
 
- Public Member Functions inherited from Surface
 Surface (int width, int height)
 
virtual ~Surface (void)
 
virtual Rect Get_Rect (void) const
 
virtual int Get_Width (void) const
 
virtual int Get_Height (void) const
 

Static Public Member Functions

static bool Prep_For_Blit (Surface &dest, Rect &drect, Surface const &source, Rect &srect, bool &overlapped, void *&dbuffer, void *&sbuffer)
 
static bool Prep_For_Blit (Surface &dest, Rect const &dcliprect, Rect &drect, Surface const &source, Rect const &scliprect, Rect &srect, bool &overlapped, void *&dbuffer, void *&sbuffer)
 
static bool Blit_Trans (Surface &dest, Rect const &destrect, Surface const &source, Rect const &sourcerect)
 
static bool Blit_Plain (Surface &dest, Rect const &destrect, Surface const &source, Rect const &sourcerect)
 

Protected Attributes

int LockCount
 
- Protected Attributes inherited from Surface
int Width
 
int Height
 

Detailed Description

Definition at line 51 of file xsurface.h.

Constructor & Destructor Documentation

◆ XSurface()

XSurface::XSurface ( int width = 0,
int height = 0 )
inline

Definition at line 54 of file xsurface.h.

◆ ~XSurface()

virtual XSurface::~XSurface ( void )
inlinevirtual

Definition at line 55 of file xsurface.h.

Member Function Documentation

◆ Blit_From() [1/3]

bool XSurface::Blit_From ( Rect const & dcliprect,
Rect const & destrect,
Surface const & source,
Rect const & scliprect,
Rect const & sourcerect,
bool trans = false )
virtual

Implements Surface.

Reimplemented in DSurface.

Definition at line 525 of file xsurface.cpp.

◆ Blit_From() [2/3]

bool XSurface::Blit_From ( Rect const & destrect,
Surface const & source,
Rect const & sourcerect,
bool trans = false )
virtual

Implements Surface.

Reimplemented in DSurface.

Definition at line 492 of file xsurface.cpp.

◆ Blit_From() [3/3]

bool XSurface::Blit_From ( Surface const & source,
bool trans = false )
virtual

Implements Surface.

Reimplemented in DSurface.

Definition at line 456 of file xsurface.cpp.

◆ Blit_Plain()

bool XSurface::Blit_Plain ( Surface & dest,
Rect const & destrect,
Surface const & source,
Rect const & sourcerect )
static

Definition at line 857 of file xsurface.cpp.

◆ Blit_Trans()

bool XSurface::Blit_Trans ( Surface & dest,
Rect const & destrect,
Surface const & source,
Rect const & sourcerect )
static

Definition at line 887 of file xsurface.cpp.

◆ Bytes_Per_Pixel()

virtual int XSurface::Bytes_Per_Pixel ( void ) const
pure virtual

Implements Surface.

Implemented in BSurface, and DSurface.

◆ Draw_Line() [1/2]

bool XSurface::Draw_Line ( Point2D const & startpoint,
Point2D const & endpoint,
int color )
virtual

Implements Surface.

Definition at line 84 of file xsurface.cpp.

◆ Draw_Line() [2/2]

bool XSurface::Draw_Line ( Rect const & cliprect,
Point2D const & startpoint,
Point2D const & endpoint,
int color )
virtual

Implements Surface.

Definition at line 114 of file xsurface.cpp.

◆ Draw_Rect() [1/2]

bool XSurface::Draw_Rect ( Rect const & cliprect,
Rect const & rect,
int color )
virtual

Implements Surface.

Definition at line 259 of file xsurface.cpp.

◆ Draw_Rect() [2/2]

bool XSurface::Draw_Rect ( Rect const & rect,
int color )
virtual

Implements Surface.

Definition at line 233 of file xsurface.cpp.

◆ Fill()

bool XSurface::Fill ( int color)
virtual

Implements Surface.

Definition at line 434 of file xsurface.cpp.

◆ Fill_Rect() [1/2]

bool XSurface::Fill_Rect ( Rect const & cliprect,
Rect const & fillrect,
int color )
virtual

Implements Surface.

Reimplemented in DSurface.

Definition at line 382 of file xsurface.cpp.

◆ Fill_Rect() [2/2]

bool XSurface::Fill_Rect ( Rect const & rect,
int color )
virtual

Implements Surface.

Reimplemented in DSurface.

Definition at line 355 of file xsurface.cpp.

◆ Get_Pixel()

int XSurface::Get_Pixel ( Point2D const & point) const
virtual

Implements Surface.

Definition at line 289 of file xsurface.cpp.

◆ Is_Direct_Draw()

virtual bool XSurface::Is_Direct_Draw ( void ) const
inlinevirtual

Reimplemented from Surface.

Reimplemented in DSurface.

Definition at line 107 of file xsurface.h.

◆ Is_Locked()

virtual bool XSurface::Is_Locked ( void ) const
inlinevirtual

Implements Surface.

Definition at line 94 of file xsurface.h.

◆ Lock()

virtual void * XSurface::Lock ( Point2D = Point2D(0, 0)) const
inlinevirtual

Implements Surface.

Reimplemented in BSurface, and DSurface.

Definition at line 92 of file xsurface.h.

◆ Prep_For_Blit() [1/2]

bool XSurface::Prep_For_Blit ( Surface & dest,
Rect & drect,
Surface const & source,
Rect & srect,
bool & overlapped,
void *& dbuffer,
void *& sbuffer )
static

Definition at line 699 of file xsurface.cpp.

◆ Prep_For_Blit() [2/2]

bool XSurface::Prep_For_Blit ( Surface & dest,
Rect const & dcliprect,
Rect & drect,
Surface const & source,
Rect const & scliprect,
Rect & srect,
bool & overlapped,
void *& dbuffer,
void *& sbuffer )
static

Definition at line 791 of file xsurface.cpp.

◆ Put_Pixel()

bool XSurface::Put_Pixel ( Point2D const & point,
int color )
virtual

Implements Surface.

Definition at line 322 of file xsurface.cpp.

◆ Stride()

virtual int XSurface::Stride ( void ) const
pure virtual

Implements Surface.

Implemented in BSurface, and DSurface.

◆ Unlock()

virtual bool XSurface::Unlock ( void ) const
inlinevirtual

Implements Surface.

Reimplemented in DSurface.

Definition at line 93 of file xsurface.h.

Member Data Documentation

◆ LockCount

int XSurface::LockCount
mutableprotected

Definition at line 126 of file xsurface.h.


The documentation for this class was generated from the following files: