int
textureload(char* name,int type)
name: It can be without path, and extension, so it will be from
the textures subdirectory like tga.
Or you can give the path, and extension. The file format must be tga,
jpg, or bmp, with same extension name. And only the tga format includes alpha
channel. And it makes mipmap phases automatically.
type:
It
can be:
D3DFMT_BYTEXTURE - normally
D3DFMT_BUMP - for bump textures
[out]:
Id
of texture.
See more about texure formats:
See: