/********************************************************************** will add copyright bs later $Id$ **********************************************************************/ #include "objgfx30.h" #include "objfont.h" #include <stdio.h> int main() { Int32 foo; UInt8 r, g, b; r=0; g=0; b=0; foo = 0; bool result; TGfx0* buf=0; TGfx0* buf2=0; TScreen* Screen=0; Screen = new TScreen(); TDPFont* font=0; buf = new TGfx0(); buf2 = new TGfx0(); font = new TDPFont(); buf->create(400,400,def_pixfmt_8bpp); buf->setRGBPalette(1,255,255,255); // buf2->create(400,400,def_pixfmt_15bpp); buf2->alias(*buf,0,0,39,7); // buf2->clone(*buf); result = font->load("OLDENG.DPF"); font->setColor(255,255,255); font->putText(*buf,0,0,"HelloWorld"); // buf->copyBuf(0,0,*buf,40,0,79,8); buf2->hFlip(); for (r=0; r<8; r++) { for (g=0; g<80; g++) if (buf->getPixel(g,r)) printf("*"); else printf(" "); printf("\n"); } if (Screen) delete Screen; if (buf) delete buf; if (buf2) delete buf2; if (font) delete font; return(0); }