GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource Namespace Reference

Classes

struct  ArrayAtlasPackerOptions
 Configuration options for an ArrayAtlasPacker. More...
class  ArrayAtlasPacker
 Axis-aligned rectangle packer for expandable square texture atlases with array layers. More...
struct  AtlasPackerOptions
 Configuration options for an AtlasPacker. More...
class  AtlasPacker
 Axis-aligned rectangle packer for expandable square texture atlases. More...
struct  Error
 Exception type for domain-specific errors originating from the grem::resource module. More...
struct  ImageSubresource
 Subresource of an image. More...
class  ImageView
 Read-only non-owning view over a 2D image. More...
class  ImageReference
 Non-owning view over a 2D image. More...
struct  ImageSavePNGOptions
 Options for saving an image in PNG format. More...
struct  ImageSaveJPEGOptions
 Options for saving an image in JPEG format. More...
struct  ImageSaveHDROptions
 Options for saving an image in RGBE/Radiance HDR format. More...
struct  ImageSaveKTX2Options
 Options for saving an image in Khronos TeXture, version 2.0 format. More...
struct  ImageSaveOptions
 Options for saving an image in any format. More...
struct  ImageOptions
 Options for loading an image. More...
class  Image
 Container for a 2D image. More...
struct  ModelOptions
 Configuration options for a Model. More...
struct  Model
 In-memory representation of a 3D model with all of its vertex data directly accessible. More...

Enumerations

enum class  ImageFileType : uint8_t {
  UNKNOWN , JPEG , PNG , HDR ,
  KTX2
}
 File type of an Image. More...
enum class  ImageType : uint8_t {
  EMPTY , IMAGE_2D , IMAGE_2D_ARRAY , IMAGE_CUBE ,
  IMAGE_CUBE_ARRAY
}
 Type of an Image. More...
enum class  ImageFormat : uint8_t {
  UNKNOWN , R8_UINT , R16_FLOAT , R32_FLOAT ,
  R8G8_UINT , R16G16_FLOAT , R32G32_FLOAT , R8G8B8_UINT ,
  R16G16B16_FLOAT , R32G32B32_FLOAT , R8G8B8A8_UINT , R16G16B16A16_FLOAT ,
  R32G32B32A32_FLOAT , R5G6B5_UINT_PACK16 , A1R5G5B5_UINT_PACK16 , B10G11R11_UFLOAT_PACK32 ,
  A2B10G10R10_UINT_PACK32 , ASTC_4x4_RGBA_UINT_BLOCK , BC1_RGB_UINT_BLOCK , BC3_RGBA_UINT_BLOCK ,
  BC4_R_UINT_BLOCK , BC5_RG_UINT_BLOCK , BC6H_RGB_UFLOAT_BLOCK , BC6H_RGB_FLOAT_BLOCK ,
  BC7_RGBA_UINT_BLOCK , ETC2_R8G8B8_UINT_BLOCK , ETC2_R8G8B8A8_UINT_BLOCK , EAC_R11_UINT_BLOCK ,
  EAC_R11G11_UINT_BLOCK , PVRTC1_4BPP_RGBA_UINT_BLOCK , KTX2_ETC1S_R_UINT_BLOCK , KTX2_ETC1S_RG_UINT_BLOCK ,
  KTX2_ETC1S_RGB_UINT_BLOCK , KTX2_ETC1S_RGBA_UINT_BLOCK , KTX2_UASTC_R_UINT_BLOCK , KTX2_UASTC_RG_UINT_BLOCK ,
  KTX2_UASTC_RGB_UINT_BLOCK , KTX2_UASTC_RGBA_UINT_BLOCK
}
 Description of the format of an Image, including the number of component channels, their layout, their meanings and their data types. More...
enum class  ModelFileType : uint8_t { UNKNOWN , OBJ , GLTF , GLTF_BINARY }
 File type of a Model. More...

Enumeration Type Documentation

◆ ImageFileType

enum class grem::resource::ImageFileType : uint8_t
strong

File type of an Image.

Enumerator
UNKNOWN 

Unknown file type.

JPEG 

JPEG (.jpg/.jpeg).

PNG 

PNG (.png).

HDR 

RGBE/Radiance HDR (.hdr).

KTX2 

Khronos TeXture, version 2.0 (.ktx2).

◆ ImageType

enum class grem::resource::ImageType : uint8_t
strong

Type of an Image.

Enumerator
EMPTY 

Empty image without a value.

IMAGE_2D 

A single 2D image.

IMAGE_2D_ARRAY 

An array of 2D images.

IMAGE_CUBE 

A cube of 6 sides of square 2D images.

IMAGE_CUBE_ARRAY 

An array of cubes of 6 sides of square 2D images.

◆ ImageFormat

enum class grem::resource::ImageFormat : uint8_t
strong

Description of the format of an Image, including the number of component channels, their layout, their meanings and their data types.

Enumerator
UNKNOWN 

Unknown image format.

R8_UINT 

Raw bitmap where each pixel comprises 1 8-bit unsigned integer component: red.

R16_FLOAT 

Raw bitmap where each pixel comprises 1 16-bit floating-point component: red.

R32_FLOAT 

Raw bitmap where each pixel comprises 1 32-bit floating-point component: red.

R8G8_UINT 

Raw bitmap where each pixel comprises 2 8-bit unsigned integer components: red, green.

