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





osCreateViManager

Syntax
#include <ultra64.h> /* os.h */ void osCreateViManager(OSPri pri);

Arguments

  • pri - Priority (Normally, use OS_PRIORITY_VIMGR)

Return Value
None

Explanation
The VI manager is a system thread that must be created and invoked at the beginning of the appliation. To do this, call osCreateViManager() for the VI manager to allow vertical retrace interrupt to occur at an early stage. Usually, this priority should be set to OS_PRIORITY_VIMGR. The VI manager is designed to service both the VI interrupt (OS_EVENT_VI) and CPU counter interrupt(OS_EVENT_COUNTER) in the most efficient manner. Each interrupting event can be performed using osViSetEvent or osSetTimer.

Example

// Launch VI Manager & black out
osCreateViManager(OS_PRIORITY_VIMGR);
#if (SCREEN_WD==320)&&(SCREEN_HT==240) // Settings for
low-resolution
osViSetMode(&osViModeNtscLan1);
#elif (SCREEN_WD==640)&&(SCREEN_HT==480) // Settings for
high-resolution
osViSetMode(&osViModeNtscHaf1);
#else #error "Illegal Screen size"
#endif
osViBlack(TRUE);

See also
osViSetEvent
osSetTimer

Revision History
2/1/1999 Revised entirely


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