#include <rect.h>
Nevrax France
Definition at line 43 of file rect.h.
Public Member Functions | |
sint32 | bottom () const |
Return the higher Y coordinate of the box + 1. | |
CRect (sint32 x, sint32 y) | |
Constructor with a single 2d point. Build a rectangle with width and height = 0. | |
CRect (sint32 x, sint32 y, uint32 width, uint32 height) | |
Constructor with a 2d point, a width and a height. | |
CRect () | |
default ctor | |
void | extend (sint32 x, sint32 y) |
Extend the box for including the point which coordinates are passed in parameter. | |
sint32 | getXCenter () const |
Compute the x center of the rectangle. | |
sint32 | getYCenter () const |
Compute the y center of the rectangle. | |
sint32 | left () const |
Return the lower X coordinate of the box. | |
sint32 | right () const |
Return the higher X coordinate of the box + 1. | |
void | set (sint32 x0, sint32 y0, sint32 x1, sint32 y1) |
Set from 2 2d points. | |
void | setWH (sint32 x, sint32 y, uint32 width, uint32 height) |
Set from a 2d point, a width and a height. | |
sint32 | top () const |
Return the lower Y coordinate of the box. | |
Data Fields | |
uint32 | Height |
Height of the rect. | |
uint32 | Width |
Width of the rect. | |
sint32 | X |
Lower X coordinate of the rect. | |
sint32 | Y |
Lower Y coordinate of the rect. |
|
default ctor
Definition at line 47 of file rect.h.
00047 {} |
|
Constructor with a 2d point, a width and a height.
Definition at line 91 of file rect.cpp. References height, setWH(), sint32, uint32, width, x, and y.
00092 { 00093 setWH(x, y, width, height); 00094 } |
|
Constructor with a single 2d point. Build a rectangle with width and height = 0.
Definition at line 53 of file rect.h.
|
|
Return the higher Y coordinate of the box + 1.
Definition at line 89 of file rect.h. References sint32. Referenced by NL3D::CDriverGL::clipRect().
|
|
Extend the box for including the point which coordinates are passed in parameter.
Definition at line 35 of file rect.cpp. References sint32, uint32, x, and y.
|
|
Compute the x center of the rectangle.
Definition at line 95 of file rect.h. References sint32.
|
|
Compute the y center of the rectangle.
Definition at line 101 of file rect.h. References sint32.
|
|
Return the lower X coordinate of the box.
Definition at line 71 of file rect.h. References sint32.
00072 { 00073 return X; 00074 } |
|
Return the higher X coordinate of the box + 1.
Definition at line 77 of file rect.h. References sint32. Referenced by NL3D::CDriverGL::clipRect().
|
|
Set from 2 2d points.
Definition at line 65 of file rect.cpp. References sint32. Referenced by NL3D::CShapeBank::processWSUploadTexture(), and NL3D::CAsyncTextureManager::uploadTexturePart().
|
|
Set from a 2d point, a width and a height.
Definition at line 55 of file rect.cpp. References height, sint32, uint32, width, x, and y. Referenced by CRect().
|
|
Return the lower Y coordinate of the box.
Definition at line 83 of file rect.h. References sint32.
00084 { 00085 return Y; 00086 } |
|
Height of the rect.
Definition at line 116 of file rect.h. Referenced by NL3D::CDriverGL::clipRect(), NL3D::CDriverGL::fillBuffer(), NL3D::CDriverGL::getBuffer(), NL3D::CDriverGL::getBufferPart(), NL3D::CDriverGL::getZBuffer(), NL3D::CDriverGL::getZBufferPart(), NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::uploadTexture(). |
|
Width of the rect.
Definition at line 113 of file rect.h. Referenced by NL3D::CDriverGL::clipRect(), NL3D::CDriverGL::fillBuffer(), NL3D::CDriverGL::getBuffer(), NL3D::CDriverGL::getBufferPart(), NL3D::CDriverGL::getZBuffer(), NL3D::CDriverGL::getZBufferPart(), NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::uploadTexture(). |
|
Lower X coordinate of the rect.
Definition at line 107 of file rect.h. Referenced by NL3D::CDriverGL::clipRect(), NL3D::CDriverGL::getBufferPart(), NL3D::CDriverGL::getZBufferPart(), NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::uploadTexture(). |
|
Lower Y coordinate of the rect.
Definition at line 110 of file rect.h. Referenced by NL3D::CDriverGL::clipRect(), NL3D::CDriverGL::getBufferPart(), NL3D::CDriverGL::getZBufferPart(), NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::uploadTexture(). |