11 |
cycrow |
1 |
//-----------------------------------------------------------------------------
|
|
|
2 |
// File: Textures.h
|
|
|
3 |
//
|
|
|
4 |
// Desc: DirectShow sample code - header file for DirectShow/Direct3D8 video
|
|
|
5 |
// texturing
|
|
|
6 |
//
|
|
|
7 |
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
8 |
//-----------------------------------------------------------------------------
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
#include <d3dx9.h>
|
|
|
12 |
#include <d3d9.h>
|
|
|
13 |
#include <windows.h>
|
|
|
14 |
#include <mmsystem.h>
|
|
|
15 |
#include <atlbase.h>
|
|
|
16 |
#include <stdio.h>
|
|
|
17 |
|
|
|
18 |
#include <d3d9types.h>
|
|
|
19 |
|
|
|
20 |
//-----------------------------------------------------------------------------
|
|
|
21 |
// Forward Declarations
|
|
|
22 |
//-----------------------------------------------------------------------------
|
|
|
23 |
HRESULT InitDShowTextureRenderer();
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
BOOL GetClipFileName(LPTSTR szName);
|
|
|
27 |
void CheckMovieStatus(void);
|
|
|
28 |
void CleanupDShow(void);
|
|
|
29 |
void Msg(TCHAR *szFormat, ...);
|
|
|
30 |
|
|
|
31 |
HRESULT AddToROT(IUnknown *pUnkGraph);
|
|
|
32 |
void RemoveFromROT(void);
|
|
|
33 |
|
|
|
34 |
//-----------------------------------------------------------------------------
|
|
|
35 |
// Direct3D global variables
|
|
|
36 |
//-----------------------------------------------------------------------------
|
|
|
37 |
extern LPDIRECT3D9 g_pD3D; // Used to create the D3DDevice
|
|
|
38 |
extern LPDIRECT3DVERTEXBUFFER9 g_pVB; // Buffer to hold vertices
|
|
|
39 |
extern LPDIRECT3DDEVICE9 g_pd3dDevice; // Our rendering device
|
|
|
40 |
extern LPDIRECT3DTEXTURE9 g_pTexture; // Our texture
|
|
|
41 |
|