aboutsummaryrefslogtreecommitdiff
path: root/src/fb
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2024-12-31 08:38:30 +0100
committervimene <vincent.menegaux@gmail.com>2024-12-31 08:38:30 +0100
commit1e19d706fc5f5e3490d4ce204a6c5ca56c6614f8 (patch)
tree609ad177b9368ed4ae62f2b3e4ae60f6d154c89c /src/fb
parentcc6fb8c33637566a7b116d46440e6063f016deea (diff)
downloadengine-1e19d706fc5f5e3490d4ce204a6c5ca56c6614f8.tar.gz
fixed parse_object by implementing custom parsers
std::setlocale also change the parsing of floats with std::stof. It is also more future proof to use a parser specific to Wavefront .obj files.
Diffstat (limited to 'src/fb')
-rw-r--r--src/fb/chfb.cpp2
-rw-r--r--src/fb/chfb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fb/chfb.cpp b/src/fb/chfb.cpp
index cfd7635..98c9f23 100644
--- a/src/fb/chfb.cpp
+++ b/src/fb/chfb.cpp
@@ -21,7 +21,7 @@ void CharacterFrameBuffer::clear() {
std::fill(chars_vector.begin(), chars_vector.end(), ' ');
}
-void CharacterFrameBuffer::draw_point(int x, int y, const Vector3& loc, const VertexData& vd, const engine::math::Vector3& normal) {
+void CharacterFrameBuffer::draw_point(int x, int y, const Vector3& loc, const VertexData& vd, const Vector3& normal) {
(void) x;
(void) y;
(void) loc;
diff --git a/src/fb/chfb.h b/src/fb/chfb.h
index 7c786fc..a866fef 100644
--- a/src/fb/chfb.h
+++ b/src/fb/chfb.h
@@ -14,7 +14,7 @@ class CharacterFrameBuffer {
CharacterFrameBuffer(unsigned int w, unsigned int h);
void resize(unsigned int w, unsigned int h);
void clear();
- void draw_point(int x, int y, const engine::math::Vector3& loc, const engine::o3d::VertexData& vd, const engine::math::Vector3& normal);
+ void draw_point(int x, int y, const Vector3& loc, const VertexData& vd, const Vector3& normal);
constexpr unsigned int width() const & {
return w;