Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef MACOFFLINEGL_H
Toshihiro Shimizu 890ddd
#define MACOFFLINEGL_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tofflinegl.h"
Toshihiro Shimizu 890ddd
#include <agl agl.h=""></agl>
Toshihiro Shimizu 890ddd
#include <agl aglrenderers.h=""></agl>
Toshihiro Shimizu 890ddd
#include <opengl gl.h=""></opengl>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class MacOfflineGL : public TOfflineGL::Imp
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	AGLContext m_context;
Toshihiro Shimizu 890ddd
	AGLContext m_oldContext;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	MacOfflineGL(TDimension rasterSize, const TOfflineGL::Imp *shared = 0);
Toshihiro Shimizu 890ddd
	~MacOfflineGL();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void createContext(TDimension rasterSize, const TOfflineGL::Imp *shared);
Toshihiro Shimizu 890ddd
	void makeCurrent();
Toshihiro Shimizu 890ddd
	void doneCurrent();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void getRaster(TRaster32P);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void saveCurrentContext();
Toshihiro Shimizu 890ddd
	void restoreCurrentContext();
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif // MACOFFLINEGL_H