Yes, the basic principle of this method is understood now but I'm still struggling to get something displayed correctly.
Currently I'm trying
The result is attached as a screenshot.
Does the SURFHANDLE surf need to be manipulated in any other way for this to work?
Also do I need to assign a TextColor, Pen etc. for the Sketchpad for it to work or does it have default settings for that?
Currently I'm trying
Code:
int surfW = 256; int surfH = 256;
SURFHANDLE surf = oapiCreateSurface(surfW, surfH);
oapi::Sketchpad *skp = oapiGetSketchpad(surf);
skp->Text(10,50, "Hello World", 11);
oapiReleaseSketchpad(skp);
oapiBlt(panel2dtex, surf, 0, 0, 0, 0, surfW, surfH);
The result is attached as a screenshot.
Does the SURFHANDLE surf need to be manipulated in any other way for this to work?
Also do I need to assign a TextColor, Pen etc. for the Sketchpad for it to work or does it have default settings for that?