aboutsummaryrefslogtreecommitdiff
path: root/src/fb/chfb.cpp
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-12-09 06:33:39 +0100
committervimene <vincent.menegaux@gmail.com>2023-12-09 06:33:39 +0100
commitbf39fef7eed69e6d5ecfa272607cbf0fcc53b9a6 (patch)
tree81ac781a634f7618809d6322e1a2d8b544cbc798 /src/fb/chfb.cpp
parent19c3e2b83c3c8b58576050b448f2f35d0687e717 (diff)
downloadengine-bf39fef7eed69e6d5ecfa272607cbf0fcc53b9a6.tar.gz
fixed perspective calculations
Diffstat (limited to 'src/fb/chfb.cpp')
-rw-r--r--src/fb/chfb.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fb/chfb.cpp b/src/fb/chfb.cpp
index b5c0ae0..e3c0cf1 100644
--- a/src/fb/chfb.cpp
+++ b/src/fb/chfb.cpp
@@ -1,10 +1,6 @@
#include "fb/chfb.h"
-#include <array>
-#include <cmath>
-#include <vector>
+#include <algorithm>
#include "math/vector.h"
-#include "o3d/vertex.h"
-#include "o3d/tri_vertex.h"
#include "o3d/vertex_data.h"
using namespace engine::fb;
@@ -38,7 +34,7 @@ void CharacterFrameBuffer::clear() {
void CharacterFrameBuffer::draw_point(int x, int y, engine::math::Vector3 loc, const engine::o3d::VertexData& vd) {
(void) vd;
- chars_vector[x + y * w] = face_char(static_cast<int>(loc.x));
+ chars_vector[x + y * w] = face_char(0);
}
char CharacterFrameBuffer::face_char(int face_ind) const {