cloudy-raytracer/renderer/simplerenderer.h

22 lines
652 B
C
Raw Normal View History

2022-10-28 09:31:13 +02:00
#ifndef SIMPLERENDERER_H
#define SIMPLERENDERER_H
2022-12-10 18:25:29 +01:00
#include <atomic>
2022-10-28 09:31:13 +02:00
#include "renderer/renderer.h"
class SimpleRenderer : public Renderer {
2022-12-10 18:25:29 +01:00
static void renderThread(const Scene *scene, Camera const *camera, Texture *image, int width, int widthStep,
int widthOffset, int height, int heightStep, int heightOffset, std::atomic<int> *k,
int const stepSize);
2022-10-28 09:31:13 +02:00
public:
// Constructor / Destructor
SimpleRenderer() = default;
~SimpleRenderer() override = default;
// Render functions
Texture renderImage(Scene const &scene, Camera const &camera, int width, int height) override;
};
#endif