siki/d3d/d3dutil.hpp : ver090227
/*
* d3dutil.hpp
* Copyright (C) 2009 siki
*
* This program 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.
*
* This program 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 this program. If not, see
* http://www.gnu.org/licenses/gpl-3.0.html.
*
* author:rei
*/
#ifndef __SIKI_D3D_D3DUTIL_H__
#define __SIKI_D3D_D3DUTIL_H__
#include <d3d9.h>
namespace siki{
namespace d3d{
/***
*** COMオブジェクトを解放する
***/
void Release(IUnknown *handle);
} // namespace d3d
} // namespace siki
#endif // __SIKI_D3D_D3DUTIL_H__
siki/d3d/d3dutil.cpp : ver090227
/*
* d3dutil.cpp
* Copyright (C) 2009 siki
*
* This program 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.
*
* This program 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 this program. If not, see
* http://www.gnu.org/licenses/gpl-3.0.html.
*
* author:rei
*/
#include "d3dutil.hpp"
namespace siki{
namespace d3d{
/***
*** COMオブジェクトを解放する
***/
void Release(IUnknown *handle){
handle->Release();
handle = 0;
}
} // namespace d3d
} // namespace siki
最終更新:2009年02月27日 18:12