Files
source/Utils/Cinematics Bink.h
T
Marco Antonio J. Costaandmajcosta 86ad401186 add newline at end of file where it's lacking
.editorconfig already enforces it but it's getting changed piecemeal in
every commit. just get it done with.

the script:
```

find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do
	isFile=$(file -0 "$file" | cut -d $'\0' -f2)
	case "$isFile" in
		(*text*)
			echo "$file is text"
			if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then
				echo "" >> "$file"
			fi
			;;
		(*)
			echo "file isn't text"
			;;
	esac
done
```
2024-12-14 19:05:48 -03:00

50 lines
1.1 KiB
C

#ifndef _CINEMATICS_BINK__H_
#define _CINEMATICS_BINK__H_
#include "bink.h"
// BINKFLIC uiFlags
#define BINK_FLIC_OPEN 0x00000001 // Flic is open
#define BINK_FLIC_PLAYING 0x00000002 // Flic is playing
#define BINK_FLIC_LOOP 0x00000004 // Play flic in a loop
#define BINK_FLIC_AUTOCLOSE 0x00000008 // Close when done
#define BINK_FLIC_CENTER_VERTICAL 0x00000010 // Center the video on screen vertically
// Paused???
struct BINKFLIC
{
const CHAR8 *cFilename;
HWFILE hFileHandle;
HBINK BinkHandle;
/// SmackBuf *SmackBuffer;
UINT32 uiFlags;
LPDIRECTDRAWSURFACE2 lpDDS;
HWND hWindow;
UINT32 uiFrame;
UINT32 uiLeft, uiTop;
// LPDIRECTDRAW2 lpDD;
// UINT32 uiNumFrames;
// UINT8 *pAudioData;
// UINT8 *pCueData;
};
void BinkInitialize(HWND hWindow, UINT32 uiWidth, UINT32 uiHeight);
BOOLEAN BinkPollFlics(void);
void BinkCloseFlic(BINKFLIC *pBink);
void BinkShutdownVideo(void);
BINKFLIC *BinkPlayFlic(const CHAR8 *cFilename, UINT32 uiLeft, UINT32 uiTop, UINT32 uiFlags );
#endif