group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
TextureData Struct Reference

RGBA pixel data for one texture (decoded from embedded PNG/JPEG). More...

#include <ModelLoader.hpp>

Public Attributes

std::vector< uint8_t > pixels
 Row-major RGBA, 4 bytes per pixel.
 
int width = 0
 
int height = 0
 
bool isSRGB = true
 True for color textures (albedo, emissive); false for data (normal, MR).
 

Detailed Description

RGBA pixel data for one texture (decoded from embedded PNG/JPEG).

Member Data Documentation

◆ height

int TextureData::height = 0

◆ isSRGB

bool TextureData::isSRGB = true

True for color textures (albedo, emissive); false for data (normal, MR).

◆ pixels

std::vector<uint8_t> TextureData::pixels

Row-major RGBA, 4 bytes per pixel.

◆ width

int TextureData::width = 0

The documentation for this struct was generated from the following file: