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:
@ -10,8 +10,8 @@ namespace irr
|
||||
{
|
||||
namespace video
|
||||
{
|
||||
class IMaterialRendererServices;
|
||||
class SMaterial;
|
||||
class IMaterialRendererServices;
|
||||
class SMaterial;
|
||||
|
||||
//! Interface making it possible to set constants for gpu programs every frame.
|
||||
/** Implement this interface in an own class and pass a pointer to it to one of
|
||||
@ -20,7 +20,6 @@ OnSetConstants method will be called every frame now. */
|
||||
class IShaderConstantSetCallBack : public virtual IReferenceCounted
|
||||
{
|
||||
public:
|
||||
|
||||
//! Called to let the callBack know the used material (optional method)
|
||||
/**
|
||||
\code
|
||||
@ -40,7 +39,7 @@ public:
|
||||
}
|
||||
\endcode
|
||||
*/
|
||||
virtual void OnSetMaterial(const SMaterial& material) { }
|
||||
virtual void OnSetMaterial(const SMaterial &material) {}
|
||||
|
||||
//! Called by the engine when the vertex and/or pixel shader constants for an material renderer should be set.
|
||||
/**
|
||||
@ -73,9 +72,8 @@ public:
|
||||
\param services: Pointer to an interface providing methods to set the constants for the shader.
|
||||
\param userData: Userdata int which can be specified when creating the shader.
|
||||
*/
|
||||
virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData) = 0;
|
||||
virtual void OnSetConstants(IMaterialRendererServices *services, s32 userData) = 0;
|
||||
};
|
||||
|
||||
|
||||
} // end namespace video
|
||||
} // end namespace irr
|
||||
|
Reference in New Issue
Block a user