Commit 0e98ce82 authored by Ken Martin's avatar Ken Martin
Browse files

added start and end render methods

parent 1895d103
......@@ -164,6 +164,11 @@ int vlGlrRenderer::UpdateLights ()
// Concrete gl render method.
void vlGlrRenderer::Render(void)
{
if (this->StartRenderMethod)
{
(*this->StartRenderMethod)(this->StartRenderMethodArg);
}
// standard render method
this->ClearLights();
this->DoCameras();
......@@ -177,6 +182,11 @@ void vlGlrRenderer::Render(void)
{
this->VolumeRenderer->Render((vlRenderer *)this);
}
if (this->EndRenderMethod)
{
(*this->EndRenderMethod)(this->EndRenderMethodArg);
}
}
// Description:
......
......@@ -147,6 +147,11 @@ void vlSbrRenderer::Render(void)
{
vlSbrRenderWindow *temp;
if (this->StartRenderMethod)
{
(*this->StartRenderMethod)(this->StartRenderMethodArg);
}
// update our Fd first
temp = (vlSbrRenderWindow *)this->GetRenderWindow();
this->Fd = temp->GetFd();
......@@ -161,6 +166,11 @@ void vlSbrRenderer::Render(void)
{
this->VolumeRenderer->Render((vlRenderer *)this);
}
if (this->EndRenderMethod)
{
(*this->EndRenderMethod)(this->EndRenderMethodArg);
}
}
// Description:
......
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