1#include <_mingw_unicode.h>
2/*
3 * Copyright 2010 Christian Costa
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20#include "d3dx9.h"
21
22#ifndef __D3DX9SHAPE_H__
23#define __D3DX9SHAPE_H__
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29HRESULT WINAPI D3DXCreateBox(struct IDirect3DDevice9 *device, float width, float height,
30        float depth, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
31HRESULT WINAPI D3DXCreateCylinder(struct IDirect3DDevice9 *device, float radius1, float radius2,
32        float length, UINT slices, UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
33HRESULT WINAPI D3DXCreateSphere(struct IDirect3DDevice9 *device, float radius, UINT slices,
34        UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
35HRESULT WINAPI D3DXCreateTeapot(struct IDirect3DDevice9 *device,
36        struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
37HRESULT WINAPI D3DXCreateTextA(struct IDirect3DDevice9 *device, HDC hdc, const char *text, float deviation,
38        float extrusion, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency, GLYPHMETRICSFLOAT *glyphmetrics);
39HRESULT WINAPI D3DXCreateTextW(struct IDirect3DDevice9 *device, HDC hdc, const WCHAR *text, float deviation,
40        FLOAT extrusion, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency, GLYPHMETRICSFLOAT *glyphmetrics);
41#define D3DXCreateText __MINGW_NAME_AW(D3DXCreateText)
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* __D3DX9SHAPE_H__ */
48