2021-05-02 17:19:50 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
|
2022-02-10 22:28:48 +03:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-05-02 17:19:50 +03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/RefCounted.h>
|
|
|
|
#include <AK/RefPtr.h>
|
|
|
|
|
|
|
|
#include "Mesh.h"
|
|
|
|
#include "MeshLoader.h"
|
|
|
|
|
2021-05-20 22:50:53 +03:00
|
|
|
class WavefrontOBJLoader final : public MeshLoader {
|
2021-05-02 17:19:50 +03:00
|
|
|
public:
|
2022-02-10 22:28:48 +03:00
|
|
|
WavefrontOBJLoader() = default;
|
|
|
|
~WavefrontOBJLoader() override = default;
|
2021-05-02 17:19:50 +03:00
|
|
|
|
2024-01-23 19:31:36 +03:00
|
|
|
ErrorOr<NonnullRefPtr<Mesh>> load(ByteString const& filename, NonnullOwnPtr<Core::File> file) override;
|
2021-05-02 17:19:50 +03:00
|
|
|
};
|