Esempio n. 1
0
	void Layer::SetWindowDimensions(int width, int height)
	{
		windowWidth = width;
		windowHeight = height;
		resizeBackground(width, height);
		resetFramebuffer();
	}
Esempio n. 2
0
bool RayCastRenderer::reset_impl(int w, int h)
{
  F();

  if ((m_data_width <= 0) || (m_data_height <= 0) || (m_data_depth <= 0))
  {
    ERRORM("RayCastRenderer: grid size is not set");
    return false;
  }

  if ((m_cell_starts_buf.get() == nullptr) || (m_cell_ends_buf.get() == nullptr))
  {
    ERRORM("RayCastRenderer: cell_starts or cell_ends buffer is not set");
    return false;
  }

  return resetDataTexture() &&
      resetBuffers() &&
      resetFramebuffer(w, h) &&
      resetTransferFunctionTexture();
}
Esempio n. 3
0
bool RayCastRenderer::resize_impl(int w, int h)
{
  F();
  return resetFramebuffer(w, h);
}
Esempio n. 4
0
	void Layer::SetWindowHeight(int height)
	{
		windowHeight = height;
		resizeBackground(0, height);
		resetFramebuffer();
	}
Esempio n. 5
0
	void Layer::SetWindowWidth(int width)
	{
		windowWidth = width;
		resizeBackground(width, 0);
		resetFramebuffer();
	}
Esempio n. 6
0
	void Layer::ClearLayer()
	{
		drawablesStack.clear();
		resetFramebuffer();
	}