Newer
Older
ubixos / src / sys / graphics / main.cpp
@reddawg reddawg on 22 Jun 2002 598 bytes Cleaning
/**********************************************************************
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);
  foo=buf->RGB(0,10,0);
  printf("%d\n",(int)foo);
  if (buf) delete buf;
  return(0);
}