Beatmup
Kernels::ChessboardRendering< out_t > Class Template Reference

Static Public Member Functions

static void process (AbstractBitmap &bitmap, int width, int height, int cellSize)
 

Detailed Description

template<class out_t>
class Kernels::ChessboardRendering< out_t >

Definition at line 58 of file tools.cpp.

Member Function Documentation

◆ process()

template<class out_t >
static void Kernels::ChessboardRendering< out_t >::process ( AbstractBitmap bitmap,
int  width,
int  height,
int  cellSize 
)
inlinestatic

Definition at line 60 of file tools.cpp.

60  {
61  out_t out(bitmap);
62  for (int y = 0; y < height; y++)
63  for (int x = 0; x < width; x++) {
64  out = pixint1{ 255 * ((x / cellSize + y / cellSize) % 2) };
65  out++;
66  }
67  }
Monochromatic integer arithmetic.
jobject jlong jint jint y
jlong jint width
jlong jint jint height
jobject jlong jint x
JNIEnv jlong jint out
Beatmup::InternalBitmap * bitmap

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