diff options
author | Kevin Hartman <kevin@hart.mn> | 2014-08-21 00:27:53 -0700 |
---|---|---|
committer | Kevin Hartman <kevin@hart.mn> | 2014-08-25 20:56:59 -0700 |
commit | cbfd6b6e52e3b8c1d6324d86461f4e8aa240a756 (patch) | |
tree | 31355774610d25174521e88ca7dcebfe5bbfe715 /src/video_core/renderer_opengl/gl_shader_util.h | |
parent | aa7472057ae9b56e3f7216931cbb9e927e39a930 (diff) |
Rewrite of OpenGL renderer, including OS X support
Screen contents are now displayed using textured quads. This can be updated to expose an FBO once an OpenGL backend for when Pica rendering is being worked on. That FBO's texture can then be applied to the quads.
Previously, FBO blitting was used in order to display screen contents, which did not work on OS X. The new textured quad approach is less of a compatibility risk.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_util.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.h b/src/video_core/renderer_opengl/gl_shader_util.h new file mode 100644 index 00000000..563f1015 --- /dev/null +++ b/src/video_core/renderer_opengl/gl_shader_util.h @@ -0,0 +1,13 @@ +// Copyright 2014 Citra Emulator Project +// Licensed under GPLv2 +// Refer to the license.txt file included. + +#pragma once + +#include <GL/glew.h> + +namespace ShaderUtil { + +GLuint LoadShaders(const char* vertex_file_path, const char* fragment_file_path); + +} |