/********************************************************************** 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); buf->create(400,400,def_pixfmt_16bpp); // buf2->create(400,400,def_pixfmt_15bpp); // buf2->alias(*buf,0,3,8,8); buf2->clone(*buf); buf2->putPixel(0,0,1); buf2->putPixel(buf2->getMaxX(),buf2->getMaxY(),1); buf2->clear(1); result = font->Load("PACMAN.DPF"); font->SetColor(1); font->PutText(0,0," World"); // buf->copyBuf(0,0,*buf,40,0,79,8); for (foo=-10; foo<1255; foo++) buf->hLine(foo,foo*2,foo,1); for (r=0; r<8; r++) { for (g=0; g<80; g++) if (buf->getPixel(g,r)==1) printf("*"); else printf(" "); printf("\n"); } if (Screen) delete Screen; if (buf) delete buf; if (buf2) delete buf2; if (font) delete font; return(0); }