diff options
author | vimene <vincent.menegaux@gmail.com> | 2023-11-19 23:25:06 +0100 |
---|---|---|
committer | vimene <vincent.menegaux@gmail.com> | 2023-11-19 23:25:06 +0100 |
commit | c5697e42a76142c339806e1c0bc7ed15e3ace548 (patch) | |
tree | a8201bde9a3a1c4e6cf956348e5d3f7fc873221f /chfb.h | |
parent | 5b8a65b15a37d9c1c97fb39db93f1b40db628d70 (diff) | |
download | engine-c5697e42a76142c339806e1c0bc7ed15e3ace548.tar.gz |
started switching to autotools
Diffstat (limited to 'chfb.h')
-rw-r--r-- | chfb.h | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -1,28 +0,0 @@ -#ifndef CHFB_H -#define CHFB_H - -#include <vector> -#include "math_vector.h" -#include "tri_vertex.h" - -class CharacterFrameBuffer { - public: - CharacterFrameBuffer(unsigned int w, unsigned int h); - void resize(unsigned int w, unsigned int h); - unsigned int width() const; - unsigned int height() const; - const char* chars() const; - void clear(); - void draw_triangle(TriangleVertex4 triangle); - - private: - unsigned int w, h; - std::vector<char> chars_vector; - std::vector<float> depth_buf; - int face_ind; - - void _draw_cropped_triangle(TriangleVertex3 triangle); - char face_char() const; -}; - -#endif // CHFB_H |