mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | New output texture slider
This commit is contained in:
@ -23,6 +23,7 @@ Window::Window(Scene *scene, int width, int height, const char *title, int sleep
|
||||
_fps = 0;
|
||||
_frameCount = 0;
|
||||
_pixelisation = 0;
|
||||
_output_texture = 0;
|
||||
_renderer = new Renderer(scene, this, args);
|
||||
glfwSetErrorCallback(GLFWErrorCallback);
|
||||
if (!glfwInit())
|
||||
@ -200,6 +201,7 @@ void Window::imGuiRender(ShaderProgram &raytracing_program)
|
||||
ImGui::Text("Fps: %d", int(_fps));
|
||||
ImGui::Text("Frame: %d", _frameCount);
|
||||
ImGui::Text("Objects: %lu", _scene->getObjectData().size() + _scene->getTriangleData().size());
|
||||
ImGui::SliderInt("Output texture", &_output_texture, 0, 7);
|
||||
|
||||
ImGui::Spacing();
|
||||
|
||||
@ -354,6 +356,11 @@ bool &Window::getAccumulate(void)
|
||||
return (accumulate);
|
||||
}
|
||||
|
||||
int Window::getOutputTexture(void) const
|
||||
{
|
||||
return (_output_texture);
|
||||
}
|
||||
|
||||
int Window::getPixelisation(void)
|
||||
{
|
||||
bool mouse = glfwGetMouseButton(_window, GLFW_MOUSE_BUTTON_RIGHT) == GLFW_PRESS;
|
||||
|
Reference in New Issue
Block a user