Skip to content

Commit

Permalink
Prototype of using STB rather than FreeImage
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Jun 21, 2023
1 parent 962800d commit 7d43539
Show file tree
Hide file tree
Showing 11 changed files with 8,761 additions and 485 deletions.
8 changes: 8 additions & 0 deletions graphics/include/gz/common/Image.hh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ namespace gz
/// \return The BPP of the image
public: unsigned int BPP() const;

/// \brief Get the size of one pixel in bits
/// \return The BPP of the image
public: unsigned int BitsPerPixel() const;

/// \brief Get the size of one pixel in bytes
/// \return The BPP of the image
public: unsigned int BytesPerPixel() const;

// \brief Get the size of a row of pixel
/// \return The pitch of the image
public: int Pitch() const;
Expand Down
Loading

0 comments on commit 7d43539

Please sign in to comment.