diff options
author | bunnei <bunneidev@gmail.com> | 2016-02-04 06:03:20 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:20:23 +0100 |
commit | aaa7beeda8be312294a32e620a172c33cb231866 (patch) | |
tree | 320f9eabc0af6556a74a2237f3462ef5c9490561 /src/video_core/renderer_opengl/pica_to_gl.h | |
parent | gl_rasterizer: Fix issue with interpolation of opposite quaternions. (diff) | |
download | yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.gz yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.bz2 yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.lz yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.xz yuzu-aaa7beeda8be312294a32e620a172c33cb231866.tar.zst yuzu-aaa7beeda8be312294a32e620a172c33cb231866.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/pica_to_gl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h index 346c9391d..3d6c4e9e5 100644 --- a/src/video_core/renderer_opengl/pica_to_gl.h +++ b/src/video_core/renderer_opengl/pica_to_gl.h @@ -10,6 +10,9 @@ #include "video_core/pica.h" +using GLvec3 = std::array<GLfloat, 3>; +using GLvec4 = std::array<GLfloat, 4>; + namespace PicaToGL { inline GLenum TextureFilterMode(Pica::Regs::TextureConfig::TextureFilter mode) { @@ -175,7 +178,7 @@ inline GLenum StencilOp(Pica::Regs::StencilAction action) { return stencil_op_table[(unsigned)action]; } -inline std::array<GLfloat, 4> ColorRGBA8(const u32 color) { +inline GLvec4 ColorRGBA8(const u32 color) { return { { (color >> 0 & 0xFF) / 255.0f, (color >> 8 & 0xFF) / 255.0f, (color >> 16 & 0xFF) / 255.0f, |