2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

renderer_opengl.cpp: improved alignment for readability

This commit is contained in:
archshift 2014-09-06 20:05:53 -07:00
parent 1c02c03e32
commit 81baa477b5

View file

@ -23,7 +23,7 @@ static const GLfloat kBottomScreenWidthNormalized = kTopScreenWidthNormalized *
static const GLfloat kBottomScreenHeightNormalized = kBottomScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomHeight) / VideoCore::kScreenBottomWidth); static const GLfloat kBottomScreenHeightNormalized = kBottomScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomHeight) / VideoCore::kScreenBottomWidth);
static const GLfloat g_vbuffer_top[] = { static const GLfloat g_vbuffer_top[] = {
// x, y, z u, v // x, y z u v
-1.0f, 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f,
1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f, 1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f,
@ -33,7 +33,7 @@ static const GLfloat g_vbuffer_top[] = {
}; };
static const GLfloat g_vbuffer_bottom[] = { static const GLfloat g_vbuffer_bottom[] = {
// x, y, z u, v // x y z u v
-(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f, -(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f,
(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 1.0f, 1.0f, (kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 1.0f, 1.0f,
(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f, (kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f,