Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-24 11:52:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 11:52:14 +0400
commitb8a71efeba70d6c3ebc579f5043daa4162da86e8 (patch)
treed2d89da2a59f8955583f4968a35e48c578fd4d4c /source/gameengine/GamePlayer
parent81d8f17843f92c6d6abbacb652ca22917910f4bc (diff)
style cleanup: follow style guide for/with/if spacing
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r--source/gameengine/GamePlayer/common/GPC_Canvas.cpp4
-rw-r--r--source/gameengine/GamePlayer/common/GPC_Engine.cpp30
-rw-r--r--source/gameengine/GamePlayer/common/GPC_RawImage.cpp14
-rw-r--r--source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp2
-rw-r--r--source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp4
-rw-r--r--source/gameengine/GamePlayer/common/GPC_RenderTools.cpp42
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_Application.cpp20
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_ghost.cpp44
8 files changed, 80 insertions, 80 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_Canvas.cpp b/source/gameengine/GamePlayer/common/GPC_Canvas.cpp
index 0915326c8eb..db40f35f888 100644
--- a/source/gameengine/GamePlayer/common/GPC_Canvas.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_Canvas.cpp
@@ -205,7 +205,7 @@ void GPC_Canvas::DisposeBanner(TBannerData& banner)
void GPC_Canvas::DrawAllBanners(void)
{
- if(!m_bannersEnabled || (m_banners.size() < 1))
+ if (!m_bannersEnabled || (m_banners.size() < 1))
return;
// Save the old rendering parameters.
@@ -239,7 +239,7 @@ void GPC_Canvas::DrawAllBanners(void)
void GPC_Canvas::DrawBanner(TBannerData& banner)
{
- if(!banner.enabled)
+ if (!banner.enabled)
return;
// Set up coordinates
diff --git a/source/gameengine/GamePlayer/common/GPC_Engine.cpp b/source/gameengine/GamePlayer/common/GPC_Engine.cpp
index 6eb52413a4e..11d648762c8 100644
--- a/source/gameengine/GamePlayer/common/GPC_Engine.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_Engine.cpp
@@ -78,7 +78,7 @@ GPC_Engine::GPC_Engine(char *customLoadingAnimationURL,
m_frameRate(frameRate),
m_BlenderLogo(0), m_Blender3DLogo(0)/*, m_NaNLogo(0)*/
{
- if(customLoadingAnimationURL[0] != '\0')
+ if (customLoadingAnimationURL[0] != '\0')
{
m_customLoadingAnimationURL = new char[sizeof(customLoadingAnimationURL)];
// not yet, need to be implemented first... m_customLoadingAnimation = true;
@@ -87,13 +87,13 @@ GPC_Engine::GPC_Engine(char *customLoadingAnimationURL,
// load the Blender logo into memory
m_BlenderLogo = new GPC_RawImage();
// blender3d size is 115 x 32 so make resulting texture 128 x 128
- if(!m_BlenderLogo->Load("BlenderLogo", 128, 128, GPC_RawImage::alignTopLeft, 8, 8))
+ if (!m_BlenderLogo->Load("BlenderLogo", 128, 128, GPC_RawImage::alignTopLeft, 8, 8))
m_BlenderLogo = 0;
// load the Blender3D logo into memory
m_Blender3DLogo = new GPC_RawImage();
// blender3d size is 136 x 11 so make resulting texture 256 x 256
- if(!m_Blender3DLogo->Load("Blender3DLogo", 256, 256, GPC_RawImage::alignBottomRight, 8, 8))
+ if (!m_Blender3DLogo->Load("Blender3DLogo", 256, 256, GPC_RawImage::alignBottomRight, 8, 8))
m_Blender3DLogo = 0;
#if 0
@@ -101,7 +101,7 @@ GPC_Engine::GPC_Engine(char *customLoadingAnimationURL,
// load the NaN logo into memory
m_NaNLogo = new GPC_RawImage();
// blender3d size is 32 x 31 so make resulting texture 64 x 64
- if(!m_NaNLogo->Load("NaNLogo", 64, 64, GPC_RawImage::alignBottomRight, 8, 8))
+ if (!m_NaNLogo->Load("NaNLogo", 64, 64, GPC_RawImage::alignBottomRight, 8, 8))
m_NaNLogo = 0;
#endif
}
@@ -148,7 +148,7 @@ bool GPC_Engine::Start(const char *filename)
StartKetsji();
- if(bfd->type == BLENFILETYPE_PUB)
+ if (bfd->type == BLENFILETYPE_PUB)
m_canvas->SetBannerDisplayEnabled(false);
return true;
@@ -173,7 +173,7 @@ bool GPC_Engine::Start(unsigned char *blenderDataBuffer,
StartKetsji();
- if(bfd->type == BLENFILETYPE_PUB)
+ if (bfd->type == BLENFILETYPE_PUB)
m_canvas->SetBannerDisplayEnabled(false);
return true;
@@ -210,7 +210,7 @@ bool GPC_Engine::StartKetsji(void)
void GPC_Engine::StartLoadingAnimation()
{
- if(m_customLoadingAnimation)
+ if (m_customLoadingAnimation)
{
}
else
@@ -218,7 +218,7 @@ void GPC_Engine::StartLoadingAnimation()
unsigned char *blenderDataBuffer;
int blenderDataBufferSize;
GetRawLoadingAnimation(&blenderDataBuffer, &blenderDataBufferSize);
- if(!Start(blenderDataBuffer, blenderDataBufferSize))
+ if (!Start(blenderDataBuffer, blenderDataBufferSize))
cout << "something went wrong when starting the engine" << endl;
delete blenderDataBuffer; // created with 'new' in GetRawLoadingAnimation()
}
@@ -251,11 +251,11 @@ void GPC_Engine::UpdateLoadingAnimation(void)
float progress = DetermineProgress();
- if(progress > m_previousProgress)
+ if (progress > m_previousProgress)
{
// delta = progress - m_previousProgress;
m_previousProgress = progress;
- if(m_previousProgress > 1.0)
+ if (m_previousProgress > 1.0)
m_previousProgress = 1.0; // limit to 1.0 (has to change !)
// m_engine->m_previousProgress = 0.0;
}
@@ -266,7 +266,7 @@ void GPC_Engine::UpdateLoadingAnimation(void)
STR_String body;
body.Format("%f", progress); // a number between 0.0 and 1.0
- if(m_networkdev)
+ if (m_networkdev)
{
// Store a progress message in the network device.
NG_NetworkMessage* msg = new NG_NetworkMessage(to, from, subject, body);
@@ -279,19 +279,19 @@ void GPC_Engine::UpdateLoadingAnimation(void)
void GPC_Engine::Stop()
{
// only delete things that are created in StartKetsji()
-/* if(m_portal)
+/* if (m_portal)
{
m_portal->Leave();
delete m_portal; // also gets rid of KX_KetsjiEngine (says Maarten)
m_portal = 0;
}
-*/ if(m_sceneconverter)
+*/ if (m_sceneconverter)
{
delete m_sceneconverter;
m_sceneconverter = 0;
}
#if 0
- if(m_frameTimerID)
+ if (m_frameTimerID)
{
::KillTimer(0, m_frameTimerID);
m_frameTimerID = 0;
@@ -305,7 +305,7 @@ void GPC_Engine::Stop()
void GPC_Engine::Exit()
{
- if(m_running)
+ if (m_running)
Stop();
if (m_system) {
diff --git a/source/gameengine/GamePlayer/common/GPC_RawImage.cpp b/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
index 5bd3a1957e6..9f129c1cdfb 100644
--- a/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
@@ -50,26 +50,26 @@ bool GPC_RawImage::Load(
{
int srcWidth, srcHeight;
bool success = true;
- if(strcmp(srcName, "BlenderLogo") == 0)
+ if (strcmp(srcName, "BlenderLogo") == 0)
GetRawBlenderLogo(&m_data, &srcWidth, &srcHeight);
else
- if(strcmp(srcName, "Blender3DLogo") == 0)
+ if (strcmp(srcName, "Blender3DLogo") == 0)
GetRawBlender3DLogo(&m_data, &srcWidth, &srcHeight);
#if 0
else
- if(strcmp(srcName, "NaNLogo") == 0)
+ if (strcmp(srcName, "NaNLogo") == 0)
GetRawNaNLogo(&m_data, &srcWidth, &srcHeight);
#endif
else // unknown image
success = false;
- if(success)
+ if (success)
{
unsigned char *tempData = m_data;
int numBytes = destWidth * destHeight * 4;
m_data = new unsigned char[numBytes]; // re-use m_data ('unsigned char' was 'char')
- if(m_data)
+ if (m_data)
{
::memset(m_data, 0x00000000, numBytes);
m_width = destWidth;
@@ -80,11 +80,11 @@ bool GPC_RawImage::Load(
int numRows = (srcHeight + offsetY) < m_height ? srcHeight : m_height - offsetY;
numBytes = (srcWidth + offsetX) < m_width ? srcBytesWidth : (m_width - offsetX) * 4;
- if((offsetX < m_width) && (offsetY < m_height))
+ if ((offsetX < m_width) && (offsetY < m_height))
{
unsigned char* src = (unsigned char*)tempData;
unsigned char* dst = (unsigned char*)m_data;
- if(alignment == alignTopLeft)
+ if (alignment == alignTopLeft)
{
// Put original in upper left corner
diff --git a/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp b/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp
index 16f984cbe3c..adf0bcd8e57 100644
--- a/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_RawLoadDotBlendArray.cpp
@@ -9299,7 +9299,7 @@ void GetRawLoadingAnimation(unsigned char **data, int *dataSize)
*data = new unsigned char[138801];
// and copy it. Now we are certain that the calling function
// can control the memory location
- for(int i = 0; i < 138801 /* tmp array size */; i++)
+ for (int i = 0; i < 138801 /* tmp array size */; i++)
{
(*data)[i] = load_blend[i];
}
diff --git a/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp b/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp
index 52a033ce538..2471b528eac 100644
--- a/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_RawLogoArrays.cpp
@@ -1029,7 +1029,7 @@ void GetRawBlenderLogo(unsigned char **data, int *width, int *height)
*data = new unsigned char[14720];
// and copy it. Now we are certain that the calling function
// can control the memory location
- for(int i = 0; i < 14720 /* tmp array size */; i++)
+ for (int i = 0; i < 14720 /* tmp array size */; i++)
{
(*data)[i] = logo_blender_raw[i];
}
@@ -1449,7 +1449,7 @@ void GetRawBlender3DLogo(unsigned char **data, int *width, int *height)
*data = new unsigned char[5984];
// and copy it. Now we are certain that the calling function
// can control the memory location
- for(int i = 0; i < 5984 /* tmp array size */; i++)
+ for (int i = 0; i < 5984 /* tmp array size */; i++)
{
(*data)[i] = logo_blender3d_raw[i];
}
diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
index 54e2efd8776..ed2fa8a7dc6 100644
--- a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
@@ -101,23 +101,23 @@ void GPC_RenderTools::ProcessLighting(RAS_IRasterizer *rasty, bool uselights, co
int layer= -1;
/* find the layer */
- if(uselights) {
- if(m_clientobject)
+ if (uselights) {
+ if (m_clientobject)
layer = static_cast<KX_GameObject*>(m_clientobject)->GetLayer();
}
/* avoid state switching */
- if(m_lastlightlayer == layer && m_lastauxinfo == m_auxilaryClientInfo)
+ if (m_lastlightlayer == layer && m_lastauxinfo == m_auxilaryClientInfo)
return;
m_lastlightlayer = layer;
m_lastauxinfo = m_auxilaryClientInfo;
/* enable/disable lights as needed */
- if(layer >= 0)
+ if (layer >= 0)
enable = applyLights(layer, viewmat);
- if(enable)
+ if (enable)
EnableOpenGLLights(rasty);
else
DisableOpenGLLights();
@@ -125,7 +125,7 @@ void GPC_RenderTools::ProcessLighting(RAS_IRasterizer *rasty, bool uselights, co
void GPC_RenderTools::EnableOpenGLLights(RAS_IRasterizer *rasty)
{
- if(m_lastlighting == true)
+ if (m_lastlighting == true)
return;
glEnable(GL_LIGHTING);
@@ -142,7 +142,7 @@ void GPC_RenderTools::EnableOpenGLLights(RAS_IRasterizer *rasty)
void GPC_RenderTools::DisableOpenGLLights()
{
- if(m_lastlighting == false)
+ if (m_lastlighting == false)
return;
glDisable(GL_LIGHTING);
@@ -291,26 +291,26 @@ void GPC_RenderTools::RenderText3D( int fontid,
double* mat,
float aspect)
{
- if(GLEW_ARB_multitexture) {
- for(int i=0; i<MAXTEX; i++) {
+ if (GLEW_ARB_multitexture) {
+ for (int i=0; i<MAXTEX; i++) {
glActiveTextureARB(GL_TEXTURE0_ARB+i);
- if(GLEW_ARB_texture_cube_map)
- if(glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
+ if (GLEW_ARB_texture_cube_map)
+ if (glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
- if(glIsEnabled(GL_TEXTURE_2D))
+ if (glIsEnabled(GL_TEXTURE_2D))
glDisable(GL_TEXTURE_2D);
}
glActiveTextureARB(GL_TEXTURE0_ARB);
}
else {
- if(GLEW_ARB_texture_cube_map)
- if(glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
+ if (GLEW_ARB_texture_cube_map)
+ if (glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
- if(glIsEnabled(GL_TEXTURE_2D))
+ if (glIsEnabled(GL_TEXTURE_2D))
glDisable(GL_TEXTURE_2D);
}
@@ -415,7 +415,7 @@ void GPC_RenderTools::RenderText(
struct MTFace* tface = 0;
unsigned int *col = 0;
- if(flag & RAS_BLENDERMAT) {
+ if (flag & RAS_BLENDERMAT) {
KX_BlenderMaterial *bl_mat = static_cast<KX_BlenderMaterial*>(polymat);
tface = bl_mat->GetMTFace();
col = bl_mat->GetMCol();
@@ -448,7 +448,7 @@ int GPC_RenderTools::applyLights(int objectlayer, const MT_Transform& viewmat)
unsigned int count;
std::vector<struct RAS_LightObject*>::iterator lit = m_lights.begin();
- for(count=0; count<m_numgllights; count++)
+ for (count=0; count<m_numgllights; count++)
glDisable((GLenum)(GL_LIGHT0+count));
viewmat.getValue(glviewmat);
@@ -460,7 +460,7 @@ int GPC_RenderTools::applyLights(int objectlayer, const MT_Transform& viewmat)
RAS_LightObject* lightdata = (*lit);
KX_LightObject *kxlight = (KX_LightObject*)lightdata->m_light;
- if(kxlight->ApplyLight(kxscene, objectlayer, count))
+ if (kxlight->ApplyLight(kxscene, objectlayer, count))
count++;
}
glPopMatrix();
@@ -472,16 +472,16 @@ void GPC_RenderTools::MotionBlur(RAS_IRasterizer* rasterizer)
{
int state = rasterizer->GetMotionBlurState();
float motionblurvalue;
- if(state)
+ if (state)
{
motionblurvalue = rasterizer->GetMotionBlurValue();
- if(state==1)
+ if (state==1)
{
//bugfix:load color buffer into accum buffer for the first time(state=1)
glAccum(GL_LOAD, 1.0);
rasterizer->SetMotionBlurState(2);
}
- else if(motionblurvalue>=0.0 && motionblurvalue<=1.0)
+ else if (motionblurvalue>=0.0 && motionblurvalue<=1.0)
{
glAccum(GL_MULT, motionblurvalue);
glAccum(GL_ACCUM, 1-motionblurvalue);
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
index f7c366599ef..eccb83fe80c 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
@@ -138,7 +138,7 @@ GPG_Application::GPG_Application(GHOST_ISystem* system)
GPG_Application::~GPG_Application(void)
{
- if(m_pyGlobalDictString) {
+ if (m_pyGlobalDictString) {
delete [] m_pyGlobalDictString;
m_pyGlobalDictString = 0;
m_pyGlobalDictString_Length = 0;
@@ -558,12 +558,12 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
bool nodepwarnings = (SYS_GetCommandLineInt(syshandle, "ignore_deprecation_warnings", 1) != 0);
bool restrictAnimFPS = gm->flag & GAME_RESTRICT_ANIM_UPDATES;
- if(GLEW_ARB_multitexture && GLEW_VERSION_1_1)
+ if (GLEW_ARB_multitexture && GLEW_VERSION_1_1)
m_blendermat = (SYS_GetCommandLineInt(syshandle, "blender_material", 1) != 0);
- if(GPU_glsl_support())
+ if (GPU_glsl_support())
m_blenderglslmat = (SYS_GetCommandLineInt(syshandle, "blender_glsl_material", 1) != 0);
- else if(m_globalSettings->matmode == GAME_MAT_GLSL)
+ else if (m_globalSettings->matmode == GAME_MAT_GLSL)
m_blendermat = false;
// create the canvas, rasterizer and rendertools
@@ -579,8 +579,8 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
if (!m_rendertools)
goto initFailed;
- if(useLists) {
- if(GLEW_VERSION_1_1)
+ if (useLists) {
+ if (GLEW_VERSION_1_1)
m_rasterizer = new RAS_ListRasterizer(m_canvas, true);
else
m_rasterizer = new RAS_ListRasterizer(m_canvas);
@@ -701,9 +701,9 @@ bool GPG_Application::startEngine(void)
// if (always_use_expand_framing)
// sceneconverter->SetAlwaysUseExpandFraming(true);
- if(m_blendermat && (m_globalSettings->matmode != GAME_MAT_TEXFACE))
+ if (m_blendermat && (m_globalSettings->matmode != GAME_MAT_TEXFACE))
m_sceneconverter->SetMaterials(true);
- if(m_blenderglslmat && (m_globalSettings->matmode == GAME_MAT_GLSL))
+ if (m_blenderglslmat && (m_globalSettings->matmode == GAME_MAT_GLSL))
m_sceneconverter->SetGLSLMaterials(true);
KX_Scene* startscene = new KX_Scene(m_keyboard,
@@ -720,7 +720,7 @@ bool GPG_Application::startEngine(void)
#endif // WITH_PYTHON
//initialize Dome Settings
- if(m_startScene->gm.stereoflag == STEREO_DOME)
+ if (m_startScene->gm.stereoflag == STEREO_DOME)
m_ketsjiengine->InitDome(m_startScene->gm.dome.res, m_startScene->gm.dome.mode, m_startScene->gm.dome.angle, m_startScene->gm.dome.resbuf, m_startScene->gm.dome.tilt, m_startScene->gm.dome.warptext);
#ifdef WITH_PYTHON
@@ -764,7 +764,7 @@ void GPG_Application::stopEngine()
// GameLogic.globalDict gets converted into a buffer, and sorted in
// m_pyGlobalDictString so we can restore after python has stopped
// and started between .blend file loads.
- if(m_pyGlobalDictString) {
+ if (m_pyGlobalDictString) {
delete [] m_pyGlobalDictString;
m_pyGlobalDictString = 0;
}
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
index 36c38682244..d477c87936f 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
@@ -297,7 +297,7 @@ static void get_filename(int argc, char **argv, char *filename)
#else
filename[0] = '\0';
- if(argc > 1)
+ if (argc > 1)
BLI_strncpy(filename, argv[argc-1], FILE_MAX);
#endif // !_APPLE
}
@@ -606,29 +606,29 @@ int main(int argc, char** argv)
if (stereomode < RAS_IRasterizer::RAS_STEREO_NOSTEREO || stereomode >= RAS_IRasterizer::RAS_STEREO_MAXSTEREO)
stereomode = RAS_IRasterizer::RAS_STEREO_NOSTEREO;
- if(!strcmp(argv[i], "nostereo")) // ok, redundant but clear
+ if (!strcmp(argv[i], "nostereo")) // ok, redundant but clear
stereomode = RAS_IRasterizer::RAS_STEREO_NOSTEREO;
// only the hardware pageflip method needs a stereo window
- else if(!strcmp(argv[i], "hwpageflip")) {
+ else if (!strcmp(argv[i], "hwpageflip")) {
stereomode = RAS_IRasterizer::RAS_STEREO_QUADBUFFERED;
stereoWindow = true;
}
- else if(!strcmp(argv[i], "syncdoubling"))
+ else if (!strcmp(argv[i], "syncdoubling"))
stereomode = RAS_IRasterizer::RAS_STEREO_ABOVEBELOW;
- else if(!strcmp(argv[i], "anaglyph"))
+ else if (!strcmp(argv[i], "anaglyph"))
stereomode = RAS_IRasterizer::RAS_STEREO_ANAGLYPH;
- else if(!strcmp(argv[i], "sidebyside"))
+ else if (!strcmp(argv[i], "sidebyside"))
stereomode = RAS_IRasterizer::RAS_STEREO_SIDEBYSIDE;
- else if(!strcmp(argv[i], "vinterlace"))
+ else if (!strcmp(argv[i], "vinterlace"))
stereomode = RAS_IRasterizer::RAS_STEREO_VINTERLACE;
#if 0
// future stuff
- else if(!strcmp(argv[i], "stencil")
+ else if (!strcmp(argv[i], "stencil")
stereomode = RAS_STEREO_STENCIL;
#endif
@@ -648,33 +648,33 @@ int main(int argc, char** argv)
i++;
if ((i + 1) <= validArguments)
{
- if(!strcmp(argv[i], "angle")){
+ if (!strcmp(argv[i], "angle")){
i++;
domeFov = atoi(argv[i++]);
}
- if(!strcmp(argv[i], "tilt")){
+ if (!strcmp(argv[i], "tilt")){
i++;
domeTilt = atoi(argv[i++]);
}
- if(!strcmp(argv[i], "warpdata")){
+ if (!strcmp(argv[i], "warpdata")){
i++;
domeWarp = argv[i++];
}
- if(!strcmp(argv[i], "mode")){
+ if (!strcmp(argv[i], "mode")){
i++;
- if(!strcmp(argv[i], "fisheye"))
+ if (!strcmp(argv[i], "fisheye"))
domeMode = DOME_FISHEYE;
- else if(!strcmp(argv[i], "truncatedfront"))
+ else if (!strcmp(argv[i], "truncatedfront"))
domeMode = DOME_TRUNCATED_FRONT;
- else if(!strcmp(argv[i], "truncatedrear"))
+ else if (!strcmp(argv[i], "truncatedrear"))
domeMode = DOME_TRUNCATED_REAR;
- else if(!strcmp(argv[i], "cubemap"))
+ else if (!strcmp(argv[i], "cubemap"))
domeMode = DOME_ENVMAP;
- else if(!strcmp(argv[i], "sphericalpanoramic"))
+ else if (!strcmp(argv[i], "sphericalpanoramic"))
domeMode = DOME_PANORAM_SPH;
else
@@ -749,7 +749,7 @@ int main(int argc, char** argv)
char *titlename;
get_filename(argc_py_clamped, argv, filename);
- if(filename[0])
+ if (filename[0])
BLI_path_cwd(filename);
@@ -846,7 +846,7 @@ int main(int argc, char** argv)
// Check whether the game should be displayed in stereo
if (!stereoParFound)
{
- if(scene->gm.stereoflag == STEREO_ENABLED){
+ if (scene->gm.stereoflag == STEREO_ENABLED){
stereomode = (RAS_IRasterizer::StereoMode) scene->gm.stereomode;
if (stereomode != RAS_IRasterizer::RAS_STEREO_QUADBUFFERED)
stereoWindow = true;
@@ -871,7 +871,7 @@ int main(int argc, char** argv)
{
//XXX to do: convert relative to absolute path
domeText= add_text(domeWarp, "");
- if(!domeText)
+ if (!domeText)
printf("error: invalid warpdata text file - %s\n", domeWarp);
else
scene->gm.dome.warptext = domeText;
@@ -881,7 +881,7 @@ int main(int argc, char** argv)
// GPG_Application app (system, maggie, startscenename);
app.SetGameEngineData(maggie, scene, &gs, argc, argv); /* this argc cant be argc_py_clamped, since python uses it */
BLI_strncpy(pathname, maggie->name, sizeof(pathname));
- if(G.main != maggie) {
+ if (G.main != maggie) {
BLI_strncpy(G.main->name, maggie->name, sizeof(G.main->name));
}
#ifdef WITH_PYTHON
@@ -1014,7 +1014,7 @@ int main(int argc, char** argv)
SYS_DeleteSystem(syshandle);
int totblock= MEM_get_memory_blocks_in_use();
- if(totblock!=0) {
+ if (totblock!=0) {
printf("Error Totblock: %d\n",totblock);
MEM_set_error_callback(mem_error_cb);
MEM_printmemlist();