ScummVM API documentation
Wintermute::RenderTicket Class Reference

#include <render_ticket.h>

Public Member Functions

 RenderTicket (BaseSurfaceOSystem *owner, const Graphics::Surface *surf, Common::Rect *srcRect, Common::Rect *dstRest, Graphics::TransformStruct transform)
 
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
 

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.


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