BenLand100
2012-06-18 19:46:50
I should also elaborate on the new Debug Graphics protocol (that avoids shitty windows api completely):
Pretend you have a magic 'SetupSmart' procedure that pairs Simba to a SMART instance, you can then do something like the following to draw on it's debug graphics
var
x,y,w,h,bmp: integer;
begin
SetupSmart;
w:= 765;
h:= 503;
bmp := CreateBitmap(w, h);
SetPersistentMemoryBitmap(bmp, SmartDebugArray(), w, h);
FastDrawClear(bmp,$00ff00);
end.Further, any bitmap drawing (or searching, for that matter, though idk why you'd want to search the debug screen) operations you would normally be able to preform on 'bmp' will be drawn to SMART's debug buffer.Source: https://github.com/BenLand100/SMART
Binaries: https://github.com/downloads/BenLand100/SMART/SMARTv7.2.zip
Changelog
===6/18/12===
+Sockets for function calls
+Improved pairing stability
+Fixed bug related to debug graphics offset
+Support for debug graphics on all platforms/architectures (See Simba's support for setting the pointer for a bitmap and SmartDebugArray)
