Ada计算机图形DirectX之D3DX10

----------------------------------------
-- File : D3DX10.ads                  --
-- Translator:Dongfeng.Gu,2018/10/25  --
-- Mail: 515639@qq.com                --
-- Progress:100%                      --
----------------------------------------

with win32;              use win32;
with win32.Objbase;      use win32.Objbase;
with win32.Winerror;


package D3DX10 is

   D3DX10_DEFAULT : constant := 16#FFFF_FFFF#;

   D3DX10_FROM_FILE : constant := 16#FFFF_FFFD#;

   DXGI_FORMAT_FROM_FILE : constant := 16#FFFF_FFFD#;


   FACDD : constant := 16#876#;

   function MAKE_DDHRESULT(code:WORD) return HRESULT is ( win32.Winerror.MAKE_HRESULT( 1, FACDD, code ));

   subtype tagD3DX10_ERR is HRESULT;
   subtype D3DX10_ERR is tagD3DX10_ERR;
   type LPD3DX10_ERR is access all tagD3DX10_ERR;


   D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2900);
   D3DX10_ERR_INVALID_MESH:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2901);
   D3DX10_ERR_CANNOT_ATTR_SORT:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2902);
   D3DX10_ERR_SKINNING_NOT_SUPPORTED:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2903);
   D3DX10_ERR_TOO_MANY_INFLUENCES:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2904);
   D3DX10_ERR_INVALID_DATA:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2905);
   D3DX10_ERR_LOADED_MESH_HAS_NO_DATA:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2906);
   D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2907);
   D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM:constant tagD3DX10_ERR:=MAKE_DDHRESULT(2908);


end D3DX10;

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值