1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Mark buffer as dirty in mesh helpers

unclear if this fixes any actual bug
This commit is contained in:
sfan5 2024-09-10 20:29:02 +02:00
parent 0fdcba197f
commit cc26b5384c
2 changed files with 11 additions and 6 deletions

View file

@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
* Applies shading to a color based on the surface's
* normal vector.
*/
void applyFacesShading(video::SColor &color, const v3f &normal);
void applyFacesShading(video::SColor &color, const v3f normal);
/*
Create a new cube mesh.
@ -52,12 +52,12 @@ void translateMesh(scene::IMesh *mesh, v3f vec);
/*!
* Sets a constant color for all vertices in the mesh buffer.
*/
void setMeshBufferColor(scene::IMeshBuffer *buf, const video::SColor &color);
void setMeshBufferColor(scene::IMeshBuffer *buf, const video::SColor color);
/*
Set a constant color for all vertices in the mesh
*/
void setMeshColor(scene::IMesh *mesh, const video::SColor &color);
void setMeshColor(scene::IMesh *mesh, const video::SColor color);
/*!
* Overwrites the color of a mesh buffer.