2019-11-11 00:11:59 -05:00
|
|
|
#pragma once
|
|
|
|
|
#ifndef __PL_QDOFFSCREEN_H__
|
|
|
|
|
#define __PL_QDOFFSCREEN_H__
|
|
|
|
|
|
|
|
|
|
#include "PLCore.h"
|
|
|
|
|
#include "PLQuickdraw.h"
|
|
|
|
|
|
|
|
|
|
struct ColorTable
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
2019-12-11 00:51:42 -05:00
|
|
|
struct PixMap;
|
2019-11-11 00:11:59 -05:00
|
|
|
|
|
|
|
|
typedef ColorTable *CTabPtr;
|
|
|
|
|
typedef CTabPtr *CTabHandle;
|
|
|
|
|
|
|
|
|
|
typedef PixMap *PixMapPtr;
|
|
|
|
|
typedef PixMapPtr *PixMapHandle;
|
|
|
|
|
|
|
|
|
|
typedef Picture *PicPtr;
|
|
|
|
|
typedef PicPtr *PicHandle;
|
|
|
|
|
|
|
|
|
|
enum QDFlags
|
|
|
|
|
{
|
|
|
|
|
useTempMem = 1,
|
|
|
|
|
};
|
|
|
|
|
|
2019-12-24 18:39:30 -05:00
|
|
|
OSErr NewGWorld(GWorldPtr *gworld, int depth, const Rect *bounds, CTabHandle colorTable, GDHandle device, int flags);
|
2019-11-11 00:11:59 -05:00
|
|
|
void DisposeGWorld(GWorldPtr gworld);
|
|
|
|
|
|
|
|
|
|
PixMapHandle GetGWorldPixMap(GWorldPtr gworld);
|
|
|
|
|
void LockPixels(PixMapHandle pixmap);
|
|
|
|
|
|
|
|
|
|
PicHandle GetPicture(short resID);
|
|
|
|
|
|
|
|
|
|
void OffsetRect(Rect *rect, int right, int down);
|
|
|
|
|
|
|
|
|
|
void DrawPicture(PicHandle pict, Rect *bounds);
|
|
|
|
|
|
|
|
|
|
void GetGWorld(CGrafPtr *gw, GDHandle *gdHandle);
|
|
|
|
|
void SetGWorld(CGrafPtr gw, GDHandle gdHandle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|