/********************************************************************** 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(0,253,255,255); buf->setRGBPalette(1,255,251,255); buf->setRGBPalette(2,251,255,255); buf->setRGBPalette(3,255,255,255); buf->setRGBPalette(4,255,253,255); buf->setRGBPalette(5,255,255,251); foo=buf->RGB(255,255,255); printf("%d\n",(int)foo); if (buf) delete buf; return(0); }