d2dbasetypes.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright 2013 Nikolay Sivov for CodeWeavers
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. #ifndef _D2DBASETYPES_INCLUDED
  19. #define _D2DBASETYPES_INCLUDED
  20. #ifndef D3DCOLORVALUE_DEFINED
  21. typedef struct D3DCOLORVALUE
  22. {
  23. float r;
  24. float g;
  25. float b;
  26. float a;
  27. } D3DCOLORVALUE;
  28. #define D3DCOLORVALUE_DEFINED
  29. #endif
  30. typedef D3DCOLORVALUE D2D_COLOR_F;
  31. typedef struct D2D_RECT_F
  32. {
  33. float left;
  34. float top;
  35. float right;
  36. float bottom;
  37. } D2D_RECT_F;
  38. typedef struct D2D_SIZE_F
  39. {
  40. float width;
  41. float height;
  42. } D2D_SIZE_F;
  43. typedef struct D2D_POINT_2U
  44. {
  45. UINT32 x;
  46. UINT32 y;
  47. } D2D_POINT_2U;
  48. typedef struct D2D_RECT_U
  49. {
  50. UINT32 left;
  51. UINT32 top;
  52. UINT32 right;
  53. UINT32 bottom;
  54. } D2D_RECT_U;
  55. #endif /* _D2DBASETYPES_INCLUDED */