Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5 
      6  * d2dbasetypes.h - Header file for the Direct2D API
      7  * No original Microsoft headers were used in the creation of this
      8  * file.
      9  *API docs available at: http://msdn.microsoft.com/en-us/library/dd372349%28v=VS.85%29.aspx
     10  */
     11 
     12 #ifndef _D2DBASETYPES_H
     13 #define _D2DBASETYPES_H
     14 
     15 #include <d3d9types.h>
     16 
     17 typedef D3DCOLORVALUE D2D_COLOR_F;
     18 
     19 struct D2D_MATRIX_3X2_F {
     20   FLOAT _11;
     21   FLOAT _12;
     22   FLOAT _21;
     23   FLOAT _22;
     24   FLOAT _31;
     25   FLOAT _32;
     26 };
     27 
     28 struct D2D_POINT_2F {
     29   FLOAT x;
     30   FLOAT y;
     31 };
     32 
     33 struct D2D_POINT_2U {
     34   UINT32 x;
     35   UINT32 y;
     36 };
     37 
     38 struct D2D_RECT_F {
     39   FLOAT left;
     40   FLOAT top;
     41   FLOAT right;
     42   FLOAT bottom;
     43 };
     44 
     45 struct D2D_RECT_U {
     46   UINT32 left;
     47   UINT32 top;
     48   UINT32 right;
     49   UINT32 bottom;
     50 };
     51 
     52 struct D2D_SIZE_F {
     53   FLOAT width;
     54   FLOAT height;
     55 };
     56 
     57 struct D2D_SIZE_U {
     58   UINT32 width;
     59   UINT32 height;
     60 };
     61 
     62 typedef D2D_COLOR_F D2D1_COLOR_F;
     63 
     64 typedef struct D2D_POINT_2F D2D1_POINT_2F;
     65 
     66 typedef struct D2D_POINT_2U D2D1_POINT_2U;
     67 
     68 typedef struct D2D_RECT_F D2D1_RECT_F;
     69 
     70 typedef struct D2D_RECT_U D2D1_RECT_U;
     71 
     72 typedef struct D2D_SIZE_F D2D1_SIZE_F;
     73 
     74 typedef struct D2D_SIZE_U D2D1_SIZE_U;
     75 
     76 #endif /* _D2DBASETYPES_H */
     77