minimize warnings compiling with g++ 3.2.
class SkyAABBTree : public SkyBVTree<object, SkyMinMaxBox, SkyAABBTreeSplitter<object> >
{};
-#endif //__SKYAABBTREE_HPP__
\ No newline at end of file
+#endif //__SKYAABBTREE_HPP__
SKYRESULT _Load(FILE* pSrcFile);
};
-#endif //__SKYARCHIVE_HPP__
\ No newline at end of file
+#endif //__SKYARCHIVE_HPP__
std::vector<NodeObject> _objList;
};
-#endif //__SKYBVTREE_HPP__
\ No newline at end of file
+#endif //__SKYBVTREE_HPP__
SkyBoundingBoxSplitter<Object> _splitter;
};*/
-#endif //__SKYBVTREESPLITTER_HPP__
\ No newline at end of file
+#endif //__SKYBVTREESPLITTER_HPP__
float _rRadius;
};
-#endif //__SKYBOUNDINGVOLUME_HPP__
\ No newline at end of file
+#endif //__SKYBOUNDINGVOLUME_HPP__
static float s_rSortSquareDistanceTolerance; // how far the view must move to cause a resort.
};
-#endif //__SKYCLOUD_HPP__
\ No newline at end of file
+#endif //__SKYCLOUD_HPP__
return Vec4f::ZERO;
}
-#endif //__SKYCLOUDPARTICLE_HPP__
\ No newline at end of file
+#endif //__SKYCLOUDPARTICLE_HPP__
};
-#endif //__SKYCONTEXT_HPP__
\ No newline at end of file
+#endif //__SKYCONTEXT_HPP__
unsigned int _iNumTextureBytesCheckedIn;
};
-#endif //__SKYDYNAMICTEXTUREMANAGER_HPP__
\ No newline at end of file
+#endif //__SKYDYNAMICTEXTUREMANAGER_HPP__
glPopMatrix();
return SKYRESULT_OK;
-}
\ No newline at end of file
+}
static SkyMaterial *s_pMaterial; // used for rendering the lights during debugging
};
-#endif //__SKYLIGHT_HPP__
\ No newline at end of file
+#endif //__SKYLIGHT_HPP__
GLenum _eTextureEnvMode;
};
-#endif //__SKYMATERIAL_HPP__
\ No newline at end of file
+#endif //__SKYMATERIAL_HPP__
pVerts[1].Set(_min.x, _max.y, _max.z); pVerts[5].Set(_min.x, _max.y, _min.z);
pVerts[2].Set(_min.x, _min.y, _max.z); pVerts[6].Set(_min);
pVerts[3].Set(_max.x, _min.y, _max.z); pVerts[7].Set(_max.x, _min.y, _min.z);
-}
\ No newline at end of file
+}
Vec3f _max;
};
-#endif //__SKYMINMAXBOX_HPP__
\ No newline at end of file
+#endif //__SKYMINMAXBOX_HPP__
std::string _name; // the name of this renderable.
};
-#endif //__SKYRENDERABLE_HPP__
\ No newline at end of file
+#endif //__SKYRENDERABLE_HPP__
mat[15] = 1;
}
-#endif //__SKYRENDERABLEINSTANCE_HPP__
\ No newline at end of file
+#endif //__SKYRENDERABLEINSTANCE_HPP__
_iCulledCount(0)
{
_Initialize();
- cout << "Cloud Instance created" << endl;
+// cout << "Cloud Instance created" << endl;
}
//------------------------------------------------------------------------------
_vecPosition = _pCloud->CopyBoundingVolume()->GetCenter();
}
-#endif //__SKYRENDERABLEINSTANCECLOUD_HPP__
\ No newline at end of file
+#endif //__SKYRENDERABLEINSTANCECLOUD_HPP__
SkyMinMaxBox *_pBV; // Pointer to bounding volume
};
-#endif //__SKYRENDERABLEINSTANCEGENERIC_HPP__
\ No newline at end of file
+#endif //__SKYRENDERABLEINSTANCEGENERIC_HPP__
_pObjectSpaceBV->AddPoint(xform * min);
_pObjectSpaceBV->AddPoint(xform * max);
}
-}
\ No newline at end of file
+}
};
-#endif //__SKYRENDERABLEINSTANCEGROUP_HPP__
\ No newline at end of file
+#endif //__SKYRENDERABLEINSTANCEGROUP_HPP__
* @todo <WRITE EXTENDED SkySceneManager::ActivateMaterial FUNCTION DOCUMENTATION>
*/
SKYRESULT SkySceneManager::ActivateMaterial(int iMaterialID)
-{\rcout << "Activating material\n"; char mm; cin >> mm;
+{
+// cout << "Activating material\n"; char mm; cin >> mm;
MaterialIterator mi = _materials.find(iMaterialID);
if (_materials.end() == mi)
{
* @todo <WRITE EXTENDED SkySceneManager::ShadeClouds FUNCTION DOCUMENTATION>
*/
SKYRESULT SkySceneManager::ShadeClouds()
-{\rcout << "SkySceneManager::ShadeClouds()\n";
+{
+// cout << "SkySceneManager::ShadeClouds()\n";
int i=0;
for (CloudInstanceIterator cii = _cloudInstances.begin(); cii != _cloudInstances.end(); ++cii)
if (SkyLight::SKY_LIGHT_DIRECTIONAL == li->second->GetType())
{
(*cii)->GetCloud()->Illuminate(li->second, *cii, li == _lights.begin());
- printf("Shading Cloud %d of %d with light %d \n", i++, _cloudInstances.size(), *li );
+// printf("Shading Cloud %d of %d with light %d \n", i++, _cloudInstances.size(), *li );
}
}
}
// opaque instances
for (ii = _instances.begin(); ii != _instances.end(); ++ii)
- {\rcout << "Opague instance\n"; char zz; cin >> zz;
+ {
+// cout << "Opague instance\n"; char zz; cin >> zz;
(*ii)->ViewFrustumCull(cam); // First VFC then check if culled, some instances may
// manually set the culled flag, instead of using VFC
if (!(*ii)->IsCulled())
// transparent instances
for (ii = _transparentInstances.begin(); ii != _transparentInstances.end(); ++ii)
- {\rcout << "Transparent instance\n"; char tt; cin >> tt;
+ {
+// cout << "Transparent instance\n"; char tt; cin >> tt;
(*ii)->ViewFrustumCull(cam); // First VFC then check if culled, some instances may
// manually set the culled flag, instead of using VFC
if (!(*ii)->IsCulled())
bool _bReshadeClouds;
};
-#endif //__SKYSCENEMANAGER_HPP__
\ No newline at end of file
+#endif //__SKYSCENEMANAGER_HPP__
// declare the static instance pointer
template<class T> SkySingleton<T>* SkySingleton<T>::s_pInstance = NULL;
-#endif //__SKYSINGLETON_HPP__
\ No newline at end of file
+#endif //__SKYSINGLETON_HPP__
return SKYRESULT_OK;
}
-#endif //__SKYTEXTURE_HPP__
\ No newline at end of file
+#endif //__SKYTEXTURE_HPP__
if (!pImageData)
{
char buffer[256];
- sprintf(buffer, "SkyTextureManager::Clone2DTexture(): Could not load image. %s.\n", filename);
+ sprintf(buffer, "SkyTextureManager::Clone2DTexture(): Could not load image. %s.\n", filename.c_str());
FAIL_RETURN_MSG(SKYRESULT_OK, buffer);
}
glDeleteTextures(texture.iDepth, texture.pSliceIDs);
delete [] texture.pSliceIDs;
}*/
-}
\ No newline at end of file
+}
}
return SKYRESULT_OK;
-}
\ No newline at end of file
+}
+
return GL_NONE;
}
-#endif //__SKYTEXTURESTATE_HPP__
\ No newline at end of file
+#endif //__SKYTEXTURESTATE_HPP__
#define FAIL_RETURN_MSGBOX(p,str) p
#endif
-#endif //__SKYUTIL_HPP__
\ No newline at end of file
+#endif //__SKYUTIL_HPP__
// $Id$
//============================================================================
#include "camera.hpp"
-#include <iostream.h>
+#include <iostream>
//----------------------------------------------------------------------------
// CONSTRUCTOR: defines a default camera system defined as (45 DEG FOV)