TGAImageLoader(3)

πŸ“¦
version 0.1.0 Β· 2 versions
, in fedora 43

✨ TGAImageLoader ✨

okay bestie, welcome to the TGAImageLoader(3) page πŸ’– this one lives in the Library Functions Manual and it's literally just the cutest little loader for Targa images. no cap.


🌸 NAME 🌸

TGAImageLoader β€” Loader for Targa image. that's it. that's the whole job. iconic behavior fr fr πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SILLYTGAImageLoader.h>

Inherits ImageLoader. πŸ’… (yes she's a nepo baby, she inherits everything from ImageLoader and she slays)

🫢 Public Member Functions 🫢

  • void destroyContext (ImageContext *context) β€” Destroy the image context. bye bye context 😭
  • const char * getIdentifierString () const β€” Return the name of the loader. she tells you who she is πŸ’…
  • ImageContext * loadHeader (PixelFormat &formatSource, DataSource *data) β€” Parse the header of the image and fill the header struct. reading the header, main character energy ✨
  • bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context) β€” Parse the pixels data of the image and fill the header struct. the pixels!! the moment we've all been waiting for πŸ”₯

πŸ’œ Detailed Description πŸ’œ

Loader for Targa image. that's the vibe, that's the assignment, periodt.

Definition at line 43 of file SILLYTGAImageLoader.h. πŸ“

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

TGAImageLoader ()

the constructor, she's born ✨

Definition at line 51 of file SILLYTGAImageLoader.cpp. πŸ“

~TGAImageLoader ()

the destructor, she leaves the group chat 😭

Definition at line 56 of file SILLYTGAImageLoader.cpp. πŸ“


🌈 Member Function Documentation 🌈

void destroyContext (ImageContext * context) [inherited]

Destroy the image context. she's inherited this one, it's giving family heirloom πŸ’–

Parameters

  • context β€” a pointer to the context

Definition at line 47 of file SILLYImageLoader.cpp. πŸ“

ImageContext * loadHeader (PixelFormat & formatSource, DataSource * data) [virtual]

Parse the header of the image and fill the header struct. this is the part where she reads the header and goes okay noted πŸ“ and she's [virtual] too, so she's flexible like that πŸ’…

Parameters

  • formatSource β€” this var should contains the pixel format used to store the image initialy
  • data β€” the input of the image data

Returns

Context for the rest of the parsing or 0 if an error occured 😭

Implements ImageLoader. 🫢

Definition at line 74 of file SILLYTGAImageLoader.cpp. πŸ“

bool loadImageData (PixelOrigin origin, DataSource * data, ImageContext * context) [virtual]

Parse the pixels data of the image and fill the header struct. yes the description says "header struct" again, we don't make the rules bestie, we just report them faithfully πŸ™ˆ also [virtual], she contains multitudes πŸ’œ

Parameters

  • origin β€” the layout of the pixel in the resulting pixel array
  • data β€” the input of the image data
  • context β€” the data associated to the image parsing

Returns

true on success false on error. literally a vibe check with a boolean πŸ’€

Implements ImageLoader. 🫢

Definition at line 134 of file SILLYTGAImageLoader.cpp. πŸ“


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. not a human, a robot, and honestly? it ate πŸ€–βœ¨


aaaand that's the whole page bestie, you're officially TGAImageLoader-pilled πŸŒΈπŸ¦‹

this lil masterpiece came from the Simple Image Loading LibrarY, Version 0.1.0, and yes the date is the TGAImageLoader(3) one, mwah, go forth and load those Targas πŸ’…πŸ’–

πŸ“¦ where this page comes from