Renders sprites.  
 More...
#include <SpriteRendererComponent.hpp>
 | 
| 
class  | GameObject | 
|   | 
| 
class  | Scene | 
|   | 
      
        
          | std::string ae3d::SpriteRendererComponent::GetSerialized  | 
          ( | 
           | ) | 
           const | 
        
      
 
- Returns
 - Textual representation of component. 
 
 
 
      
        
          | void ae3d::SpriteRendererComponent::SetTexture  | 
          ( | 
          const class TextureBase *  | 
          texture,  | 
        
        
           | 
           | 
          const struct Vec3 &  | 
          position,  | 
        
        
           | 
           | 
          const Vec3 &  | 
          dimensionPixels,  | 
        
        
           | 
           | 
          const struct Vec4 &  | 
          tintColor  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Adds a texture to be rendered. The same texture can be added multiple times.
- Parameters
 - 
  
    | texture | Texture.  | 
    | position | Position relative to the component's transform.  | 
    | dimensionPixels | Dimension in pixels.  | 
    | tintColor | Tint color in range 0-1. | 
  
   
TODO [2015-03-28]: Set pivot, maybe also rotation. 
 
 
The documentation for this class was generated from the following file: