ScummVM API documentation
Hollywood::SceneResources Class Reference

#include <scene_resources.h>

Public Member Functions

bool loadChunkTable (const char *archiveName)
 
bool validateChunk (const char *archiveName, const char *sceneDebugName, uint index) const
 
bool validateChunkRange (const char *archiveName, const char *sceneDebugName, uint firstChunk, uint lastChunk) const
 
bool validateRequiredChunks (const char *archiveName, const char *sceneDebugName, uint requiredChunkCount, uint framebufferChunkIndex=0) const
 
uint32 totalChunkSize (uint firstChunk, uint lastChunk) const
 
void allocateArena (uint32 byteCount)
 
bool loadFixedChunk (const char *sceneDebugName, uint index, Common::Array< byte > &destination, uint fixedSize)
 
bool loadFixedChunk (const char *sceneDebugName, uint index, Graphics::ManagedSurface &destination, uint fixedSize)
 
bool loadFixedChunk (const char *sceneDebugName, uint index, IndexedSurfaceBuffer &destination, uint fixedSize)
 
bool loadVariableChunk (uint index, Common::Array< byte > &destination)
 
bool loadChunkTo (const char *sceneDebugName, uint index, Common::Array< byte > &destination, uint32 destinationOffset)
 
bool loadArenaChunk (const char *sceneDebugName, uint index)
 
bool loadArenaChunk (const char *sceneDebugName, uint archiveIndex, uint localChunkIndex)
 
bool loadArenaChunkAlias (const char *sceneDebugName, uint sourceIndex, uint aliasIndex, uint targetIndex)
 

Public Attributes

ResourceChunkTable _chunkTable
 
uint32 _chunkOffsets [kResourceChunkCount]
 
uint32 _arenaCursor
 
Common::Array< byte > _arena
 
Common::Array< byte > _metadata
 

Detailed Description

Owns an open scene archive and storage for its loaded chunks.

Fixed chunks load into caller-owned buffers. Regular arena chunks append to _arena; _chunkOffsets maps local indexes and aliases into that storage.


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