Fix type conversion warnings
This commit is contained in:
@@ -88,7 +88,7 @@ public:
|
|||||||
KRVBOData(const KRVBOData& o) = delete;
|
KRVBOData(const KRVBOData& o) = delete;
|
||||||
KRVBOData& operator=(const KRVBOData& o) = delete;
|
KRVBOData& operator=(const KRVBOData& o) = delete;
|
||||||
|
|
||||||
long getSize() { return m_size; }
|
long getSize() { return (long)m_size; }
|
||||||
|
|
||||||
void resetPoolExpiry(float lodCoverage);
|
void resetPoolExpiry(float lodCoverage);
|
||||||
long getLastFrameUsed() { return m_last_frame_used; }
|
long getLastFrameUsed() { return m_last_frame_used; }
|
||||||
|
|||||||
@@ -565,7 +565,7 @@ void KRScene::addDefaultLights()
|
|||||||
{
|
{
|
||||||
KRDirectionalLight *light1 = new KRDirectionalLight(*this, "default_light1");
|
KRDirectionalLight *light1 = new KRDirectionalLight(*this, "default_light1");
|
||||||
|
|
||||||
light1->setLocalRotation((Quaternion::Create(Vector3::Create(0.0f, M_PI * 0.10f, 0.0f)) * Quaternion::Create(Vector3::Create(0.0f, 0.0f, -M_PI * 0.15f))).eulerXYZ());
|
light1->setLocalRotation((Quaternion::Create(Vector3::Create(0.0f, (float)M_PI * 0.10f, 0.0f)) * Quaternion::Create(Vector3::Create(0.0f, 0.0f, (float)-M_PI * 0.15f))).eulerXYZ());
|
||||||
m_pRootNode->addChild(light1);
|
m_pRootNode->addChild(light1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user