ScummVM API documentation
Hollywood::Palette6Bit Class Reference

#include <graphics.h>

Public Member Functions

void setFrom6Bit (const Common::Array< byte > &palette)
 
void markAllDirty ()
 
bool upload ()
 
bool uploadFrom6Bit (const Common::Array< byte > &palette)
 
const Graphics::Palette & palette () const
 

Detailed Description

Converts the game's 256-entry RGB palette to backend 8-bit components.

setFrom6Bit() scales each component by four and extends one dirty range. upload() sends only that range and reports whether it changed the backend; markAllDirty() forces a complete upload.


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