This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
#include <ofGraphicsBaseTypes.h>

Public Member Functions | |
virtual | ~ofBaseDraws () |
Destroy the abstract object. | |
virtual void | draw (float x, float y) const |
Draw at a position at the native size. | |
virtual void | draw (float x, float y, float w, float h) const =0 |
Draw at a position with the specified size. | |
virtual void | draw (const glm::vec2 &point) const |
Draw at a position at the native size. | |
virtual void | draw (const ofRectangle &rect) const |
Draw at a position and size specified by a rectangle. | |
virtual void | draw (const glm::vec2 &point, float w, float h) const |
Draw at a position. | |
virtual float | getHeight () const =0 |
Get the height. | |
virtual float | getWidth () const =0 |
Get the width. | |
virtual void | setAnchorPercent (float xPct, float yPct) |
Set the anchor point the item is drawn around as a percentage. | |
virtual void | setAnchorPoint (float x, float y) |
Set the anchor point the item is drawn around in pixels. | |
virtual void | resetAnchor () |
Reset the anchor point to (0, 0). | |
Constructor & Destructor Documentation
◆ ~ofBaseDraws()
|
inlinevirtual |
Destroy the abstract object.
Member Function Documentation
◆ draw() [1/5]
|
virtual |
Draw at a position at the native size.
Native size is determined by getWidth() and getHeight().
- Parameters
-
point Draw position.
Reimplemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ draw() [2/5]
|
virtual |
Draw at a position.
- Parameters
-
point Draw position. w Draw width. h Draw height.
Reimplemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ draw() [3/5]
|
virtual |
Draw at a position and size specified by a rectangle.
- Parameters
-
rect Draw position and size.
Reimplemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ draw() [4/5]
|
inlinevirtual |
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.
Reimplemented in ofFbo, ofFbo, ofTexture, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, ofVideoGrabber, ofVideoPlayer, and ofVideoPlayer.
◆ draw() [5/5]
|
pure virtual |
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.
Implemented in ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, ofVideoPlayer, ofImage_< unsigned char >, ofFbo, ofTexture, ofImage_< PixelType >, ofVideoGrabber, ofVideoPlayer, and ofFbo.
◆ getHeight()
|
pure virtual |
Get the height.
- Returns
- the height.
Implemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ getWidth()
|
pure virtual |
Get the width.
- Returns
- the width.
Implemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ resetAnchor()
|
inlinevirtual |
Reset the anchor point to (0, 0).
Reimplemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ setAnchorPercent()
|
inlinevirtual |
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).
Reimplemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
◆ setAnchorPoint()
|
inlinevirtual |
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.
Reimplemented in ofFbo, ofTexture, ofImage_< PixelType >, ofImage_< unsigned char >, ofVideoGrabber, and ofVideoPlayer.
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/graphics/ofGraphicsBaseTypes.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/graphics/ofGraphicsBaseTypes.cpp