siki > d3d > d3dutil

siki/d3d/d3dutil.hpp : ver090227

  1. /*
  2.  * d3dutil.hpp
  3.  * Copyright (C) 2009 siki
  4.  *
  5.  * This program is free software: you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation, either version 3 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13.  * GNU General Public License for more details.
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program. If not, see
  16.  * http://www.gnu.org/licenses/gpl-3.0.html.
  17.  *
  18.  * author:rei
  19.  */
  20. #ifndef __SIKI_D3D_D3DUTIL_H__
  21. #define __SIKI_D3D_D3DUTIL_H__
  22.  
  23. #include <d3d9.h>
  24.  
  25. namespace siki{
  26. namespace d3d{
  27.  
  28. /***
  29.  *** COMオブジェクトを解放する
  30.  ***/
  31. void Release(IUnknown *handle);
  32.  
  33.  
  34.  
  35. } // namespace d3d
  36. } // namespace siki
  37.  
  38. #endif // __SIKI_D3D_D3DUTIL_H__
  39.  


siki/d3d/d3dutil.cpp : ver090227

  1. /*
  2.  * d3dutil.cpp
  3.  * Copyright (C) 2009 siki
  4.  *
  5.  * This program is free software: you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation, either version 3 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13.  * GNU General Public License for more details.
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program. If not, see
  16.  * http://www.gnu.org/licenses/gpl-3.0.html.
  17.  *
  18.  * author:rei
  19.  */
  20. #include "d3dutil.hpp"
  21.  
  22. namespace siki{
  23. namespace d3d{
  24.  
  25. /***
  26.  *** COMオブジェクトを解放する
  27.  ***/
  28. void Release(IUnknown *handle){
  29. handle->Release();
  30. handle = 0;
  31. }
  32.  
  33. } // namespace d3d
  34. } // namespace siki
  35.  

[09/02/27 18:12][履歴][編集]
最終更新:2009年02月27日 18:12