chrono::ChTexture Class Reference
  Description
Class for defining a texture.
Encapsulates the texture filename and texture scale.
#include <ChTexture.h>
| Public Member Functions | |
| ChTexture (const char *filename) | |
| ChTexture (const std::string &filename, float scale_x=1, float scale_y=1) | |
| const std::string & | GetFilename () const | 
| Get the texture filename. | |
| void | SetFilename (const std::string &filename) | 
| Set the texture filename. | |
| void | SetScale (float sx, float sy) | 
| Set the texture scale (in X and Y directions). | |
| void | SetScale (const ChVector2< float > &scale) | 
| Set the texture scale (in X and Y directions). | |
| float | GetScaleX () const | 
| Get the texture scales (in X and Y directions) | |
| float | GetScaleY () const | 
| const ChVector2< float > & | GetScale () const | 
| Get the texture scales (in X and Y directions) | |
| void | ArchiveOUT (ChArchiveOut &marchive) | 
| Method to allow serialization of transient data to archives. | |
| void | ArchiveIN (ChArchiveIn &marchive) | 
| Method to allow de-serialization of transient data from archives. | |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/assets/ChTexture.h
- /builds/uwsbel/chrono/src/chrono/assets/ChTexture.cpp
