- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Namespace List
- Namespace Members

# GhulbusUtil Namespace Reference

Root namespace of the ghulbusUtil Library. More...

## Classes
class | gbImageLoader
| Used for loading image files. More...
class | gbImageType_BMP_T
class | gbImageType_TGA_T
struct | BITMAPFILEHEADER
struct | BITMAPINFOHEADER
struct | TGAHEADER
## Functions
void | WriteImage (char const *fname, GhulbusGraphics::GBCOLOR const *data, int width, int height)
| Writes image data to a TGA image file.
gbImageLoader::gbImageType * | gbImageType_BMP ()
| Get a loading strategy for BMP files; use in gbImageLoader.
gbImageLoader::gbImageType * | gbImageType_TGA ()
| Get a loading strategy for TGA files; use in gbImageLoader.
## Variables
struct GhulbusUtil::BITMAPFILEHEADER | packed

## Detailed Description

Root namespace of the ghulbusUtil Library.

## Function Documentation

gbImageLoader::gbImageType * GhulbusUtil::gbImageType_BMP | ( |  | ) |

Get a loading strategy for BMP files; use in gbImageLoader.

Remarks:
  This approach uses static objects and is therefore *not* thread-safe

gbImageLoader::gbImageType * GhulbusUtil::gbImageType_TGA | ( |  | ) |

Get a loading strategy for TGA files; use in gbImageLoader.

Remarks:
  This approach uses static objects and is therefore *not* thread-safe

void GhulbusUtil::WriteImage | ( | char const * | fname,
|  | GhulbusGraphics::GBCOLOR const * | data,
|  | int | width,
|  | int | height |
| ) |  |  |

Writes image data to a TGA image file.

Parameters:

  `[in]` | fname | Full path to the output file
  `[in]` | data | Field containing the image data as 32bit ARGB
  `[in]` | width | Image width in pixels
  `[in]` | height | Image height in pixels

Exceptions:

  | Ghulbus::gbException | GB_FAILED indicates a file access error