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 ChVector2f &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 ChVector2fGetScale () const
 Get the texture scales (in X and Y directions)
 
void ArchiveOut (ChArchiveOut &archive_out)
 Method to allow serialization of transient data to archives.
 
void ArchiveIn (ChArchiveIn &archive_in)
 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