ScummVM API documentation
Hollywood::SceneSurfaceState Class Reference

#include <scene_surface_state.h>

Public Member Functions

void initialize (uint paletteSize, uint paletteMaskOriginalSize, uint paletteMaskUsedBytes, uint paletteMapPageSize, uint paletteRegionCount, uint actorPaletteBaseSize)
 
void initializeFramebuffers ()
 
uint framebufferByteCount () const
 
byte * framebufferPixels (Graphics::ManagedSurface &surface)
 
const byte * framebufferPixels (const Graphics::ManagedSurface &surface) const
 
void copyBaseFramebufferToSceneFramebuffer ()
 
void restoreBaseFramebufferFromOriginal ()
 
bool isFramebufferOffsetValid (uint offset) const
 
byte savedFramebufferPixelAt (uint offset) const
 
void setPaletteEntry6Bit (byte colorIndex, byte red, byte green, byte blue)
 
byte paletteEntryComponent6Bit (byte colorIndex, uint component) const
 
void rebuildPresentationPaletteRemapTable ()
 
bool updatePresentedScreenCache ()
 

Public Attributes

Common::Array< byte > _paletteResource
 
Common::Array< byte > _paletteCurrent
 
Common::Array< byte > _actorPaletteBase
 
Graphics::ManagedSurface _baseFramebufferOriginal
 
Graphics::ManagedSurface _baseFramebuffer
 
Graphics::ManagedSurface _sceneFramebuffer
 
Graphics::ManagedSurface _savedFramebuffer
 
Common::Array< byte > _fillRuns
 
Common::Array< byte > _paletteMaskOriginal
 
Common::Array< byte > _paletteMask
 
Common::Array< byte > _fullPaletteRegionMask
 
Common::Array< byte > _walkablePaletteMask
 
Common::Array< byte > _colorToActorDepthClassMap
 
Common::Array< byte > _presentationPaletteRemapTable
 
Common::Array< uint16 > _actorDepthYThresholds
 
Common::Array< uint16 > _drawActorDepthYThresholds
 
Graphics::ManagedSurface _screen
 
Graphics::ManagedSurface _presentedScreen
 
Palette6Bit _displayPalette
 
bool _hasPresentedScreen
 

Detailed Description

Owns the palettes, masks, and indexed surfaces used by a playable scene.

_paletteResource is the room palette, _paletteCurrent is the mutable display palette, and _actorPaletteBase holds the actor colors before scene lighting.

_baseFramebufferOriginal is the restoration copy of the selected room image; _baseFramebuffer carries persistent scene patches and supplies clean visual regions; _sceneFramebuffer is the per-frame composite. _savedFramebuffer is a separate resource-derived image used for region, hotspot, and depth lookup, not a save-game snapshot. _screen is the cropped presentation surface; _presentedScreen caches its last backend submission.


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