From 1e19d706fc5f5e3490d4ce204a6c5ca56c6614f8 Mon Sep 17 00:00:00 2001 From: vimene Date: Tue, 31 Dec 2024 08:38:30 +0100 Subject: 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. --- src/fb/chfb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fb/chfb.cpp') 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; -- cgit v1.2.3