' ########################################################################################
' Microsoft Windows
' File: d3dx10.inc
' Contents: D3DX10 utility library
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_D3DX10_PBI)
#DEFINE PBX_D3DX10_PBI
%EQUATE `D3DX10_INC = 1
'// Defines
'#include <limits.h>
'#include <float.h>
%EQUATE `D3DX10_DEFAULT = &HFFFFFFFF ' ((UINT) -1)
%EQUATE `D3DX10_FROM_FILE = &HFFFFFFFD ' ((UINT) -3)
%EQUATE `DXGI_FORMAT_FROM_FILE = &HFFFFFFFD ' ((DXGI_FORMAT) -3)
'// Includes
#INCLUDE ONCE "Legacy/Graphics/D3D10.inc"
#INCLUDE ONCE "Legacy/Graphics/D3DX10math.inc"
#INCLUDE ONCE "Legacy/Graphics/D3DX10core.inc"
#INCLUDE ONCE "Legacy/Graphics/D3DX10tex.inc"
#INCLUDE ONCE "Legacy/Graphics/D3DX10mesh.inc"
#INCLUDE ONCE "Legacy/Graphics/d3dx10async.inc"
'// Errors
%EQUATE `FACDD = &H876
'#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
MACRO MAKE_DDHRESULT (code) = MAKE_HRESULT(1, %FACDD, code)
' enum D3DX10_ERR
%EQUATE `D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER = &H88760B54& ' MAKE_DDHRESULT(2900)
%EQUATE `D3DX10_ERR_INVALID_MESH = &H88760B55& ' MAKE_DDHRESULT(2901)
%EQUATE `D3DX10_ERR_CANNOT_ATTR_SORT = &H88760B56& ' MAKE_DDHRESULT(2902)
%EQUATE `D3DX10_ERR_SKINNING_NOT_SUPPORTED = &H88760B57& ' MAKE_DDHRESULT(2903)
%EQUATE `D3DX10_ERR_TOO_MANY_INFLUENCES = &H88760B58& ' MAKE_DDHRESULT(2904)
%EQUATE `D3DX10_ERR_INVALID_DATA = &H88760B59& ' MAKE_DDHRESULT(2905)
%EQUATE `D3DX10_ERR_LOADED_MESH_HAS_NO_DATA = &H88760B5A& ' MAKE_DDHRESULT(2906)
%EQUATE `D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT = &H88760B5B& ' MAKE_DDHRESULT(2907)
%EQUATE `D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM = &H88760B5C& ' MAKE_DDHRESULT(2908)
#ENDIF
