Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Graphics.cc File Reference


Detailed Description

Author:
ejt (Creator)

Author
ejt
Name
tekkotsu-4_0
Revision
1.5
State
Exp
Date
2006/07/03 01:54:58

Definition in file Graphics.cc.

#include "Graphics.h"
#include "FilterBankGenerator.h"

Include dependency graph for Graphics.cc:

Go to the source code of this file.

Defines

#define CHKBOUNDS(p, ERR_F)
 empty definition of macro for checking for any exceeding of image's memory boundaries


Define Documentation

#define CHKBOUNDS ( p,
ERR_F   ) 

Value:

{ \
  unsigned int rowoffset=(p-img)-(p-img)/yInc*yInc; \
  if(p<img || p>=img+h*yInc || rowoffset>=w*xInc || rowoffset/xInc*xInc!=rowoffset) { \
    cout << "Graphics Bad draw! line:" << __LINE__ << " frame=" << (gen!=NULL?gen->getFrameNumber():0) << ' '  /*<< (void*)p << '-' << (void*)img << '='*/ << (int)(p-img) << " w=" << w << " xInc=" << xInc << " h=" << h << " yInc=" << yInc << endl; \
    ERR_F; \
  } \
}
empty definition of macro for checking for any exceeding of image's memory boundaries

Definition at line 10 of file Graphics.cc.

Referenced by Graphics::drawLine(), and Graphics::drawRect().


Tekkotsu v4.0
Generated Thu Nov 22 00:55:57 2007 by Doxygen 1.5.4