mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +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:
|
|||
MeshLoader() = default;
|
||||
virtual ~MeshLoader() = default;
|
||||
|
||||
virtual ErrorOr<NonnullRefPtr<Mesh>> load(Core::DeprecatedFile& file) = 0;
|
||||
virtual ErrorOr<NonnullRefPtr<Mesh>> load(String const& filename, NonnullOwnPtr<Core::File> file) = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue