mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
3DFileViewer: Port MeshLoader
and its child to the new Core::File
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()`.
This commit is contained in:
parent
83da3c5c3e
commit
b4cea1c72e
4 changed files with 14 additions and 6 deletions
|
@ -18,5 +18,5 @@ public:
|
|||
WavefrontOBJLoader() = default;
|
||||
~WavefrontOBJLoader() override = default;
|
||||
|
||||
ErrorOr<NonnullRefPtr<Mesh>> load(Core::DeprecatedFile& file) override;
|
||||
ErrorOr<NonnullRefPtr<Mesh>> load(String const& filename, NonnullOwnPtr<Core::File> file) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue