mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
b4cea1c72e
As it was using the `lines()` method of `Core::DeprecatedFile`, this patch also introduce the usage of `BufferedFile` to take advantage of its API: `can_read_line()` and `read_line()`.
23 lines
522 B
C++
23 lines
522 B
C++
/*
|
|
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/RefCounted.h>
|
|
#include <AK/RefPtr.h>
|
|
|
|
#include "Mesh.h"
|
|
#include "MeshLoader.h"
|
|
|
|
class WavefrontOBJLoader final : public MeshLoader {
|
|
public:
|
|
WavefrontOBJLoader() = default;
|
|
~WavefrontOBJLoader() override = default;
|
|
|
|
ErrorOr<NonnullRefPtr<Mesh>> load(String const& filename, NonnullOwnPtr<Core::File> file) override;
|
|
};
|