Newer
Older
ubixos / src / sys / graphics / main.cpp
@flameshadow flameshadow on 23 Jun 2002 642 bytes ObjGfx 3.0
/**********************************************************************
will add copyright bs later

$Id$
**********************************************************************/

#include "objgfx30.h"
#include "objfont.h"
#include <stdio.h>

int main() {
  UInt32 foo;
  UInt8 r, g, b;
  r=0;
  g=0;
  b=0;
  TGfx0* buf=0;
  TGfx0* buf2=0;
  buf = new TGfx0();
  buf2 = new TGfx0();
  buf->create(400,400,(TPixelFmt *)&def_pixfmt_32bpp);
  buf2->create(400,400,(TPixelFmt *)&def_pixfmt_15bpp);
  buf->putpixel(11,10,10169);
  foo=buf->getpixel(11,10);
  printf("%d\n",(int)foo);
  if (buf) delete buf;
  if (buf2) delete buf2;
  return(0);
}