texture class that wraps the construction of opengl textures.  
 More...
#include <RWGLTexture.hpp>
texture class that wraps the construction of opengl textures. 
◆ RWGLTexture() [1/2]
constructor that creates a texture based on an image 
- Parameters
- 
  
    | img | [in] the image that is added to the texture |  
 
- Exceptions
- 
  
    | Exception | if no OpenGL context is available. |  
 
 
 
◆ RWGLTexture() [2/2]
      
        
          | RWGLTexture | ( | unsigned char | r, | 
        
          |  |  | unsigned char | g, | 
        
          |  |  | unsigned char | b | 
        
          |  | ) |  |  | 
      
 
constructor that creates a simple texture with an RGB color 
- Parameters
- 
  
    | r | [in] red color value. |  | g | [in] green color value. |  | b | [in] blue color value. |  
 
- Exceptions
- 
  
    | Exception | if no OpenGL context is available. |  
 
 
 
◆ getHeight()
the height in data pixels of this texture 
- Returns
 
 
◆ getName()
  
  | 
        
          | const std::string& getName | ( |  | ) | const |  | inline | 
 
name identifier of this texture 
- Returns
 
 
◆ getTextureID()
  
  | 
        
          | GLuint getTextureID | ( |  | ) | const |  | inline | 
 
the texture id 
- Returns
- texture id 
 
 
◆ getWidth()
the width in data pixels of this texture 
- Returns
 
 
◆ init() [1/2]
set a new image on this texture 
- Parameters
- 
  
  
- Exceptions
- 
  
    | Exception | if no OpenGL context is available. |  
 
 
 
◆ init() [2/2]
      
        
          | void init | ( | unsigned char | r, | 
        
          |  |  | unsigned char | g, | 
        
          |  |  | unsigned char | b | 
        
          |  | ) |  |  | 
      
 
Set a new color for this texture. 
- Parameters
- 
  
    | r | [in] red color value. |  | g | [in] green color value. |  | b | [in] blue color value. |  
 
- Exceptions
- 
  
    | Exception | if no OpenGL context is available. |  
 
 
 
The documentation for this class was generated from the following file: