diff options
| author | 2014-09-06 20:05:53 -0700 | |
|---|---|---|
| committer | 2014-09-07 12:09:02 -0700 | |
| commit | 81baa477b503796f3dbf9308a7fdf51a871f5c37 (patch) | |
| tree | 1542d7872e0f79d7f8b62b5848c36ba7639deee1 /src | |
| parent | Dead code removal: video_core.cpp, load_symbol_map.cpp (diff) | |
| download | yuzu-81baa477b503796f3dbf9308a7fdf51a871f5c37.tar.gz yuzu-81baa477b503796f3dbf9308a7fdf51a871f5c37.tar.xz yuzu-81baa477b503796f3dbf9308a7fdf51a871f5c37.zip | |
renderer_opengl.cpp: improved alignment for readability
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 0e4e06517..4ab1ccb2c 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -18,28 +18,28 @@ static const GLfloat kViewportAspectRatio = | |||
| 18 | 18 | ||
| 19 | // Fullscreen quad dimensions | 19 | // Fullscreen quad dimensions |
| 20 | static const GLfloat kTopScreenWidthNormalized = 2; | 20 | static const GLfloat kTopScreenWidthNormalized = 2; |
| 21 | static const GLfloat kTopScreenHeightNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenTopHeight) / VideoCore::kScreenTopWidth); | 21 | static const GLfloat kTopScreenHeightNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenTopHeight) / VideoCore::kScreenTopWidth); |
| 22 | static const GLfloat kBottomScreenWidthNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomWidth) / VideoCore::kScreenTopWidth); | 22 | static const GLfloat kBottomScreenWidthNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomWidth) / VideoCore::kScreenTopWidth); |
| 23 | static const GLfloat kBottomScreenHeightNormalized = kBottomScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomHeight) / VideoCore::kScreenBottomWidth); | 23 | static const GLfloat kBottomScreenHeightNormalized = kBottomScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomHeight) / VideoCore::kScreenBottomWidth); |
| 24 | 24 | ||
| 25 | static const GLfloat g_vbuffer_top[] = { | 25 | static const GLfloat g_vbuffer_top[] = { |
| 26 | // x, y, z u, v | 26 | // x, y z u v |
| 27 | -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, | 27 | -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, |
| 28 | 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, | 28 | 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, |
| 29 | 1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f, | 29 | 1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f, |
| 30 | 1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f, | 30 | 1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f, |
| 31 | -1.0f, kTopScreenHeightNormalized, 0.0f, 0.0f, 0.0f, | 31 | -1.0f, kTopScreenHeightNormalized, 0.0f, 0.0f, 0.0f, |
| 32 | -1.0f, 0.0f, 0.0f, 0.0f, 1.0f | 32 | -1.0f, 0.0f, 0.0f, 0.0f, 1.0f |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | static const GLfloat g_vbuffer_bottom[] = { | 35 | static const GLfloat g_vbuffer_bottom[] = { |
| 36 | // x, y, z u, v | 36 | // x y z u v |
| 37 | -(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f, | 37 | -(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f, |
| 38 | (kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 1.0f, 1.0f, | 38 | (kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 1.0f, 1.0f, |
| 39 | (kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f, | 39 | (kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f, |
| 40 | (kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f, | 40 | (kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f, |
| 41 | -(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 0.0f, 0.0f, | 41 | -(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 0.0f, 0.0f, |
| 42 | -(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f | 42 | -(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | /// RendererOpenGL constructor | 45 | /// RendererOpenGL constructor |