This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofVideoPlayer.h
Go to the documentation of this file.
virtual void draw(float x, float y) const
Draw at a position at the native size.
Definition ofGraphicsBaseTypes.h:150
Definition ofVideoPlayer.h:9
ofPixels & getPixels()
Get a reference to the underlying ofPixels.
Definition ofVideoPlayer.cpp:172
OF_DEPRECATED_MSG("Use getTexture", ofTexture &getTextureReference())
void setAnchorPoint(float x, float y)
Set the anchor point the item is drawn around in pixels.
Definition ofVideoPlayer.cpp:447
std::vector< ofTexture > & getTexturePlanes()
Definition ofVideoPlayer.cpp:220
std::shared_ptr< PlayerType > getPlayer()
Get a pointer to the internal video player implementation.
Definition ofVideoPlayer.h:153
bool isInitialized() const
Determine if the video source is initialized.
Definition ofVideoPlayer.cpp:534
OF_DEPRECATED_MSG("Use load instead", bool loadMovie(std::string name))
void draw(float x, float y, float w, float h) const
Draw at a position with the specified size.
Definition ofVideoPlayer.cpp:457
void resetAnchor()
Reset the anchor point to (0, 0).
Definition ofVideoPlayer.cpp:452
void setAnchorPercent(float xPct, float yPct)
Set the anchor point the item is drawn around as a percentage.
Definition ofVideoPlayer.cpp:442
void setUseTexture(bool bUse)
Enable or disable internal ofTexture use.
Definition ofVideoPlayer.cpp:423
OF_DEPRECATED_MSG("Use getPixels() instead", const ofPixels &getPixelsRef() const)
const std::shared_ptr< PlayerType > getPlayer() const
Get a const pointer to the internal video player implementation.
Definition ofVideoPlayer.h:165
void unbind() const
Unbinds the video texture from the current rendering context.
Definition ofVideoPlayer.cpp:476
void update()
Update the video player's internal state to continue playback.
Definition ofVideoPlayer.cpp:247
OF_DEPRECATED_MSG("Use getTexture", const ofTexture &getTextureReference() const)
bool setPixelFormat(ofPixelFormat pixelFormat)
Set the requested ofPixelFormat.
Definition ofVideoPlayer.cpp:89
std::string getMoviePath() const
Get the path to the loaded video file.
Definition ofVideoPlayer.cpp:167
OF_DEPRECATED_MSG("Use getPixels() instead", ofPixels &getPixelsRef())
std::shared_ptr< ofBaseVideoPlayer > getPlayer()
Get a pointer to the internal video player implementation.
Definition ofVideoPlayer.cpp:74
void closeMovie()
Closes the movie file and releases its resources.
Definition ofVideoPlayer.cpp:277
void setPlayer(std::shared_ptr< ofBaseVideoPlayer > newPlayer)
Set the internal video player implementation.
Definition ofVideoPlayer.cpp:67
void bind() const
Binds the video texture to the current rendering context.
Definition ofVideoPlayer.cpp:468
void close()
Closes the movie file releases its resources.
Definition ofVideoPlayer.cpp:282
ofLoopType
Used to represent the available video looping modes.
Definition ofVideoBaseTypes.h:11