Indentation style changed to Allman

Using Artistic Style (http://astyle.sourceforge.net/)
Options:
--style=allman
--indent=tab
--keep-one-line-blocks
--align-pointer=type
--align-reference=name
This commit is contained in:
2014-04-11 20:56:19 +02:00
parent 34bcfbce08
commit 4c081d0e1c
56 changed files with 599 additions and 438 deletions
+10 -8
View File
@@ -4,19 +4,20 @@
Skybox::Skybox(std::string skyboxPath, std::string extension /* = "png" */)
{
m_Cubemap = std::make_shared<CubemapTexture>(
skyboxPath + "/right." + extension,
skyboxPath + "/left." + extension,
skyboxPath + "/top." + extension,
skyboxPath + "/bottom." + extension,
skyboxPath + "/front." + extension,
skyboxPath + "/back." + extension);
skyboxPath + "/right." + extension,
skyboxPath + "/left." + extension,
skyboxPath + "/top." + extension,
skyboxPath + "/bottom." + extension,
skyboxPath + "/front." + extension,
skyboxPath + "/back." + extension);
m_Cubemap->Load();
Initialize();
}
void Skybox::Initialize()
{
float cubeVertices[] = {
float cubeVertices[] =
{
-1.0f, -1.0f, -1.0f,
1.0f, -1.0f, -1.0f,
1.0f, 1.0f, -1.0f,
@@ -29,7 +30,8 @@ void Skybox::Initialize()
};
//std::copy(cubeVertices, cubeVertices + (3*8 - 1), m_CubeVertices);
unsigned int cubeIndices[] = {
unsigned int cubeIndices[] =
{
// Back
0, 2, 3,
0, 1, 2,