diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-11-27 02:00:15 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-11-27 02:00:15 +0000 |
| commit | a4463d88e3a0b941bef85db712517b2d67de83b4 (patch) | |
| tree | 854abd0278676d587b40b00b82db1e45a43c2d03 /macosx/plugins/DFXVideo/macsrc/PluginGLView.h | |
| parent | 26a39c749b337ef038a949447c5356ddaa0bc912 (diff) | |
| download | pcsxr-a4463d88e3a0b941bef85db712517b2d67de83b4.tar.gz | |
Apple seems to be really pushing OpenGL3, let’s see if I can make an OpenGL 3 context on the Software renderer.
We’ll begin by splitting up the renderers into different files.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87979 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.h')
| -rwxr-xr-x | macosx/plugins/DFXVideo/macsrc/PluginGLView.h | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.h b/macosx/plugins/DFXVideo/macsrc/PluginGLView.h index 77fe06c9..4400c2c8 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.h +++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.h @@ -19,10 +19,10 @@ #define PluginGLView NetSfPeopsSoftGPUPluginGLView #import <Cocoa/Cocoa.h> -#import <OpenGL/gl.h> +#include <OpenGL/gltypes.h> #include <sys/time.h> -#define IMAGE_COUNT 2 +#define IMAGE_COUNT 2 static inline void RunOnMainThreadSync(dispatch_block_t block) { @@ -66,15 +66,40 @@ static inline void RunOnMainThreadSync(dispatch_block_t block) float image_tx; float image_ty; int whichImage; - int isFullscreen; + BOOL isFullscreen; + NSOpenGLPixelFormatAttribute oglProfile; } +@property (readonly, strong) NSLock *glLock; - (void)renderScreen; - (void)swapBuffer; - (void)clearBuffer:(BOOL)display; -- (void)loadTextures: (GLboolean)first; -- (GLuint)loadShader:(GLenum)type location:(NSURL*)filename; +- (void)loadTextures:(GLboolean)first; - (char*)loadSource:(NSURL *)filename; void printProgramInfoLog(GLuint obj); @end + +@interface PluginGLView (GL2) + +- (BOOL)setupOpenGL2; +- (void)cleanupGL2; +- (void)reshapeGL2; +- (void)renderScreenGL2; +- (void)loadTexturesGL2:(GLboolean)first; +- (void)swapBufferGL2; + +@end + +@interface PluginGLView (GL3) + +- (BOOL)setupOpenGL3; +- (void)cleanupGL3; +- (void)reshapeGL3; +- (void)renderScreenGL3; +- (void)loadTexturesGL3:(GLboolean)first; +- (void)swapBufferGL3; +- (GLuint)loadShader:(GLenum)type location:(NSURL*)filename; + +@end + |
