Table of Contents

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

NAMEOPTIONALDESCRIPTION
sFilenameNosFilename description
sTextureNameYessTextureName description
iWidthYesiWidth description
iHeightYesiHeight description
eColorKeyYeseColorKey description
bFilterAndStretchYesbFilterAndStretch description

RETURN VALUE

Integer Return an integer representing the index value of the texture.

EXAMPLES

ExampleBasic example.

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.
 
tvtexturefactory/loadtexture.txt · Last modified: 2013/11/22 13:32