/* IWineD3DClipper implementation
*
* Copyright 2000 (c) Marcus Meissner
* Copyright 2000 (c) TransGaming Technologies Inc.
* Copyright 2006 (c) Stefan Dösinger
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#include "config.h"
#include <stdio.h>
#ifdef HAVE_FLOAT_H
# include <float.h>
#endif
#include "wined3d_private.h"
static HRESULT WINAPI IWineD3DClipperImpl_QueryInterface(IWineD3DClipper *iface, REFIID riid, void **object)
{
{
return S_OK;
}
return E_NOINTERFACE;
}
{
return ref;
}
{
if (ref == 0)
{
return 0;
}
else return ref;
}
{
return WINED3D_OK;
}
{
if( Flags )
{
return WINED3DERR_INVALIDCALL;
}
return WINED3D_OK;
}
{
{
if (hDC)
{
{
if (GetVersion() & 0x80000000)
{
/* map region to screen coordinates */
}
if (Rect)
{
}
}
}
return WINED3D_OK;
}
else
{
static int warned = 0;
if (warned++ < 10)
return WINEDDERR_NOCLIPLIST;
}
}
static HRESULT WINAPI IWineD3DClipperImpl_SetClipList(IWineD3DClipper *iface, const RGNDATA *rgn, DWORD Flags)
{
static int warned = 0;
return WINED3D_OK;
}
{
return WINED3D_OK;
}
{
/* XXX What is safest? */
return WINED3D_OK;
}
{
};
{
if(!obj)
{
ERR("Out of memory when trying to allocate a WineD3D Clipper\n");
return NULL;
}
return (IWineD3DClipper *) obj;
}