class methods
~ofBaseDraws()
ofBaseDraws::~ofBaseDraws()
Documentation from code comments
Destroy the abstract object.
draw(...)
void ofBaseDraws::draw(const glm::vec2 &point)
Documentation from code comments
Draw at a position at the native size.
Native size is determined by getWidth() and getHeight().
Parameters:
point Draw position.
draw(...)
void ofBaseDraws::draw(const glm::vec2 &point, float w, float h)
Documentation from code comments
Draw at a position.
Parameters:
point Draw position.
w Draw width.
h Draw height.
draw(...)
void ofBaseDraws::draw(const ofRectangle &rect)
Documentation from code comments
Draw at a position and size specified by a rectangle.
Parameters:
rect Draw position and size.
draw(...)
void ofBaseDraws::draw(float x, float y)
Documentation from code comments
Draw at a position at the native size.
Native size is determined by getWidth() and getHeight().
Parameters:
x Draw position on the x axis.
y Draw position on the y axis.
draw(...)
void ofBaseDraws::draw(float x, float y, float w, float h)
Documentation from code comments
Draw at a position with the specified size.
Parameters:
x Draw position on the x axis.
y Draw position on the y axis.
w Draw width.
h Draw height.
getHeight()
float ofBaseDraws::getHeight()
Documentation from code comments
Get the height.
Returns: the height.
getWidth()
float ofBaseDraws::getWidth()
Documentation from code comments
Get the width.
Returns: the width.
resetAnchor()
void ofBaseDraws::resetAnchor()
Documentation from code comments
Reset the anchor point to (0, 0).
setAnchorPercent(...)
void ofBaseDraws::setAnchorPercent(float xPct, float yPct)
Documentation from code comments
Set the anchor point the item is drawn around as a percentage.
This can be useful if you want to rotate an image around a particular point.
Parameters:
xPct Horizontal position as a percentage (0 - 1).
yPct Vertical position as a percentage (0 - 1).
setAnchorPoint(...)
void ofBaseDraws::setAnchorPoint(float x, float y)
Documentation from code comments
Set the anchor point the item is drawn around in pixels.
This can be useful if you want to rotate an image around a particular point.
Parameters:
x Horizontal texture position in pixels.
y Vertical texture position in pixels.
Last updated 星期二, 19 十一月 2024 17:24:52 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue