aboutsummaryrefslogtreecommitdiff
path: root/src/fb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fb')
-rw-r--r--src/fb/chfb.cpp8
-rw-r--r--src/fb/pixfb.cpp7
2 files changed, 3 insertions, 12 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 {
diff --git a/src/fb/pixfb.cpp b/src/fb/pixfb.cpp
index 26bc8f2..54da87f 100644
--- a/src/fb/pixfb.cpp
+++ b/src/fb/pixfb.cpp
@@ -1,12 +1,7 @@
#include "fb/pixfb.h"
-#include <array>
-#include <cmath>
-#include <vector>
#include <cstdint>
#include <algorithm>
#include "math/vector.h"
-#include "o3d/vertex.h"
-#include "o3d/tri_vertex.h"
#include "o3d/vertex_data.h"
using namespace engine::fb;
@@ -40,7 +35,7 @@ void PixelFrameBuffer::clear() {
void PixelFrameBuffer::draw_point(int x, int y, engine::math::Vector3 loc, const engine::o3d::VertexData& vd) {
(void) vd;
- pixels_vector[x + y * w] = face_color(static_cast<int>(loc.x));
+ pixels_vector[x + y * w] = face_color(0);
}
uint32_t PixelFrameBuffer::face_color(int face_ind) const {