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





osViGetStatus

Syntax

#include <ultra64.h> /* os.h */ u32 osViGetStatus(void);

Arguments
None

Return Value
Contents of VI status register

VI_CTRL_TYPE_16 16-bit pixel size
VI_CTRL_TYPE_32 32-bit pixel size
VI_CTRL_GAMMA_DITHTER_ON Gamma dither mode enabled
VI_CTRL_GAMMA_ON Gamma correction enabled
VI_CTRL_DIVOT_ON Divot mode enabled
VI_CTRL_SERRATE_ON Serrate mode enabled
VI_CTRL_DITHER_FILTER_ON Dither filter mode enabled


Explanation
This function returns the contents of the VI status register.
The VI status can be obtained by masking (AND) the contents of the register with the above the bit patterns.
However, determine the pixel size by comparing the return value with either VI_CTRL_TYPE_32 or VI_CTRL_TYPE_16 after getting the AND with VI_CTRL_TYPE_32.

The bit pattern is defined in <rcp.h>.

See Also
osViSetMode
osViSetSpecialFeatures

Revision History 2/1/1999 Completely rewritten


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 March 1998