22#ifndef MADS_NEBULAR_MAC_RESOURCES_H
23#define MADS_NEBULAR_MAC_RESOURCES_H
25#include "common/scummsys.h"
26#include "common/str.h"
27#include "graphics/managed_surface.h"
28#include "mads/core/env.h"
32class SeekableReadStream;
47 kApplicationContainer,
51 kSection9Container = kSection1Container + 8
59 ResourceID(Container container_ = kInvalidContainer, uint32 type_ = 0, uint16 id_ = 0) :
60 container(container_), type(type_), id(id_) {}
62 bool isValid()
const {
return container != kInvalidContainer; }
73 bool exists(
const char *filename)
override;
74 bool allowsFallback(
const char *filename)
const override;
77 int getCursorCount()
const override {
return 6; }
78 bool setCursor(
int id)
override;
79 void updateCursor()
override;
81 return _nativeInterface.
empty() ? nullptr : &_nativeInterface.
rawSurface();
84 return _logicalInterface.
empty() ? nullptr : &_logicalInterface.
rawSurface();
90 const byte *getNativeInterfacePalette()
const {
return _nativeInterfacePalette; }
99 byte _nativeInterfacePalette[10 * 3] = {};
101 int _waitCursorFrame = 0;
102 uint32 _nextCursorTime = 0;
107 bool installCursorResource(uint16
id);
Definition: macresman.h:126
Definition: macfontmanager.h:152
Definition: managed_surface.h:51
const Surface & rawSurface() const
Definition: managed_surface.h:195
bool empty() const
Definition: managed_surface.h:214
Definition: mac_resources.h:43
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: mac_resources.h:54