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

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

#include <ExrLoader.h>

Collaboration diagram for EngineCore::ExrHeader:

Public Member Functions

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

Public Attributes

std::string name
int num_channels = 0
 < Image name/identifier std::string name;
int compression_type = 0
 < Number of color channels int num_channels = 0;
std::vector< ExrChannelInfochannels
 < Compression type used int compression_type = 0;
bool valid = false
 < Channel information for each channel std::vector<ExrChannelInfo> channels;

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 42 of file ExrLoader.h.

Constructor & Destructor Documentation

◆ ExrHeader() [1/2]

EngineCore::ExrHeader::ExrHeader ( )
default

◆ ExrHeader() [2/2]

EngineCore::ExrHeader::ExrHeader ( EXRHeader header)
explicit

Construct from native EXRHeader, performing deep copy.

Construct ExrHeader from native EXRHeader.

Parameters
headerThe native EXRHeader to copy from

Performs a deep copy of all channel information from the native EXRHeader. This allows the original EXRHeader to be freed safely after construction.

Definition at line 15 of file ExrLoader.cpp.

References channels, compression_type, EngineCore::ExrChannelInfo::name, name, num_channels, EngineCore::ExrChannelInfo::p_linear, EngineCore::ExrChannelInfo::pixel_type, valid, EngineCore::ExrChannelInfo::x_sampling, and EngineCore::ExrChannelInfo::y_sampling.

Member Data Documentation

◆ channels

std::vector<ExrChannelInfo> EngineCore::ExrHeader::channels

< Compression type used int compression_type = 0;

int compression_type = 0; *

Definition at line 61 of file ExrLoader.h.

Referenced by ExrHeader().

◆ compression_type

int EngineCore::ExrHeader::compression_type = 0

< Number of color channels int num_channels = 0;

int num_channels = 0; *

Definition at line 58 of file ExrLoader.h.

Referenced by ExrHeader().

◆ name

std::string EngineCore::ExrHeader::name

Definition at line 52 of file ExrLoader.h.

Referenced by ExrHeader().

◆ num_channels

int EngineCore::ExrHeader::num_channels = 0

< Image name/identifier std::string name;

std::string name; *

Definition at line 55 of file ExrLoader.h.

Referenced by ExrHeader().

◆ valid

bool EngineCore::ExrHeader::valid = false

< Channel information for each channel std::vector<ExrChannelInfo> channels;

std::vector<ExrChannelInfo> channels; *

Definition at line 65 of file ExrLoader.h.

Referenced by ExrHeader().


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