// @topic W07-0-020 C/C++ struct and class
// @brief struct Pixel declaration

#ifndef PIXEL_H_INCLUDED_
#define PIXEL_H_INCLUDED_

// a definition of a user-defined data type
struct Pixel {
    int x;        // 4 bytes
    int y;        // 4 bytes
    float red;    // 4 bytes
    float green;  // 4 bytes
    float blue;   // 4 bytes
    char alpha;   // 1 byte + 3 bytes padding
};//struct Pixel

// pixel operations
void update_pixel( Pixel* px );

#endif //PIXEL_H_INCLUDED_
