Graphics.cc File Reference
Detailed Description
- Author:
- ejt (Creator)
- Author
- ejt
- Name
- tekkotsu-2_4_1
- Revision
- 1.4
- State
- Exp
- Date
- 2005/07/10 20:02:39
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+w*xInc+h*yInc || rowoffset>=w*xInc || rowoffset/xInc*xInc!=rowoffset) { \
cout << "Graphics Bad draw! line:" << __LINE__ << " frame=" << (gen!=NULL?gen->getFrameNumber():0) << ' ' << (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(). |
|