Gama C Library
Gama C API Documentation
gmImageData Struct Reference

A container for raw, CPU-side image pixel data. More...

#include <image.h>

Data Fields

int32_t width
int32_t height
unsigned char * data

Detailed Description

A container for raw, CPU-side image pixel data.

This struct holds raw pixel data decoded from an image file. It is typically used as an intermediate step before creating a gmImage, which manages the texture on the GPU.

Field Documentation

◆ data

unsigned char* gmImageData::data

Pointer to the raw RGBA pixel data.

◆ height

int32_t gmImageData::height

Dimensions of the image in pixels.

◆ width

int32_t gmImageData::width

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