Files
Aerofoil/PortabilityLayer/PLQDOffscreen.h
2019-12-29 23:14:37 -05:00

44 lines
780 B
C

#pragma once
#ifndef __PL_QDOFFSCREEN_H__
#define __PL_QDOFFSCREEN_H__
#include "PLCore.h"
#include "PLQDraw.h"
struct ColorTable
{
};
struct PixMap;
typedef ColorTable *CTabPtr;
typedef CTabPtr *CTabHandle;
typedef PixMap *PixMapPtr;
typedef PixMapPtr *PixMapHandle;
typedef Picture *PicPtr;
typedef THandle<Picture> PicHandle;
enum QDFlags
{
useTempMem = 1,
};
PLError_t NewGWorld(GWorldPtr *gworld, GpPixelFormat_t pixelFormat, const Rect *bounds, CTabHandle colorTable);
void DisposeGWorld(GWorldPtr gworld);
PixMapHandle GetGWorldPixMap(GWorldPtr gworld);
PicHandle GetPicture(short resID);
void OffsetRect(Rect *rect, int right, int down);
void DrawPicture(PicHandle pict, Rect *bounds);
CGrafPtr GetGraphicsPort();
void SetGraphicsPort(CGrafPtr gw);
#endif