Nebula
Loading...
Searching...
No Matches
streamtexturesaver.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
15#include "io/uri.h"
16#include "io/stream.h"
17#include "imagefileformat.h"
18
19namespace CoreGraphics
20{
21
22//------------------------------------------------------------------------------
26bool
27SaveTexture(const Resources::ResourceId& id, const IO::URI& path, IndexT mip, CoreGraphics::ImageFileFormat::Code code);
28
29//------------------------------------------------------------------------------
32bool
33SaveTexture(const Resources::ResourceId& id, const Ptr<IO::Stream>& stream, IndexT mip, CoreGraphics::ImageFileFormat::Code code);
34
35} // namespace CoreGraphics
36//------------------------------------------------------------------------------
37
38
Code
image file formats
Definition imagefileformat.h:24
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition uri.h:67
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
bool SaveTexture(const Resources::ResourceId &id, const IO::URI &path, IndexT mip, CoreGraphics::ImageFileFormat::Code code)
Save texture to path with wanted image format, and select mip map.
int IndexT
Definition types.h:48