I have some inline C code in my BR4 project:
my question is: how can I call the drawRect function within the inline C ?
can I use : drawRect();
Maybe it's a simple question, but for me, I got headache eveytime when I handle inline C ..... Thanks!
B4X:
void drawRect(B4R::Object* o)
{
B4R::B4RAdafruitGFX* bgfx = (B4R::B4RAdafruitGFX*)o->data.PointerField;
bgfx->gfx->drawRect(b4r_main::_cx, b4r_main::_cy, b4r_main::_cw, b4r_main::_ch, b4r_main::_ccolor);
}
my question is: how can I call the drawRect function within the inline C ?
can I use : drawRect();
Maybe it's a simple question, but for me, I got headache eveytime when I handle inline C ..... Thanks!