mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
GL: fix and clean up some code
This commit is contained in:
parent
36edc3f161
commit
1fb7202028
17 changed files with 54 additions and 177 deletions
|
@ -41,7 +41,7 @@ CSceneManager::CSceneManager(video::IVideoDriver *driver,
|
|||
ISceneNode(0, 0),
|
||||
Driver(driver),
|
||||
CursorControl(cursorControl),
|
||||
ActiveCamera(0), ShadowColor(150, 0, 0, 0), AmbientLight(0, 0, 0, 0), Parameters(0),
|
||||
ActiveCamera(0), Parameters(0),
|
||||
MeshCache(cache), CurrentRenderPass(ESNRP_NONE)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
|
@ -445,9 +445,6 @@ u32 CSceneManager::registerNodeForRendering(ISceneNode *node, E_SCENE_NODE_RENDE
|
|||
taken = 1;
|
||||
}
|
||||
|
||||
// as of yet unused
|
||||
case ESNRP_LIGHT:
|
||||
case ESNRP_SHADOW:
|
||||
case ESNRP_NONE: // ignore this one
|
||||
break;
|
||||
}
|
||||
|
@ -775,18 +772,6 @@ ISceneManager *CSceneManager::createNewSceneManager(bool cloneContent)
|
|||
return manager;
|
||||
}
|
||||
|
||||
//! Sets ambient color of the scene
|
||||
void CSceneManager::setAmbientLight(const video::SColorf &ambientColor)
|
||||
{
|
||||
AmbientLight = ambientColor;
|
||||
}
|
||||
|
||||
//! Returns ambient color of the scene
|
||||
const video::SColorf &CSceneManager::getAmbientLight() const
|
||||
{
|
||||
return AmbientLight;
|
||||
}
|
||||
|
||||
//! Get a skinned mesh, which is not available as header-only code
|
||||
ISkinnedMesh *CSceneManager::createSkinnedMesh()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue