> Is there a *small* graphics lib
A few simple Carbon calls will do fine. You don't need any extra library,
just use -framework Carbon on the command line (if you are using the
Terminal). NewCWindow, Set****t, MoveTo, LineTo... Something like this:
---
#include <Carbon/Carbon.h>
Rect bounds;
WindowPtr wind;
main()
{
SetRect(&bounds, 100, 100, 356, 356);
wind =
NewCWindow(NULL,&bounds,"\pTest",1,plainDBox,(WindowPtr)-1,0,
0);
Set****tWindow****t(wind);
while (!Button())
{
LineTo(Random() & 255, Random() & 255);
QDFlush****tBuffer(GetWindow****t(wind), NULL);
}
}
---
It can't be much simpler. Of course, I'd like to suggest OpenGl for the
future. ;)
* posted via http://MacErudite.com
* please re****t abuse to http://xinbox.com/mymac


|