Beatmup
Static Public Member Functions
|
List of all members
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
)
inline
static
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
}
Beatmup::pixint1
Monochromatic integer arithmetic.
Definition:
pixel_arithmetic.h:42
y
jobject jlong jint jint y
Definition:
wrapper_core.cpp:253
width
jlong jint width
Definition:
wrapper_core.cpp:235
height
jlong jint jint height
Definition:
wrapper_core.cpp:235
x
jobject jlong jint x
Definition:
wrapper_core.cpp:253
out
JNIEnv jlong jint out
Definition:
wrapper_imag.cpp:962
bitmap
Beatmup::InternalBitmap * bitmap
Definition:
wrapper_imag.cpp:602
The documentation for this class was generated from the following file:
core/bitmap/
tools.cpp
Kernels
ChessboardRendering
Generated on Tue Nov 21 2023 13:54:28 for Beatmup by
1.9.1