/********************************************************************** 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; TGfx0 buf3; buf3.create(100,100,def_pixfmt_16bpp); TScreen* Screen=0; Screen = new TScreen(); TDPFont* font=0; buf = new TGfx0(); buf2 = new TGfx0(); font = new TDPFont(); buf->create(400,400,def_pixfmt_32bpp); 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(buf3,0,0," World"); buf->copyBuf(0,0,buf3,40,0,79,8); buf2->hFlip(); buf->line(0,0,79,7,buf->RGB(255,0,0)); 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); }