Fixed some warnings
Former-commit-id: d7db2b471afac2d16f44a67e79842f8a7fc2100e
This commit is contained in:
@@ -24,6 +24,8 @@ void NzAbstractRenderQueue::AddSpotLight(const SpotLight& light)
|
||||
|
||||
void NzAbstractRenderQueue::Clear(bool fully)
|
||||
{
|
||||
NazaraUnused(fully);
|
||||
|
||||
directionalLights.clear();
|
||||
pointLights.clear();
|
||||
spotLights.clear();
|
||||
|
||||
@@ -52,10 +52,10 @@ m_mass(0.f)
|
||||
|
||||
NzPhysObject::NzPhysObject(NzPhysObject&& object) :
|
||||
m_matrix(std::move(object.m_matrix)),
|
||||
m_geom(std::move(object.m_geom)),
|
||||
m_forceAccumulator(std::move(object.m_forceAccumulator)),
|
||||
m_torqueAccumulator(std::move(object.m_torqueAccumulator)),
|
||||
m_body(object.m_body),
|
||||
m_geom(std::move(object.m_geom)),
|
||||
m_world(object.m_world),
|
||||
m_gravityFactor(object.m_gravityFactor),
|
||||
m_mass(object.m_mass)
|
||||
|
||||
@@ -41,7 +41,7 @@ bool NzRenderWindow::CopyToImage(NzAbstractImage* image, const NzVector3ui& dstP
|
||||
}
|
||||
#endif
|
||||
|
||||
return CopyToImage(image, NzRectui(NzVector2ui(0U), GetSize()));
|
||||
return CopyToImage(image, NzRectui(NzVector2ui(0U), GetSize()), dstPos);
|
||||
}
|
||||
|
||||
bool NzRenderWindow::CopyToImage(NzAbstractImage* image, const NzRectui& rect, const NzVector3ui& dstPos) const
|
||||
|
||||
@@ -104,12 +104,12 @@ bool NzOBJParser::Parse()
|
||||
std::unordered_map<NzString, std::unordered_map<NzString, MatPair>> meshes;
|
||||
|
||||
unsigned int matIndex = 0;
|
||||
auto GetMaterial = [&meshes, &matIndex] (const NzString& meshName, const NzString& matName) -> FaceVec*
|
||||
auto GetMaterial = [&meshes, &matIndex] (const NzString& mesh, const NzString& material) -> FaceVec*
|
||||
{
|
||||
auto& map = meshes[meshName];
|
||||
auto it = map.find(matName);
|
||||
auto& map = meshes[mesh];
|
||||
auto it = map.find(material);
|
||||
if (it == map.end())
|
||||
it = map.insert(std::make_pair(matName, MatPair(FaceVec(), matIndex++))).first;
|
||||
it = map.insert(std::make_pair(material, MatPair(FaceVec(), matIndex++))).first;
|
||||
|
||||
return &(it->second.first);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user