/********************************************************************** will add copyright bs later $Id$ **********************************************************************/ #include "objgfx30.h" #include "objfont.h" #include <stdio.h> int main() { TPixelFmt pixfmt; UInt32 foo; TGfx0* buf=0; TGfx0* buf2=0; buf = new TGfx0(); buf2 = new TGfx0(); pixfmt.BPP=8; buf->create(400,400,(TPixelFmt *)&def_pixfmt_8bpp); buf2->create(400,400,(TPixelFmt *)&def_pixfmt_8bpp); buf->flip(buf2); buf->setRGBPalette(15,255,255,255); foo=buf->RGB(255,255,255); printf("%d\n",(int)foo); if (buf) delete buf; return(0); }