R16G16_FLOAT 

Raw bitmap where each pixel comprises 2 16-bit floating-point components: red, green.

R32G32_FLOAT 

Raw bitmap where each pixel comprises 2 32-bit floating-point components: red, green.

R8G8B8_UINT 

Raw bitmap where each pixel comprises 3 8-bit unsigned integer components: red, green, blue.

R16G16B16_FLOAT 

Raw bitmap where each pixel comprises 3 16-bit floating-point components: red, green, blue.

R32G32B32_FLOAT 

Raw bitmap where each pixel comprises 3 32-bit floating-point components: red, green, blue.

R8G8B8A8_UINT 

Raw bitmap where each pixel comprises 4 8-bit unsigned integer components: red, green, blue, alpha.

R16G16B16A16_FLOAT 

Raw bitmap where each pixel comprises 4 16-bit floating-point components: red, green, blue, alpha.

R32G32B32A32_FLOAT 

Raw bitmap where each pixel comprises 4 32-bit floating-point components: red, green, blue, alpha.

R5G6B5_UINT_PACK16 

Packed bitmap with the following 16-bit unsigned integer RGB pixel format: RRRRRGGGGGGBBBBB.

A1R5G5B5_UINT_PACK16 

Packed bitmap with the following 16-bit unsigned integer RGBA pixel format: ARRRRRGGGGGBBBBB.

B10G11R11_UFLOAT_PACK32 

Packed bitmap with the following 32-bit unsigned floating-point RGB pixel format: BBBBBBBBBBGGGGGGGGGGGRRRRRRRRRRR.

A2B10G10R10_UINT_PACK32 

Packed bitmap with the following 32-bit unsigned integer RGBA pixel format: AABBBBBBBBBBGGGGGGGGGGRRRRRRRRRR.

ASTC_4x4_RGBA_UINT_BLOCK 

ASTC block-compressed RGBA image using 128 bits per 4x4 block.

BC1_RGB_UINT_BLOCK 

S3TC BC1 (DXT1) block-compressed RGB image using 64 bits per 4x4 block.

BC3_RGBA_UINT_BLOCK 

S3TC BC3 (DXT5) block-compressed RGBA image using 128 bits per 4x4 block.

BC4_R_UINT_BLOCK 

S3TC BC4 (RGTC1) block-compressed single-channel image using 64 bits per 4x4 block.

BC5_RG_UINT_BLOCK 

S3TC BC5 (RGTC2) block-compressed double-channel image using 128 bits per 4x4 block.

BC6H_RGB_UFLOAT_BLOCK 

S3TC BC6H (BPTC) block-compressed unsigned floating-point RGB image using 128 bits per 4x4 block.

BC6H_RGB_FLOAT_BLOCK 

S3TC BC6H (BPTC) block-compressed signed floating-point RGB image using 128 bits per 4x4 block.

BC7_RGBA_UINT_BLOCK 

S3TC BC7 (BPTC) block-compressed RGBA image using 128 bits per 4x4 block.

ETC2_R8G8B8_UINT_BLOCK 

ETC2 block-compressed RGB image using 64 bits per 4x4 block.

ETC2_R8G8B8A8_UINT_BLOCK 

ETC2 block-compressed RGBA image using 128 bits per 4x4 block.

EAC_R11_UINT_BLOCK 

ETC2 EAC block-compressed single-channel image using 64 bits per 4x4 block.

EAC_R11G11_UINT_BLOCK 

ETC2 EAC block-compressed double-channel image using 128 bits per 4x4 block.

PVRTC1_4BPP_RGBA_UINT_BLOCK 

PVRTC1 block-compressed RGBA image using 64 bits per 4x4 block.

KTX2_ETC1S_R_UINT_BLOCK 

KTX2 container of an ETC1-compressed ETC1S-encoded image with 1 DFD channel: RRR.

KTX2_ETC1S_RG_UINT_BLOCK 

KTX2 container of an ETC1-compressed ETC1S-encoded image with 2 DFD channels: RRR and GGG.

KTX2_ETC1S_RGB_UINT_BLOCK 

KTX2 container of an ETC1-compressed ETC1S-encoded image with 1 DFD channel: RGB.

KTX2_ETC1S_RGBA_UINT_BLOCK 

KTX2 container of an ETC1-compressed ETC1S-encoded image with 2 DFD channels: RGB and AAA.

KTX2_UASTC_R_UINT_BLOCK 

KTX2 container of an ASTC 4x4-compressed UASTC LDR-encoded image with 1 DFD channel: RRR.

KTX2_UASTC_RG_UINT_BLOCK 

KTX2 container of an ASTC 4x4-compressed UASTC LDR-encoded image with 1 DFD channel: RG.

KTX2_UASTC_RGB_UINT_BLOCK 

KTX2 container of an ASTC 4x4-compressed UASTC LDR-encoded image with 1 DFD channel: RGB.

KTX2_UASTC_RGBA_UINT_BLOCK 

KTX2 container of an ASTC 4x4-compressed UASTC LDR-encoded image with 1 DFD channel: RGBA.

◆ ModelFileType

enum class grem::resource::ModelFileType : uint8_t
strong

File type of a Model.

Enumerator
UNKNOWN 

Unknown file type.

OBJ 

Wavefront OBJ (.obj).

GLTF 

glTF (.gltf).

GLTF_BINARY 

Binary glTF (.glb).