|
coastline 0.0.4
|
The fades of the screen, the sound effects and the music, and the fog over the view. More...
#include <PR/ultratypes.h>
Go to the source code of this file.
Functions | |
| void | ResetHeadlightGlare (void) |
| Clear the glare of the headlights over the view. | |
| void | RenderHeadlightGlare (void) |
| Draw the glare of the headlights over the view as white of its opacity, when it is strong enough. | |
| void | SetFadeTarget (float target, float seconds) |
| Fade the screen towards a level over a time in seconds. | |
| void | FadeSfxTo (float target, float seconds) |
| Fade the volume of the sound effects towards a level over a time in seconds. | |
| void | FadeMusicTo (float target, float seconds) |
| Fade the volume of the music towards a level over a time in seconds. | |
| s32 | HasSfxFadeFinished (void) |
| Whether the fade of the sound effects has reached its target. | |
| void | SetSfxFadeLevelImmediate (float level) |
| Set the volume of the sound effects and its target at once. | |
| void | SnapScreenFade (float level) |
| Set the level of the screen and its target at once. | |
| s32 | IsFadingIn (void) |
| Whether the screen fades in and does not turn back by itself. | |
| s32 | IsFadingOut (void) |
| Whether the screen fades out, or will once it has faded in. | |
| s32 | IsFadeComplete (void) |
| Whether the screen has reached its target and does not turn back by itself. | |
| s32 | IsFadedToBlack (void) |
| Whether the screen has faded out to black. | |
| s32 | IsFadedToWhite (void) |
| Whether the screen has faded in to the whole picture. | |
| void | UnusedScreenFadeStub (void) |
| Preserve an empty entry point in the original fade sequence. | |
| void | ApplyScreenFade (void) |
| Draw the wipe of the frame: black over the edges the fade has covered. | |
| void | DrawScreenFadeOverlay (float level) |
| Draw black over the whole screen, more opaque the lower a level from 0 to 1. | |
| void | UpdateFadeTransitions (void) |
| Step the fades of the screen, the sound effects and the music by the time of the frame, move the edges of the wipe, and set the volumes. | |
Variables | |
| s32 | g_dwFadeRectLeft |
| The edges of the picture the wipe leaves, in pixels. | |
| s32 | g_dwFadeRectRight |
| The right edge of the visible picture during a wipe, in pixels. | |
| s32 | g_dwFadeRectTop |
| The top edge of the visible picture during a wipe, in pixels. | |
| s32 | g_dwFadeRectBottom |
| The bottom edge of the visible picture during a wipe, in pixels. | |
| f32 | g_fHeadlightGlare |
| How much the headlights shining at the camera whiten the view, from 0 to 1. | |
| f32 | g_fFadeTarget |
| The level the screen fades to. | |
| f32 | g_fFadeRate |
| The change of the level each second, below 0 when fading out. | |
| f32 | g_fFadeLevel |
| The current screen fade level, from 0 for black to 1 for the full picture. | |
| f32 | g_fMusicFadeTarget |
| The fade of the music: its target, its change each second and its level. | |
| f32 | g_fMusicFadeSpeed |
| The change of music fade level per second. | |
| f32 | g_fMusicFadeCurrent |
| The current music fade level, from 0 for silent to 1 for full volume. | |
| f32 | g_fSfxFadeTarget |
| The fade of the sound effects: its target, its change each second and its level. | |
| f32 | g_fSfxFadeSpeed |
| The change of sound-effect fade level per second. | |
| f32 | g_fSfxFadeCurrent |
| The current sound-effect fade level, from 0 for silent to 1 for full volume. | |
| s32 | g_dwFadeSkipFrame |
| Whether the next UpdateFadeTransitions() leaves the level of each fade as it is, set when a fade starts. | |
| s32 | g_dwMusicFadeSkipFrame |
| Whether the next fade update skips changing the music level. | |
| s32 | g_dwSfxFadeSkipFrame |
| Whether the next fade update skips changing the sound-effect level. | |
| s32 | g_dwFadeAutoReverse |
| Whether the screen fades out as soon as it has faded in, because a fade out was asked for while it faded in. | |
| s32 | g_adwFadeRectLeftPerBuffer [2] |
| The edges of the wipe when each framebuffer was last drawn. | |
| s32 | g_adwFadeRectRightPerBuffer [2] |
| The right edge of the wipe last drawn in each frame buffer, in pixels. | |
The fades of the screen, the sound effects and the music, and the fog over the view.
A fade level runs from 0, black or silent, to 1, the picture shown or the full volume. The screen fades in and out as a wipe: black covers the screen from the right as it fades in, and from the left as it fades out.
| void ResetHeadlightGlare | ( | void | ) |
Clear the glare of the headlights over the view.
| void RenderHeadlightGlare | ( | void | ) |
Draw the glare of the headlights over the view as white of its opacity, when it is strong enough.
| void SetFadeTarget | ( | float | target, |
| float | seconds ) |
Fade the screen towards a level over a time in seconds.
A fade out asked for while the screen fades in waits until it has faded in.
| target | The level to fade to, from 0 for black to 1 for the whole picture. |
| seconds | The time a fade across the whole range takes, in seconds. |
| void FadeSfxTo | ( | float | target, |
| float | seconds ) |
Fade the volume of the sound effects towards a level over a time in seconds.
| target | The volume to fade to, from 0 for silence to 1 for full volume. |
| seconds | The time a fade across the whole range takes, in seconds. |
| void FadeMusicTo | ( | float | target, |
| float | seconds ) |
Fade the volume of the music towards a level over a time in seconds.
| target | The volume to fade to, from 0 for silence to 1 for full volume. |
| seconds | The time a fade across the whole range takes, in seconds. |
| s32 HasSfxFadeFinished | ( | void | ) |
Whether the fade of the sound effects has reached its target.
| void SetSfxFadeLevelImmediate | ( | float | level | ) |
Set the volume of the sound effects and its target at once.
| level | The volume, from 0 for silence to 1 for full volume. |
| void SnapScreenFade | ( | float | level | ) |
Set the level of the screen and its target at once.
| level | The level, from 0 for black to 1 for the whole picture. |
| s32 IsFadingIn | ( | void | ) |
Whether the screen fades in and does not turn back by itself.
| s32 IsFadingOut | ( | void | ) |
Whether the screen fades out, or will once it has faded in.
| s32 IsFadeComplete | ( | void | ) |
Whether the screen has reached its target and does not turn back by itself.
| s32 IsFadedToBlack | ( | void | ) |
Whether the screen has faded out to black.
| s32 IsFadedToWhite | ( | void | ) |
Whether the screen has faded in to the whole picture.
| void UnusedScreenFadeStub | ( | void | ) |
Preserve an empty entry point in the original fade sequence.
| void ApplyScreenFade | ( | void | ) |
Draw the wipe of the frame: black over the edges the fade has covered.
| void DrawScreenFadeOverlay | ( | float | level | ) |
Draw black over the whole screen, more opaque the lower a level from 0 to 1.
| level | The level, from 0 for opaque black to 1 for no overlay. |
| void UpdateFadeTransitions | ( | void | ) |
Step the fades of the screen, the sound effects and the music by the time of the frame, move the edges of the wipe, and set the volumes.
|
extern |
The edges of the picture the wipe leaves, in pixels.
|
extern |
The right edge of the visible picture during a wipe, in pixels.
|
extern |
The top edge of the visible picture during a wipe, in pixels.
|
extern |
The bottom edge of the visible picture during a wipe, in pixels.
|
extern |
How much the headlights shining at the camera whiten the view, from 0 to 1.
|
extern |
The level the screen fades to.
|
extern |
The change of the level each second, below 0 when fading out.
|
extern |
The current screen fade level, from 0 for black to 1 for the full picture.
|
extern |
The fade of the music: its target, its change each second and its level.
|
extern |
The change of music fade level per second.
|
extern |
The current music fade level, from 0 for silent to 1 for full volume.
|
extern |
The fade of the sound effects: its target, its change each second and its level.
|
extern |
The change of sound-effect fade level per second.
|
extern |
The current sound-effect fade level, from 0 for silent to 1 for full volume.
|
extern |
Whether the next UpdateFadeTransitions() leaves the level of each fade as it is, set when a fade starts.
|
extern |
Whether the next fade update skips changing the music level.
|
extern |
Whether the next fade update skips changing the sound-effect level.
|
extern |
Whether the screen fades out as soon as it has faded in, because a fade out was asked for while it faded in.
|
extern |
The edges of the wipe when each framebuffer was last drawn.
|
extern |
The right edge of the wipe last drawn in each frame buffer, in pixels.