mirror of
https://github.com/jorio/Pomme.git
synced 2024-11-23 06:32:14 +00:00
Palette management stubs
This commit is contained in:
parent
2a4ec3b76c
commit
3228cf2818
@ -25,6 +25,7 @@ set(POMME_SOURCES
|
||||
${POMME_SRCDIR}/Files/Volume.h
|
||||
${POMME_SRCDIR}/Graphics/ARGBPixmap.cpp
|
||||
${POMME_SRCDIR}/Graphics/Color.cpp
|
||||
${POMME_SRCDIR}/Graphics/ColorManager.cpp
|
||||
${POMME_SRCDIR}/Graphics/Graphics.cpp
|
||||
${POMME_SRCDIR}/Graphics/PICT.cpp
|
||||
${POMME_SRCDIR}/Graphics/SysFont.h
|
||||
|
42
src/Graphics/ColorManager.cpp
Normal file
42
src/Graphics/ColorManager.cpp
Normal file
@ -0,0 +1,42 @@
|
||||
#include "Pomme.h"
|
||||
|
||||
void ProtectEntry(short index, Boolean protect)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
||||
|
||||
void ReserveEntry(short index, Boolean reserve)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
||||
|
||||
void SetEntries(short start, short count, CSpecArray aTable)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
||||
|
||||
void GetEntryColor(PaletteHandle srcPalette, short srcEntry, RGBColor* dstRGB)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
||||
|
||||
void SetEntryColor(PaletteHandle dstPalette, short dstEntry, const RGBColor* srcRGB)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
||||
|
||||
PaletteHandle NewPalette(short entries, CTabHandle srcColors, short srcUsage, short srcTolerance)
|
||||
{
|
||||
TODOMINOR();
|
||||
return nil;
|
||||
}
|
||||
|
||||
void CopyPalette(PaletteHandle srcPalette, PaletteHandle dstPalette, short srcEntry,short dstEntry, short dstLength)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
||||
|
||||
void RestoreDeviceClut(GDHandle gdh)
|
||||
{
|
||||
TODOMINOR();
|
||||
}
|
@ -121,6 +121,15 @@ static UInt32 GetEightColorPaletteValue(long color)
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------- -
|
||||
// Errors
|
||||
|
||||
OSErr QDError(void)
|
||||
{
|
||||
TODOMINOR();
|
||||
return noErr;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------- -
|
||||
// PICT resources
|
||||
|
||||
|
24
src/Pomme.h
24
src/Pomme.h
@ -106,6 +106,11 @@ long SizeResource(Handle);
|
||||
// Pass in NULL to stop dumping resources.
|
||||
void Pomme_StartDumpingResources(const char* hostDestinationPath);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// QuickDraw 2D: Errors
|
||||
|
||||
OSErr QDError(void);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// QuickDraw 2D: Shapes
|
||||
|
||||
@ -248,6 +253,25 @@ void DamagePortRegion(const Rect*);
|
||||
// Pomme extension (not part of the original Toolbox API).
|
||||
void DumpPortTGA(const char* path);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// QuickDraw 2D: Color Manager
|
||||
|
||||
void ProtectEntry(short index, Boolean protect);
|
||||
|
||||
void ReserveEntry(short index, Boolean reserve);
|
||||
|
||||
void SetEntries(short start, short count, CSpecArray aTable);
|
||||
|
||||
void GetEntryColor(PaletteHandle srcPalette, short srcEntry, RGBColor* dstRGB);
|
||||
|
||||
void SetEntryColor(PaletteHandle dstPalette, short dstEntry, const RGBColor* srcRGB);
|
||||
|
||||
PaletteHandle NewPalette(short entries, CTabHandle srcColors, short srcUsage, short srcTolerance);
|
||||
|
||||
void CopyPalette(PaletteHandle srcPalette, PaletteHandle dstPalette, short srcEntry,short dstEntry, short dstLength);
|
||||
|
||||
void RestoreDeviceClut(GDHandle gdh);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Misc
|
||||
|
||||
|
@ -159,12 +159,16 @@ typedef GrafPort CGrafPort;
|
||||
typedef GrafPtr CGrafPtr;
|
||||
typedef CGrafPtr GWorldPtr;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// QuickDraw 2D: Color Manager
|
||||
|
||||
typedef struct ColorSpec
|
||||
{
|
||||
short value;
|
||||
RGBColor rgb;
|
||||
} ColorSpec;
|
||||
typedef ColorSpec* ColorSpecPtr;
|
||||
typedef ColorSpec CSpecArray[1];
|
||||
|
||||
typedef struct ColorInfo
|
||||
{
|
||||
@ -185,6 +189,16 @@ typedef struct Palette
|
||||
typedef Palette* PalettePtr;
|
||||
typedef PalettePtr* PaletteHandle;
|
||||
|
||||
typedef struct ColorTable
|
||||
{
|
||||
SInt32 ctSeed;
|
||||
short ctFlags;
|
||||
short ctSize;
|
||||
CSpecArray ctTable;
|
||||
} ColorTable;
|
||||
typedef ColorTable* CTabPtr;
|
||||
typedef CTabPtr* CTabHandle;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Sound Manager types
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user