mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
renderer_opengl.cpp: improved alignment for readability
This commit is contained in:
parent
1c02c03e32
commit
81baa477b5
1 changed files with 16 additions and 16 deletions
|
@ -18,28 +18,28 @@ static const GLfloat kViewportAspectRatio =
|
||||||
|
|
||||||
// Fullscreen quad dimensions
|
// Fullscreen quad dimensions
|
||||||
static const GLfloat kTopScreenWidthNormalized = 2;
|
static const GLfloat kTopScreenWidthNormalized = 2;
|
||||||
static const GLfloat kTopScreenHeightNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenTopHeight) / VideoCore::kScreenTopWidth);
|
static const GLfloat kTopScreenHeightNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenTopHeight) / VideoCore::kScreenTopWidth);
|
||||||
static const GLfloat kBottomScreenWidthNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomWidth) / VideoCore::kScreenTopWidth);
|
static const GLfloat kBottomScreenWidthNormalized = kTopScreenWidthNormalized * (static_cast<float>(VideoCore::kScreenBottomWidth) / VideoCore::kScreenTopWidth);
|
||||||
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,
|
||||||
1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f,
|
1.0f, kTopScreenHeightNormalized, 0.0f, 1.0f, 0.0f,
|
||||||
-1.0f, kTopScreenHeightNormalized, 0.0f, 0.0f, 0.0f,
|
-1.0f, kTopScreenHeightNormalized, 0.0f, 0.0f, 0.0f,
|
||||||
-1.0f, 0.0f, 0.0f, 0.0f, 1.0f
|
-1.0f, 0.0f, 0.0f, 0.0f, 1.0f
|
||||||
};
|
};
|
||||||
|
|
||||||
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,
|
||||||
(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f,
|
(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 1.0f, 0.0f,
|
||||||
-(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 0.0f, 0.0f,
|
-(kBottomScreenWidthNormalized / 2), 0.0f, 0.0f, 0.0f, 0.0f,
|
||||||
-(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f
|
-(kBottomScreenWidthNormalized / 2), -kBottomScreenHeightNormalized, 0.0f, 0.0f, 1.0f
|
||||||
};
|
};
|
||||||
|
|
||||||
/// RendererOpenGL constructor
|
/// RendererOpenGL constructor
|
||||||
|
|
Loading…
Reference in a new issue