Newer
Older
ubixos / src / sys / graphics / main.cpp
@reddawg reddawg on 19 Jun 2002 521 bytes Fixed cout problems
/**********************************************************************
will add copyright bs later

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

#include "objgfx30.h"
#include <iostream.h>

int main() {
  TPixelFmt pixfmt;
  TGfx0* buf=0;
  buf = new TGfx0();
  pixfmt.BPP=8;
  buf->create(400,400,(TPixelFmt *)&def_pixfmt_16bpp);
  cout << (int)def_pixfmt_16bpp.BPP << endl;
  cout << (int)buf->BPP << endl;
  cout << (int)buf->RedShifter << endl;
  if (buf) delete buf;
  return(0);
}