Wiki > TV3D65 Index > TVTextureFactory
LoadTexture
DESCRIPTION
Loads a texture from disk into the TVTextureFactory.
DECLARATION
| VB.NET | LoadTexture(sFilename As String , sTextureName As String , iWidth As Integer , iHeight As Integer , eColorKey As CONST_TV_COLORKEY , bFilterAndStretch As Boolean) As Integer |
| C++ | int LoadTexture(char* sFilename , char* sTextureName , int iWidth , int iHeight , cCONST_TV_COLORKEY eColorKey , bool bFilterAndStretch ) |
PARAMETERS
| NAME | OPTIONAL | DESCRIPTION |
| sFilename | No | sFilename description |
| sTextureName | Yes | sTextureName description |
| iWidth | Yes | iWidth description |
| iHeight | Yes | iHeight description |
| eColorKey | Yes | eColorKey description |
| bFilterAndStretch | Yes | bFilterAndStretch description |
RETURN VALUE
| Integer | Return an integer representing the index value of the texture. |
EXAMPLES
TIPS
- If the texture is already loaded the function will return the index value of the existing texture.
- If you load a BITMAP format texture file and are using Trilinear filtering, TV3D will automatically create mipmaps for the texture.