yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::Screenshot Struct Reference

Screenshot data container. More...

#include <screenshot_assertion.h>

Public Member Functions

bool IsValid () const
 
size_t GetPixelIndex (int x, int y) const
 

Public Attributes

std::vector< uint8_t > data
 
int width = 0
 
int height = 0
 
std::string source
 

Detailed Description

Screenshot data container.

Definition at line 78 of file screenshot_assertion.h.

Member Function Documentation

◆ IsValid()

bool yaze::test::Screenshot::IsValid ( ) const
inline

Definition at line 84 of file screenshot_assertion.h.

References data, height, and width.

Referenced by yaze::test::ScreenshotAssertion::CompareRegion().

◆ GetPixelIndex()

size_t yaze::test::Screenshot::GetPixelIndex ( int x,
int y ) const
inline

Member Data Documentation

◆ data

◆ width

◆ height

◆ source

std::string yaze::test::Screenshot::source

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