Line | |
---|
1 | #ifndef __OSXRenderTexture_H__ |
---|
2 | #define __OSXRenderTexture_H__ |
---|
3 | |
---|
4 | #include "OgrePrerequisites.h" |
---|
5 | |
---|
6 | #include "OgreGLPBuffer.h" |
---|
7 | #include "OgreOSXCarbonContext.h" |
---|
8 | |
---|
9 | namespace Ogre |
---|
10 | { |
---|
11 | class OSXPBuffer : public GLPBuffer |
---|
12 | { |
---|
13 | public: |
---|
14 | OSXPBuffer(PixelComponentType format, size_t width, size_t height ); |
---|
15 | ~OSXPBuffer(); |
---|
16 | |
---|
17 | virtual GLContext *getContext(); |
---|
18 | |
---|
19 | protected: |
---|
20 | void createPBuffer(); |
---|
21 | void destroyPBuffer(); |
---|
22 | |
---|
23 | private: |
---|
24 | AGLPbuffer mPBuffer; |
---|
25 | AGLContext mAGLContext; |
---|
26 | OSXCarbonContext* mContext; |
---|
27 | }; |
---|
28 | } |
---|
29 | #endif |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.