Bink SDK 1.5v

BinkBufferSetResolution

The function BinkBufferSetResolution tells Bink to switch video resolution when opening the BinkBuffer.

void BinkBufferSetResolution(
  U32 width,
  U32 height,
  U32 color_depth
);

In Parameters

width
Specifies the screen width that you wish to switch into (in pixels).
height
Specifies the screen height that you wish to switch into (in pixels).
color_depth
Specifies the screen color depth that you wish to switch into (in bits: 8, 16, 24, or 32). You can also use several color depth macros: 1=at least high-color (tries 16-bit, then 32-bit, and then 24-bit), 2=attempt true-color (tries 32-bit, then 24-bit, and then 16-bit), or 3=true-color only (tries 32-bit, then 24-bit).

Discussion

This function tells Bink what resolution to use when playing the Bink file. This function won't actually switch the resolution - it just requests that it be used when the BinkBuffer is opened. To use this function, you first call this function, and then you call call BinkOpen using the BINKBUFFERRESOLUTION flag. Note that if you have already switched the resolution using DirectDraw, then you don't have to do it again with the BinkBuffer API. If you used the BINKBUFFERDIBSECTION flag to open this BinkBuffer, then Bink will use ChangeDisplaySettings to switch the video mode.


Group: BinkBuffer API
Related Functions: BinkBufferOpen, BinkOpen
Related Basic Types: BINKBUFFER_OPEN_FLAGS, U32, void

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.