From a4905ffaa0185235cc638098dae277f8abc0a56c Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Mon, 17 Sep 2012 01:15:40 +0000 Subject: Updating projects to build on Xcode 4.4 Added OpenGL shader support to the Mac software renderer. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@79892 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFXVideo/macsrc/PluginGLView.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.h') diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.h b/macosx/plugins/DFXVideo/macsrc/PluginGLView.h index fea3b89a..fe2e5f78 100644 --- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.h +++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.h @@ -29,7 +29,12 @@ GLubyte *image_base; GLubyte *image[IMAGE_COUNT]; + GLboolean useShader; + float shaderQuality; GLint buffers; + GLuint vertexShader; + GLuint fragmentShader; + GLuint program; //GLint frame_rate; GLenum texture_hint; @@ -59,5 +64,8 @@ - (void)swapBuffer; - (void)clearBuffer:(BOOL)display; - (void)loadTextures: (GLboolean)first; +- (GLuint)loadShader:(GLenum)type location:(NSURL*)filename; +- (char*)loadSource:(NSURL *)filename; +void printProgramInfoLog(GLuint obj); @end -- cgit v1.2.3