Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::ImageTools Namespace Reference

Namespaces

namespace  anonymous_namespace{ImageTools.cpp}
 
namespace  nvttHelpers
 

Classes

struct  ImageData
 
struct  ImageLayer
 
struct  ImageMip
 
struct  ImportOptions
 
struct  LayerData
 

Enumerations

enum class  MipMapFilter : U8 { BOX , TRIANGLE , KAISER , COUNT }
 
enum class  ImageOutputFormat : U8 {
  BC1 , BC1a , BC2 , BC3 ,
  BC4 , BC5 , BC6 , BC7 ,
  AUTO , COUNT
}
 
enum class  SaveImageFormat : U8 {
  PNG , BMP , TGA , JPG ,
  COUNT
}
 

Functions

void OnStartup (bool upperLeftOrigin)
 
void OnShutdown ()
 
bool UseUpperLeftOrigin () noexcept
 
 FWD_DECLARE_MANAGED_STRUCT (LayerData)
 
bool SaveImage (const ResourcePath &filename, U16 width, U16 height, U8 numberOfComponents, U8 bytesPerPixel, const bool sourceIsBGR, const Byte *imageData, SaveImageFormat format)
 Save an image to file of the desired format. Only R/RG/RGB/RGBA 8 bits per pixel data is supported as input data.
 
bool SaveImageHDR (const ResourcePath &filename, U16 width, U16 height, U8 numberOfComponents, U8 bytesPerPixel, const bool sourceIsBGR, const F32 *imageData)
 Save an HDR image to file of the desired format.
 

Variables

constexpr bool g_KeepDevILDDSCompatibility = true
 

Enumeration Type Documentation

◆ ImageOutputFormat

Enumerator
BC1 
BC1a 
BC2 
BC3 
BC4 
BC5 
BC6 
BC7 
AUTO 
COUNT 

Definition at line 51 of file ImageToolsFwd.h.

◆ MipMapFilter

enum class Divide::ImageTools::MipMapFilter : U8
strong
Enumerator
BOX 
TRIANGLE 
KAISER 
COUNT 

Definition at line 44 of file ImageToolsFwd.h.

◆ SaveImageFormat

Enumerator
PNG 
BMP 
TGA 
JPG 
COUNT 

Definition at line 80 of file ImageToolsFwd.h.

Function Documentation

◆ FWD_DECLARE_MANAGED_STRUCT()

Divide::ImageTools::FWD_DECLARE_MANAGED_STRUCT ( LayerData  )

◆ OnShutdown()

void Divide::ImageTools::OnShutdown ( )

Definition at line 198 of file ImageTools.cpp.

◆ OnStartup()

void Divide::ImageTools::OnStartup ( bool  upperLeftOrigin)

Definition at line 186 of file ImageTools.cpp.

◆ SaveImage()

bool Divide::ImageTools::SaveImage ( const ResourcePath filename,
U16  width,
U16  height,
U8  numberOfComponents,
U8  bytesPerPixel,
const bool  sourceIsBGR,
const Byte imageData,
SaveImageFormat  format 
)

Save an image to file of the desired format. Only R/RG/RGB/RGBA 8 bits per pixel data is supported as input data.

Definition at line 1416 of file ImageTools.cpp.

◆ SaveImageHDR()

bool Divide::ImageTools::SaveImageHDR ( const ResourcePath filename,
U16  width,
U16  height,
U8  numberOfComponents,
U8  bytesPerPixel,
const bool  sourceIsBGR,
const F32 imageData 
)

Save an HDR image to file of the desired format.

Definition at line 1451 of file ImageTools.cpp.

◆ UseUpperLeftOrigin()

bool Divide::ImageTools::UseUpperLeftOrigin ( )
noexcept

Definition at line 202 of file ImageTools.cpp.

Variable Documentation

◆ g_KeepDevILDDSCompatibility

constexpr bool Divide::ImageTools::g_KeepDevILDDSCompatibility = true
constexpr

Definition at line 28 of file ImageTools.cpp.