cloudy-raytracer/renderer/simplerenderer.h

23 lines
701 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"
#include <renderer/depthoffieldrenderer.h>
2022-10-28 09:31:13 +02:00
class SimpleRenderer : public Renderer {
static void renderThread(const Scene *scene, const Camera *camera, Texture *image, int width, int widthStep,
int widthOffset, int height, int heightStep, int heightOffset, std::atomic<int> *k,
const int 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