Blame toonz/sources/include/macofflinegl.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
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 |
|
|
Shinya Kitaoka |
120a6e |
class MacOfflineGL : public TOfflineGL::Imp {
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Shinya Kitaoka |
120a6e |
AGLContext m_context;
|
|
Shinya Kitaoka |
120a6e |
AGLContext m_oldContext;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
MacOfflineGL(TDimension rasterSize, const TOfflineGL::Imp *shared = 0);
|
|
Shinya Kitaoka |
120a6e |
~MacOfflineGL();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void createContext(TDimension rasterSize, const TOfflineGL::Imp *shared);
|
|
Shinya Kitaoka |
120a6e |
void makeCurrent();
|
|
Shinya Kitaoka |
120a6e |
void doneCurrent();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void getRaster(TRaster32P);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void saveCurrentContext();
|
|
Shinya Kitaoka |
120a6e |
void restoreCurrentContext();
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
#endif // MACOFFLINEGL_H
|