Commit 0b677245 authored by cutealien's avatar cutealien

Improve const-correctness in meshviewer example.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4952 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 1c9b2014
......@@ -189,7 +189,7 @@ gui::IGUIEditBox* CColorControl::addEditForNumbers(gui::IGUIEnvironment* guiEnv,
}
// Get the color value from the editfields
video::SColor CColorControl::getColorFromEdits()
video::SColor CColorControl::getColorFromEdits() const
{
video::SColor col;
......@@ -281,7 +281,7 @@ void CTypicalColorsControl::setColorsToMaterialColors(const video::SMaterial & m
}
// Update all changed colors in the material
void CTypicalColorsControl::updateMaterialColors(video::SMaterial & material)
void CTypicalColorsControl::updateMaterialColors(video::SMaterial & material) const
{
if ( ControlAmbientColor->isDirty() )
material.AmbientColor = ControlAmbientColor->getColor();
......
......@@ -39,7 +39,7 @@ protected:
irr::gui::IGUIEditBox* addEditForNumbers(irr::gui::IGUIEnvironment* guiEnv, const irr::core::position2d<irr::s32> & pos, const wchar_t *text, irr::s32 id, irr::gui::IGUIElement * parent);
// Get the color value from the editfields
irr::video::SColor getColorFromEdits();
irr::video::SColor getColorFromEdits() const;
// Fill the editfields with the value for the given color
void setEditsFromColor(irr::video::SColor col);
......@@ -72,7 +72,7 @@ public:
void setColorsToMaterialColors(const irr::video::SMaterial & material);
// Update all changed colors in the material
void updateMaterialColors(irr::video::SMaterial & material);
void updateMaterialColors(irr::video::SMaterial & material) const;
// Set the color values to those from the light data
void setColorsToLightDataColors(const irr::video::SLight & lightData);
......@@ -267,9 +267,6 @@ protected:
// Update one frame
bool update();
// Run the application. Our main loop.
void run();
// Close down the application
void quit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment