N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

gDPSetHilite2Tile

Format
#include "gbi.h"

typedef struct {
   /* texture offsets (pixels)
    for highlights 1 & 2 */
   int x1, y1, x2, y2;
} Hilite_t;

typedef union {
   Hilite_t   h;
   long int force_structure_alignment[4];
} Hilite;

gDPSetHilite1Tile(Gfx *gdl,
   int tile, Hilite hilite,
   int width, int height)

gDPSetHilite2Tile(Gfx *gdl,
   int tile, Hilite hilite,
   int width, int height)
Arguments
  • gdl is the pointer to the graphics display list
  • tile is the tile descriptor index
  • hilite is the Hilite structure having texture offsets for up to two specular highlights
  • width, height is the common width and height of textures for up to two specular highlights
What These Macros Do
The gDPSetHilite1Tile and gDPSetHilite2Tile macros call the gDPSetTileSize macros, passing the texture offsets through the Hilite structure and the texture size through the width and height arguments. The number in the name of the macro represents the ordinal number of a specular highlight in the scene (1 or 2).

See Also
gDPSetTileSize
guLookAtHilite



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998