Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::Textures::ExrHeader Struct Reference

Wrapper for EXR file header information with owned data. More...

#include <ExrLoader.h>

Collaboration diagram for Engine::Assets::Textures::ExrHeader:

Public Member Functions

 ExrHeader ()=default
 ExrHeader (EXRHeader header)
 Construct from native EXRHeader, performing deep copy.

Public Attributes

std::string name
 Image name/identifier.
int num_channels = 0
 Number of color channels.
int compression_type = 0
 Compression type used.
std::vector< ExrChannelInfochannels
 Channel information for each channel.
bool valid = false
 Whether header was successfully loaded.

Detailed Description

Wrapper for EXR file header information with owned data.

Date

This struct deep-copies header data from the native EXRHeader structure, allowing safe use with ECS systems like flecs. The original EXRHeader can be freed after creating this wrapper.

Author
Konstantin Passig

Definition at line 28 of file ExrLoader.h.

Constructor & Destructor Documentation

◆ ExrHeader() [1/2]

Engine::Assets::Textures::ExrHeader::ExrHeader ( )
default

◆ ExrHeader() [2/2]

Engine::Assets::Textures::ExrHeader::ExrHeader ( EXRHeader header)
explicit

Construct from native EXRHeader, performing deep copy.

Parameters
headerThe native EXRHeader to copy from

Member Data Documentation

◆ channels

std::vector<ExrChannelInfo> Engine::Assets::Textures::ExrHeader::channels

Channel information for each channel.

Definition at line 41 of file ExrLoader.h.

◆ compression_type

int Engine::Assets::Textures::ExrHeader::compression_type = 0

Compression type used.

Definition at line 40 of file ExrLoader.h.

◆ name

std::string Engine::Assets::Textures::ExrHeader::name

Image name/identifier.

Definition at line 38 of file ExrLoader.h.

◆ num_channels

int Engine::Assets::Textures::ExrHeader::num_channels = 0

Number of color channels.

Definition at line 39 of file ExrLoader.h.

◆ valid

bool Engine::Assets::Textures::ExrHeader::valid = false

Whether header was successfully loaded.

Definition at line 43 of file ExrLoader.h.


The documentation for this struct was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Texture/ExrLoader.h