Skip to content

Commit

Permalink
Rename static methods
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Dec 19, 2016
1 parent 4d5e5ca commit 5a61781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions radiant/selection/RadiantSelectionSystem.cpp
Expand Up @@ -185,7 +185,7 @@ bool RadiantSelectionSystem::nothingSelected() const

void RadiantSelectionSystem::pivotChanged()
{
const_cast<RadiantSelectionSystem&>(*this)._pivot.setNeedsRecalculation(true);
_pivot.setNeedsRecalculation(true);
SceneChangeNotify();
}

Expand Down Expand Up @@ -849,7 +849,7 @@ const Matrix4& RadiantSelectionSystem::getPivot2World()
return _pivot.getMatrix4();
}

void RadiantSelectionSystem::constructStatic()
void RadiantSelectionSystem::captureShaders()
{
_state = GlobalRenderSystem().capture("$POINT");
TranslateManipulator::_stateWire = GlobalRenderSystem().capture("$WIRE_OVERLAY");
Expand All @@ -858,7 +858,7 @@ void RadiantSelectionSystem::constructStatic()
RotateManipulator::_pivotPointShader = GlobalRenderSystem().capture("$POINT");
}

void RadiantSelectionSystem::destroyStatic()
void RadiantSelectionSystem::releaseShaders()
{
_state.reset();
TranslateManipulator::_stateWire.reset();
Expand Down Expand Up @@ -942,7 +942,7 @@ void RadiantSelectionSystem::initialiseModule(const ApplicationContext& ctx)
{
rMessage() << getName() << "::initialiseModule called." << std::endl;

constructStatic();
captureShaders();

_pivot.initialise();

Expand Down Expand Up @@ -1032,7 +1032,7 @@ void RadiantSelectionSystem::shutdownModule()

GlobalRenderSystem().detachRenderable(*this);

destroyStatic();
releaseShaders();
}

void RadiantSelectionSystem::checkComponentModeSelectionMode(const ISelectable& selectable)
Expand Down
4 changes: 2 additions & 2 deletions radiant/selection/RadiantSelectionSystem.h
Expand Up @@ -163,8 +163,8 @@ class RadiantSelectionSystem :

const Matrix4& getPivot2World() override;

static void constructStatic();
static void destroyStatic();
static void captureShaders();
static void releaseShaders();

// RegisterableModule implementation
virtual const std::string& getName() const override;
Expand Down

0 comments on commit 5a61781

Please sign in to comment.