# G3_MakeTexPlttBaseParam

## C Specification

      #include <nitro/gx/g3.h>

      static inline GXTexPlttBaseParam G3_MakeTexPlttBaseParam( u32 plttBaseAddr, GXTexFmt texfmt )

## Description

This function is used to convert the texture palette's base address into a value that can be set in the texture palette base address register, `REG_G3_TEXPLTT_BASE`. This function is not necessary if you are using the `G3*_TexPlttBase` function, but if `texfmt` is specified as a constant, it optimizes and thereby speeds up execution.

## Arguments

`plttBaseAddr` | The palette's base address
`texfmt` | Texture format

## Return Values

The address value to set in `REG_G3TEXPLTT_BASE`.

## See Also

`G3*_TexPlttBase`

## Revision History

Initial Version 01/19/2004