Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
Bitmap Class Reference
+ Collaboration diagram for Bitmap:

Public Member Functions

 Bitmap (u32 width, u32 height)
 
bool get (u32 x, u32 y) const
 
void set (u32 x, u32 y)
 
bool all () const
 
void copy (Bitmap &to) const
 

Static Private Member Functions

static u32 bytepos (u32 index)
 
static u8 bitpos (u32 index)
 

Private Attributes

u32 linesize
 
u32 lines
 
std::vector< u8 > data
 

Constructor & Destructor Documentation

◆ Bitmap()

Bitmap::Bitmap ( u32  width,
u32  height 
)
inline

Member Function Documentation

◆ all()

bool Bitmap::all ( ) const
inline

References bitpos(), data, lines, and linesize.

Referenced by imageCleanTransparentWithInlining().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bitpos()

static u8 Bitmap::bitpos ( u32  index)
inlinestaticprivate

Referenced by all(), get(), and set().

+ Here is the caller graph for this function:

◆ bytepos()

static u32 Bitmap::bytepos ( u32  index)
inlinestaticprivate

Referenced by get(), and set().

+ Here is the caller graph for this function:

◆ copy()

void Bitmap::copy ( Bitmap to) const
inline

References data, lines, and linesize.

Referenced by imageCleanTransparentWithInlining().

+ Here is the caller graph for this function:

◆ get()

bool Bitmap::get ( u32  x,
u32  y 
) const
inline

References bitpos(), bytepos(), data, and linesize.

Referenced by imageCleanTransparentWithInlining().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set()

void Bitmap::set ( u32  x,
u32  y 
)
inline

References bitpos(), bytepos(), data, and linesize.

Referenced by imageCleanTransparentWithInlining().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ data

std::vector<u8> Bitmap::data
private

Referenced by all(), copy(), get(), and set().

◆ lines

u32 Bitmap::lines
private

Referenced by all(), and copy().

◆ linesize

u32 Bitmap::linesize
private

Referenced by all(), copy(), get(), and set().


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