/*
 * Copyright (c) 2017-2020 Michael Chaban. All rights reserved.
 * Original game is created by Core Design Ltd. in 1997.
 * Lara Croft and Tomb Raider are trademarks of Embracer Group AB.
 *
 * This file is part of TR2Main.
 *
 * TR2Main is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TR2Main is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TR2Main.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef INIT_3D_H_INCLUDED
#define INIT_3D_H_INCLUDED

#include "global/types.h"

/*
 * Function list
 */
#if (DIRECT3D_VERSION < 0x900)
void __cdecl Enumerate3DDevices(DISPLAY_ADAPTER *adapter); // 0x004445F0
#endif // (DIRECT3D_VERSION < 0x900)
bool __cdecl D3DCreate(); // 0x00444620
void __cdecl D3DRelease(); // 0x00444640
#if (DIRECT3D_VERSION < 0x900)
HRESULT CALLBACK Enum3DDevicesCallback(GUID FAR* lpGuid, LPTSTR lpDeviceDescription, LPTSTR lpDeviceName, LPD3DDEVICEDESC lpD3DHWDeviceDesc, LPD3DDEVICEDESC lpD3DHELDeviceDesc, LPVOID lpContext); // 0x00444660
bool __cdecl D3DIsSupported(LPD3DDEVICEDESC desc); // 0x00444720
bool __cdecl D3DSetViewport(); // 0x00444760
#endif // (DIRECT3D_VERSION < 0x900)
void __cdecl D3DDeviceCreate(LPDDS lpBackBuffer); // 0x00444820
void __cdecl Direct3DRelease(); // 0x004449E0
bool __cdecl Direct3DInit(); // 0x00444A30

#endif // INIT_3D_H_INCLUDED
