void Layer::SetWindowDimensions(int width, int height) { windowWidth = width; windowHeight = height; resizeBackground(width, height); resetFramebuffer(); }
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(); }
bool RayCastRenderer::resize_impl(int w, int h) { F(); return resetFramebuffer(w, h); }
void Layer::SetWindowHeight(int height) { windowHeight = height; resizeBackground(0, height); resetFramebuffer(); }
void Layer::SetWindowWidth(int width) { windowWidth = width; resizeBackground(width, 0); resetFramebuffer(); }
void Layer::ClearLayer() { drawablesStack.clear(); resetFramebuffer(); }