mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-18 00:08:20 +01:00
Minor const changes.
Also kicked out "Use constexpr for constants" warning in VS analyser ruleset (we haven't switched to c++11 yet) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6402 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
f9e5ef76bd
commit
5d27ca38a7
@ -211,7 +211,7 @@ IMesh* CAnimatedMeshMD3::getMesh(s32 frame, s32 detailLevel, s32 startFrameLoop,
|
|||||||
|
|
||||||
//! create a Irrlicht MeshBuffer for a MD3 MeshBuffer
|
//! create a Irrlicht MeshBuffer for a MD3 MeshBuffer
|
||||||
IMeshBuffer * CAnimatedMeshMD3::createMeshBuffer(const SMD3MeshBuffer* source,
|
IMeshBuffer * CAnimatedMeshMD3::createMeshBuffer(const SMD3MeshBuffer* source,
|
||||||
io::IFileSystem* fs, video::IVideoDriver * driver)
|
const io::IFileSystem* fs, video::IVideoDriver * driver)
|
||||||
{
|
{
|
||||||
SMeshBufferLightMap * dest = new SMeshBufferLightMap();
|
SMeshBufferLightMap * dest = new SMeshBufferLightMap();
|
||||||
dest->Vertices.set_used(source->MeshHeader.numVertices);
|
dest->Vertices.set_used(source->MeshHeader.numVertices);
|
||||||
|
@ -117,7 +117,7 @@ namespace scene
|
|||||||
SMD3QuaternionTagList TagListIPol;
|
SMD3QuaternionTagList TagListIPol;
|
||||||
|
|
||||||
IMeshBuffer* createMeshBuffer(const SMD3MeshBuffer* source,
|
IMeshBuffer* createMeshBuffer(const SMD3MeshBuffer* source,
|
||||||
io::IFileSystem* fs, video::IVideoDriver* driver);
|
const io::IFileSystem* fs, video::IVideoDriver* driver);
|
||||||
|
|
||||||
void buildVertexArray(u32 frameA, u32 frameB, f32 interpolate,
|
void buildVertexArray(u32 frameA, u32 frameB, f32 interpolate,
|
||||||
const SMD3MeshBuffer* source,
|
const SMD3MeshBuffer* source,
|
||||||
|
@ -498,7 +498,7 @@ core::array<ISkinnedMesh::SJoint*> CB3DMeshWriter::getRootJoints(const ISkinnedM
|
|||||||
return roots;
|
return roots;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 CB3DMeshWriter::getUVlayerCount(IMesh* mesh)
|
u32 CB3DMeshWriter::getUVlayerCount(const IMesh* mesh)
|
||||||
{
|
{
|
||||||
const u32 numBeshBuffers = mesh->getMeshBufferCount();
|
const u32 numBeshBuffers = mesh->getMeshBufferCount();
|
||||||
for (u32 i = 0; i < numBeshBuffers; i++)
|
for (u32 i = 0; i < numBeshBuffers; i++)
|
||||||
|
@ -37,7 +37,7 @@ private:
|
|||||||
u32 getJointChunkSize(const ISkinnedMesh* mesh, ISkinnedMesh::SJoint* joint);
|
u32 getJointChunkSize(const ISkinnedMesh* mesh, ISkinnedMesh::SJoint* joint);
|
||||||
core::array<ISkinnedMesh::SJoint*> getRootJoints(const ISkinnedMesh* mesh);
|
core::array<ISkinnedMesh::SJoint*> getRootJoints(const ISkinnedMesh* mesh);
|
||||||
|
|
||||||
u32 getUVlayerCount(IMesh *mesh);
|
u32 getUVlayerCount(const IMesh *mesh);
|
||||||
ISkinnedMesh* getSkinned (IMesh *mesh);
|
ISkinnedMesh* getSkinned (IMesh *mesh);
|
||||||
|
|
||||||
inline void writeVector2(io::IWriteFile* file, const core::vector2df& vec);
|
inline void writeVector2(io::IWriteFile* file, const core::vector2df& vec);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RuleSet Name="Rules for Irrlicht" Description="Code analysis rules for Irrlicht15.0.vcxproj." ToolsVersion="15.0">
|
<RuleSet Name="Rules for Irrlicht" Description="Code analysis rules for Irrlicht15.0.vcxproj." ToolsVersion="17.0">
|
||||||
<IncludeAll Action="Warning" />
|
<IncludeAll Action="Warning" />
|
||||||
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
|
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
|
||||||
<Rule Id="CA1000" Action="None" />
|
<Rule Id="CA1000" Action="None" />
|
||||||
@ -273,6 +273,7 @@
|
|||||||
<Rule Id="C26495" Action="None" />
|
<Rule Id="C26495" Action="None" />
|
||||||
<Rule Id="C26496" Action="Warning" />
|
<Rule Id="C26496" Action="Warning" />
|
||||||
<Rule Id="C26497" Action="None" />
|
<Rule Id="C26497" Action="None" />
|
||||||
|
<Rule Id="C26814" Action="None" />
|
||||||
<Rule Id="C28204" Action="None" />
|
<Rule Id="C28204" Action="None" />
|
||||||
<Rule Id="C28205" Action="None" />
|
<Rule Id="C28205" Action="None" />
|
||||||
<Rule Id="C28209" Action="None" />
|
<Rule Id="C28209" Action="None" />
|
||||||
|
Loading…
Reference in New Issue
Block a user