d3dx9shape.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include "d3dx9.h"
  20. #ifndef __D3DX9SHAPE_H__
  21. #define __D3DX9SHAPE_H__
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. HRESULT WINAPI D3DXCreateBox(struct IDirect3DDevice9 *device, float width, float height,
  26. float depth, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
  27. HRESULT WINAPI D3DXCreateCylinder(struct IDirect3DDevice9 *device, float radius1, float radius2,
  28. float length, UINT slices, UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
  29. HRESULT WINAPI D3DXCreatePolygon(struct IDirect3DDevice9 *device, float length, UINT sides, struct ID3DXMesh **mesh,
  30. ID3DXBuffer **adjacency);
  31. HRESULT WINAPI D3DXCreateSphere(struct IDirect3DDevice9 *device, float radius, UINT slices,
  32. UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
  33. HRESULT WINAPI D3DXCreateTeapot(struct IDirect3DDevice9 *device,
  34. struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
  35. HRESULT WINAPI D3DXCreateTextA(struct IDirect3DDevice9 *device, HDC hdc, const char *text, float deviation,
  36. float extrusion, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency, GLYPHMETRICSFLOAT *glyphmetrics);
  37. HRESULT WINAPI D3DXCreateTextW(struct IDirect3DDevice9 *device, HDC hdc, const WCHAR *text, float deviation,
  38. FLOAT extrusion, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency, GLYPHMETRICSFLOAT *glyphmetrics);
  39. HRESULT WINAPI D3DXCreateTorus(struct IDirect3DDevice9 *device,
  40. float innerradius, float outerradius, UINT sides, UINT rings, struct ID3DXMesh **mesh, ID3DXBuffer **adjacency);
  41. #define D3DXCreateText __MINGW_NAME_AW(D3DXCreateText)
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* __D3DX9SHAPE_H__ */