aboutsummaryrefslogtreecommitdiff
path: root/pixfb.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-11-19 23:25:06 +0100
committervimene <vincent.menegaux@gmail.com>2023-11-19 23:25:06 +0100
commitc5697e42a76142c339806e1c0bc7ed15e3ace548 (patch)
treea8201bde9a3a1c4e6cf956348e5d3f7fc873221f /pixfb.h
parent5b8a65b15a37d9c1c97fb39db93f1b40db628d70 (diff)
downloadengine-c5697e42a76142c339806e1c0bc7ed15e3ace548.tar.gz
started switching to autotools
Diffstat (limited to 'pixfb.h')
-rw-r--r--pixfb.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/pixfb.h b/pixfb.h
deleted file mode 100644
index c54b5fb..0000000
--- a/pixfb.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef PIXFB_H
-#define PIXFB_H
-
-#include <vector>
-#include <cstdint>
-#include "math_vector.h"
-#include "tri_vertex.h"
-
-class PixelFrameBuffer {
- public:
- PixelFrameBuffer(unsigned int w, unsigned int h);
- void resize(unsigned int w, unsigned int h);
- unsigned int width() const;
- unsigned int height() const;
- const uint32_t* pixels() const;
- void clear();
- void draw_triangle(TriangleVertex4 triangle);
-
- private:
- unsigned int w, h;
- std::vector<uint32_t> pixels_vector;
- std::vector<float> depth_buf;
- int face_ind;
-
- void _draw_cropped_triangle(TriangleVertex3 triangle);
- uint32_t face_color() const;
-};
-
-#endif // PIXFB_H