ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::RenderTicket Class Reference

A single RenderTicket. More...

#include <render_ticket.h>

Collaboration diagram for Wintermute::RenderTicket:

List of all members.

Public Member Functions

 RenderTicket (BaseSurfaceOSystem *owner, const Graphics::Surface *surf, Common::Rect *srcRect, Common::Rect *dstRest, Graphics::TransformStruct transform)
 RenderTicket ()
 ~RenderTicket ()
const Graphics::SurfacegetSurface () const
void drawToSurface (Graphics::Surface *_targetSurface) const
void drawToSurface (Graphics::Surface *_targetSurface, Common::Rect *dstRect, Common::Rect *clipRect) const
bool operator== (const RenderTicket &a) const
const Common::RectgetSrcRect () const

Public Attributes

Common::Rect _dstRect
bool _isValid
bool _wantsDraw
Graphics::TransformStruct _transform
BaseSurfaceOSystem_owner

Private Attributes

Graphics::Surface_surface
Common::Rect _srcRect

Detailed Description

A single RenderTicket.

A render ticket is a collection of the data and draw specifications made for a single draw-call in the OSystem-backend for WME. The ticket additionally holds the order in which this call was made, so that it can be detected if the same call is done in the following frame. Thus allowing us to potentially skip drawing the same region again, unless anything has changed. Since a surface can have a potentially large amount of draw-calls made to it, at varying rotation, zoom, and crop-levels we also need to hold a copy of the necessary data. (Video-surfaces may even change their data). The promise that is made when a ticket is created is that what the state was of the surface at THAT point, is what will end up on screen at flip() time.

Definition at line 52 of file render_ticket.h.


Constructor & Destructor Documentation

Wintermute::RenderTicket::RenderTicket ( BaseSurfaceOSystem owner,
const Graphics::Surface surf,
Common::Rect srcRect,
Common::Rect dstRest,
Graphics::TransformStruct  transform 
)

Definition at line 38 of file render_ticket.cpp.

Wintermute::RenderTicket::RenderTicket (  )  [inline]

Definition at line 55 of file render_ticket.h.

Wintermute::RenderTicket::~RenderTicket (  ) 

Definition at line 85 of file render_ticket.cpp.


Member Function Documentation

void Wintermute::RenderTicket::drawToSurface ( Graphics::Surface _targetSurface  )  const

Definition at line 104 of file render_ticket.cpp.

void Wintermute::RenderTicket::drawToSurface ( Graphics::Surface _targetSurface,
Common::Rect dstRect,
Common::Rect clipRect 
) const

Definition at line 135 of file render_ticket.cpp.

const Common::Rect* Wintermute::RenderTicket::getSrcRect (  )  const [inline]

Definition at line 72 of file render_ticket.h.

const Graphics::Surface* Wintermute::RenderTicket::getSurface (  )  const [inline]

Definition at line 57 of file render_ticket.h.

bool Wintermute::RenderTicket::operator== ( const RenderTicket a  )  const

Definition at line 92 of file render_ticket.cpp.


Member Data Documentation

Definition at line 65 of file render_ticket.h.

Definition at line 75 of file render_ticket.h.

Definition at line 66 of file render_ticket.h.


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


Generated on Sat Sep 26 2020 05:04:13 for ResidualVM by doxygen 1.7.1
curved edge   curved edge