mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Reformat the code, using:
find -type f | # list all regular files grep -E '\.(h|cpp|mm)$' | # filter for source files grep -v '/mt_' | # filter out generated files grep -v '/vendor/' | # and vendored GL grep -v '/test/image_loader_test.cpp' | # and this file (has giant literals arrays) xargs -n 1 -P $(nproc) clang-format -i # reformat everything Co-authored-by: numzero <numzer0@yandex.ru>
This commit is contained in:
@ -13,30 +13,32 @@ namespace irr
|
||||
namespace scene
|
||||
{
|
||||
|
||||
class IMesh;
|
||||
class IMeshBuffer;
|
||||
struct SMesh;
|
||||
class IMesh;
|
||||
class IMeshBuffer;
|
||||
struct SMesh;
|
||||
|
||||
//! Interface for vertex manipulators.
|
||||
/** You should derive your manipulator from this class if it shall be called for every vertex, getting as parameter just the vertex.
|
||||
*/
|
||||
struct IVertexManipulator
|
||||
{
|
||||
};
|
||||
//! Interface for vertex manipulators.
|
||||
/** You should derive your manipulator from this class if it shall be called for every vertex, getting as parameter just the vertex.
|
||||
*/
|
||||
struct IVertexManipulator
|
||||
{
|
||||
};
|
||||
|
||||
//! Vertex manipulator which scales the position of the vertex
|
||||
class SVertexPositionScaleManipulator : public IVertexManipulator
|
||||
//! Vertex manipulator which scales the position of the vertex
|
||||
class SVertexPositionScaleManipulator : public IVertexManipulator
|
||||
{
|
||||
public:
|
||||
SVertexPositionScaleManipulator(const core::vector3df &factor) :
|
||||
Factor(factor) {}
|
||||
template <typename VType>
|
||||
void operator()(VType &vertex) const
|
||||
{
|
||||
public:
|
||||
SVertexPositionScaleManipulator(const core::vector3df& factor) : Factor(factor) {}
|
||||
template <typename VType>
|
||||
void operator()(VType& vertex) const
|
||||
{
|
||||
vertex.Pos *= Factor;
|
||||
}
|
||||
private:
|
||||
core::vector3df Factor;
|
||||
};
|
||||
vertex.Pos *= Factor;
|
||||
}
|
||||
|
||||
private:
|
||||
core::vector3df Factor;
|
||||
};
|
||||
|
||||
} // end namespace scene
|
||||
} // end namespace irr
|
||||
|
Reference in New Issue
Block a user