## TexInfo(src)

#### new TexInfo(src)
`doc/classes.js`, `line 276`

  create new texture from 3df file or a Bitmap.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `src` | string | Bitmap | 3df file to load as texture or Bitmap to convert to texture

### Members

#### static address
`doc/classes.js`, `line 309`

  texture mem address (if downloaded)

#### static aspectRatio
`doc/classes.js`, `line 293`

  aspect ratio

#### static filename
`doc/classes.js`, `line 281`

  filename

#### static format
`doc/classes.js`, `line 297`

  texture format

#### static largeLod
`doc/classes.js`, `line 285`

  large LOD

#### static smallLod
`doc/classes.js`, `line 289`

  small LOD

#### static tableType
`doc/classes.js`, `line 301`

  table type

#### static textureSize
`doc/classes.js`, `line 305`

  size of texture

#### static tmu
`doc/classes.js`, `line 313`

  TMU (if downloaded)

### Methods

#### DownloadMipMap(tmu, address, evenOdd)
`doc/classes.js`, `line 321`

  download the MIP map to texture memory.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `tmu` | GR_TMU | the TMU unit to download to.
  `address` | number | destination memory address in texture memory.
  `evenOdd` | GR_MIPMAPLEVELMASK | one of GR_MIPMAPLEVELMASK.

#### MarkUnused()
`doc/classes.js`, `line 326`

  mark the texture as 'not downloaded' again.

#### MemRequired(evenOdd) → {number}
`doc/classes.js`, `line 339`

  return the texture memory consumed by a texture

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `evenOdd` | GR_MIPMAPLEVELMASK | one of GR_MIPMAPLEVELMASK.

  ##### Returns:

  number - size of texture in bytes.

#### Source(evenOdd)
`doc/classes.js`, `line 332`

  specify this TexInfo as the current texture source for rendering.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `evenOdd` | GR_MIPMAPLEVELMASK | one of GR_MIPMAPLEVELMASK.