| 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 |  | 
 
 
 
 
 | 7 | #ifndef _D2D1_EFFECT_AUTHOR_H_ | 
 
 
 
 
 | 8 | #define _D2D1_EFFECT_AUTHOR_H_ | 
 
 
 
 
 | 9 |  | 
 
 
 
 
 | 10 | #include <d2d1_1.h> | 
 
 
 
 
 | 11 |  | 
 
 
 
 
 | 12 | typedef HRESULT (CALLBACK *PD2D1_PROPERTY_SET_FUNCTION)(IUnknown*,const BYTE*,UINT32); | 
 
 
 
 
 | 13 | typedef HRESULT (CALLBACK *PD2D1_PROPERTY_GET_FUNCTION)(const IUnknown*,BYTE*,UINT32 dataSize,UINT32*); | 
 
 
 
 
 | 14 |  | 
 
 
 
 
 | 15 | typedef enum D2D1_BLEND_OPERATION { | 
 
 
 
 
 | 16 | D2D1_BLEND_OPERATION_ADD          = 1, | 
 
 
 
 
 | 17 | D2D1_BLEND_OPERATION_SUBTRACT     = 2, | 
 
 
 
 
 | 18 | D2D1_BLEND_OPERATION_REV_SUBTRACT = 3, | 
 
 
 
 
 | 19 | D2D1_BLEND_OPERATION_MIN          = 4, | 
 
 
 
 
 | 20 | D2D1_BLEND_OPERATION_MAX          = 5, | 
 
 
 
 
 | 21 | D2D1_BLEND_OPERATION_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 22 | } D2D1_BLEND_OPERATION; | 
 
 
 
 
 | 23 |  | 
 
 
 
 
 | 24 | typedef enum D2D1_BLEND { | 
 
 
 
 
 | 25 | D2D1_BLEND_ZERO             = 1, | 
 
 
 
 
 | 26 | D2D1_BLEND_ONE              = 2, | 
 
 
 
 
 | 27 | D2D1_BLEND_SRC_COLOR        = 3, | 
 
 
 
 
 | 28 | D2D1_BLEND_INV_SRC_COLOR    = 4, | 
 
 
 
 
 | 29 | D2D1_BLEND_SRC_ALPHA        = 5, | 
 
 
 
 
 | 30 | D2D1_BLEND_INV_SRC_ALPHA    = 6, | 
 
 
 
 
 | 31 | D2D1_BLEND_DEST_ALPHA       = 7, | 
 
 
 
 
 | 32 | D2D1_BLEND_INV_DEST_ALPHA   = 8, | 
 
 
 
 
 | 33 | D2D1_BLEND_DEST_COLOR       = 9, | 
 
 
 
 
 | 34 | D2D1_BLEND_INV_DEST_COLOR   = 10, | 
 
 
 
 
 | 35 | D2D1_BLEND_SRC_ALPHA_SAT    = 11, | 
 
 
 
 
 | 36 | D2D1_BLEND_BLEND_FACTOR     = 14, | 
 
 
 
 
 | 37 | D2D1_BLEND_INV_BLEND_FACTOR = 15, | 
 
 
 
 
 | 38 | D2D1_BLEND_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 39 | } D2D1_BLEND; | 
 
 
 
 
 | 40 |  | 
 
 
 
 
 | 41 | typedef enum D2D1_FILTER { | 
 
 
 
 
 | 42 | D2D1_FILTER_MIN_MAG_MIP_POINT               = 0x00, | 
 
 
 
 
 | 43 | D2D1_FILTER_MIN_MAG_POINT_MIP_LINEAR        = 0x01, | 
 
 
 
 
 | 44 | D2D1_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT  = 0x04, | 
 
 
 
 
 | 45 | D2D1_FILTER_MIN_POINT_MAG_MIP_LINEAR        = 0x05, | 
 
 
 
 
 | 46 | D2D1_FILTER_MIN_LINEAR_MAG_MIP_POINT        = 0x10, | 
 
 
 
 
 | 47 | D2D1_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, | 
 
 
 
 
 | 48 | D2D1_FILTER_MIN_MAG_LINEAR_MIP_POINT        = 0x14, | 
 
 
 
 
 | 49 | D2D1_FILTER_MIN_MAG_MIP_LINEAR              = 0x15, | 
 
 
 
 
 | 50 | D2D1_FILTER_ANISOTROPIC                     = 0x55, | 
 
 
 
 
 | 51 | D2D1_FILTER_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 52 | } D2D1_FILTER; | 
 
 
 
 
 | 53 |  | 
 
 
 
 
 | 54 | typedef enum D2D1_VERTEX_USAGE { | 
 
 
 
 
 | 55 | D2D1_VERTEX_USAGE_STATIC  = 0, | 
 
 
 
 
 | 56 | D2D1_VERTEX_USAGE_DYNAMIC = 1, | 
 
 
 
 
 | 57 | D2D1_VERTEX_USAGE_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 58 | } D2D1_VERTEX_USAGE; | 
 
 
 
 
 | 59 |  | 
 
 
 
 
 | 60 | typedef enum D2D1_FEATURE { | 
 
 
 
 
 | 61 | D2D1_FEATURE_DOUBLES                  = 0, | 
 
 
 
 
 | 62 | D2D1_FEATURE_D3D10_X_HARDWARE_OPTIONS = 1, | 
 
 
 
 
 | 63 | D2D1_FEATURE_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 64 | } D2D1_FEATURE; | 
 
 
 
 
 | 65 |  | 
 
 
 
 
 | 66 | typedef enum D2D1_CHANGE_TYPE { | 
 
 
 
 
 | 67 | D2D1_CHANGE_TYPE_NONE       = 0, | 
 
 
 
 
 | 68 | D2D1_CHANGE_TYPE_PROPERTIES = 1, | 
 
 
 
 
 | 69 | D2D1_CHANGE_TYPE_CONTEXT    = 2, | 
 
 
 
 
 | 70 | D2D1_CHANGE_TYPE_GRAPH      = 3, | 
 
 
 
 
 | 71 | D2D1_CHANGE_TYPE_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 72 | } D2D1_CHANGE_TYPE; | 
 
 
 
 
 | 73 |  | 
 
 
 
 
 | 74 | DEFINE_ENUM_FLAG_OPERATORS(D2D1_CHANGE_TYPE); | 
 
 
 
 
 | 75 |  | 
 
 
 
 
 | 76 | typedef enum D2D1_PIXEL_OPTIONS { | 
 
 
 
 
 | 77 | D2D1_PIXEL_OPTIONS_NONE             = 0, | 
 
 
 
 
 | 78 | D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING = 1, | 
 
 
 
 
 | 79 | D2D1_PIXEL_OPTIONS_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 80 | } D2D1_PIXEL_OPTIONS; | 
 
 
 
 
 | 81 |  | 
 
 
 
 
 | 82 | DEFINE_ENUM_FLAG_OPERATORS(D2D1_PIXEL_OPTIONS); | 
 
 
 
 
 | 83 |  | 
 
 
 
 
 | 84 | typedef enum D2D1_VERTEX_OPTIONS { | 
 
 
 
 
 | 85 | D2D1_VERTEX_OPTIONS_NONE              = 0, | 
 
 
 
 
 | 86 | D2D1_VERTEX_OPTIONS_DO_NOT_CLEAR      = 1, | 
 
 
 
 
 | 87 | D2D1_VERTEX_OPTIONS_USE_DEPTH_BUFFER  = 2, | 
 
 
 
 
 | 88 | D2D1_VERTEX_OPTIONS_ASSUME_NO_OVERLAP = 4, | 
 
 
 
 
 | 89 | D2D1_VERTEX_OPTIONS_FORCE_DWORD = 0xffffffff | 
 
 
 
 
 | 90 | } D2D1_VERTEX_OPTIONS; | 
 
 
 
 
 | 91 |  | 
 
 
 
 
 | 92 | DEFINE_ENUM_FLAG_OPERATORS(D2D1_VERTEX_OPTIONS); | 
 
 
 
 
 | 93 |  | 
 
 
 
 
 | 94 | typedef struct D2D1_BLEND_DESCRIPTION { | 
 
 
 
 
 | 95 | D2D1_BLEND sourceBlend; | 
 
 
 
 
 | 96 | D2D1_BLEND destinationBlend; | 
 
 
 
 
 | 97 | D2D1_BLEND_OPERATION blendOperation; | 
 
 
 
 
 | 98 | D2D1_BLEND sourceBlendAlpha; | 
 
 
 
 
 | 99 | D2D1_BLEND destinationBlendAlpha; | 
 
 
 
 
 | 100 | D2D1_BLEND_OPERATION blendOperationAlpha; | 
 
 
 
 
 | 101 | FLOAT blendFactor[4]; | 
 
 
 
 
 | 102 | } D2D1_BLEND_DESCRIPTION; | 
 
 
 
 
 | 103 |  | 
 
 
 
 
 | 104 | typedef struct D2D1_RESOURCE_TEXTURE_PROPERTIES { | 
 
 
 
 
 | 105 | CONST UINT32 *extents; | 
 
 
 
 
 | 106 | UINT32 dimensions; | 
 
 
 
 
 | 107 | D2D1_BUFFER_PRECISION bufferPrecision; | 
 
 
 
 
 | 108 | D2D1_CHANNEL_DEPTH channelDepth; | 
 
 
 
 
 | 109 | D2D1_FILTER filter; | 
 
 
 
 
 | 110 | CONST D2D1_EXTEND_MODE *extendModes; | 
 
 
 
 
 | 111 | } D2D1_RESOURCE_TEXTURE_PROPERTIES; | 
 
 
 
 
 | 112 |  | 
 
 
 
 
 | 113 | typedef struct D2D1_INPUT_ELEMENT_DESC { | 
 
 
 
 
 | 114 | PCSTR semanticName; | 
 
 
 
 
 | 115 | UINT32 semanticIndex; | 
 
 
 
 
 | 116 | DXGI_FORMAT format; | 
 
 
 
 
 | 117 | UINT32 inputSlot; | 
 
 
 
 
 | 118 | UINT32 alignedByteOffset; | 
 
 
 
 
 | 119 | } D2D1_INPUT_ELEMENT_DESC; | 
 
 
 
 
 | 120 |  | 
 
 
 
 
 | 121 | typedef struct D2D1_VERTEX_BUFFER_PROPERTIES { | 
 
 
 
 
 | 122 | UINT32 inputCount; | 
 
 
 
 
 | 123 | D2D1_VERTEX_USAGE usage; | 
 
 
 
 
 | 124 | CONST BYTE *data; | 
 
 
 
 
 | 125 | UINT32 byteWidth; | 
 
 
 
 
 | 126 | } D2D1_VERTEX_BUFFER_PROPERTIES; | 
 
 
 
 
 | 127 |  | 
 
 
 
 
 | 128 | typedef struct D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES { | 
 
 
 
 
 | 129 | CONST BYTE *shaderBufferWithInputSignature; | 
 
 
 
 
 | 130 | UINT32 shaderBufferSize; | 
 
 
 
 
 | 131 | CONST D2D1_INPUT_ELEMENT_DESC *inputElements; | 
 
 
 
 
 | 132 | UINT32 elementCount; | 
 
 
 
 
 | 133 | UINT32 stride; | 
 
 
 
 
 | 134 | } D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES; | 
 
 
 
 
 | 135 |  | 
 
 
 
 
 | 136 | typedef struct D2D1_INPUT_DESCRIPTION { | 
 
 
 
 
 | 137 | D2D1_FILTER filter; | 
 
 
 
 
 | 138 | UINT32 levelOfDetailCount; | 
 
 
 
 
 | 139 | } D2D1_INPUT_DESCRIPTION; | 
 
 
 
 
 | 140 |  | 
 
 
 
 
 | 141 | typedef struct D2D1_VERTEX_RANGE { | 
 
 
 
 
 | 142 | UINT32 startVertex; | 
 
 
 
 
 | 143 | UINT32 vertexCount; | 
 
 
 
 
 | 144 | } D2D1_VERTEX_RANGE; | 
 
 
 
 
 | 145 |  | 
 
 
 
 
 | 146 | typedef struct D2D1_PROPERTY_BINDING { | 
 
 
 
 
 | 147 | PCWSTR propertyName; | 
 
 
 
 
 | 148 | PD2D1_PROPERTY_SET_FUNCTION setFunction; | 
 
 
 
 
 | 149 | PD2D1_PROPERTY_GET_FUNCTION getFunction; | 
 
 
 
 
 | 150 | } D2D1_PROPERTY_BINDING; | 
 
 
 
 
 | 151 |  | 
 
 
 
 
 | 152 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 153 |  | 
 
 
 
 
 | 154 | interface ID2D1VertexBuffer : public IUnknown | 
 
 
 
 
 | 155 | { | 
 
 
 
 
 | 156 | STDMETHOD(Map)(BYTE **data, UINT32 bufferSize) PURE; | 
 
 
 
 
 | 157 | STDMETHOD(Unmap)() PURE; | 
 
 
 
 
 | 158 | }; | 
 
 
 
 
 | 159 |  | 
 
 
 
 
 | 160 | #else | 
 
 
 
 
 | 161 |  | 
 
 
 
 
 | 162 | typedef interface ID2D1VertexBuffer ID2D1VertexBuffer; | 
 
 
 
 
 | 163 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 164 |  | 
 
 
 
 
 | 165 | #endif | 
 
 
 
 
 | 166 |  | 
 
 
 
 
 | 167 | DEFINE_GUID(IID_ID2D1VertexBuffer, 0x9b8b1336,0x00a5,0x4668,0x92,0xb7,0xce,0xd5,0xd8,0xbf,0x9b,0x7b); | 
 
 
 
 
 | 168 | __CRT_UUID_DECL(ID2D1VertexBuffer, 0x9b8b1336,0x00a5,0x4668,0x92,0xb7,0xce,0xd5,0xd8,0xbf,0x9b,0x7b); | 
 
 
 
 
 | 169 |  | 
 
 
 
 
 | 170 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 171 |  | 
 
 
 
 
 | 172 | interface ID2D1ResourceTexture : public IUnknown | 
 
 
 
 
 | 173 | { | 
 
 
 
 
 | 174 | STDMETHOD(Update)(CONST UINT32 *minimumExtents, CONST UINT32 *maximimumExtents, | 
 
 
 
 
 | 175 | CONST UINT32 *strides, UINT32 dimensions, CONST BYTE *data, UINT32 dataCount) PURE; | 
 
 
 
 
 | 176 | }; | 
 
 
 
 
 | 177 |  | 
 
 
 
 
 | 178 | #else | 
 
 
 
 
 | 179 |  | 
 
 
 
 
 | 180 | typedef interface ID2D1ResourceTexture ID2D1ResourceTexture; | 
 
 
 
 
 | 181 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 182 |  | 
 
 
 
 
 | 183 | #endif | 
 
 
 
 
 | 184 |  | 
 
 
 
 
 | 185 | DEFINE_GUID(IID_ID2D1ResourceTexture, 0x688d15c3,0x02b0,0x438d,0xb1,0x3a,0xd1,0xb4,0x4c,0x32,0xc3,0x9a); | 
 
 
 
 
 | 186 | __CRT_UUID_DECL(ID2D1ResourceTexture, 0x688d15c3,0x02b0,0x438d,0xb1,0x3a,0xd1,0xb4,0x4c,0x32,0xc3,0x9a); | 
 
 
 
 
 | 187 |  | 
 
 
 
 
 | 188 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 189 |  | 
 
 
 
 
 | 190 | interface ID2D1RenderInfo : public IUnknown | 
 
 
 
 
 | 191 | { | 
 
 
 
 
 | 192 | STDMETHOD(SetInputDescription)(UINT32 inputIndex, D2D1_INPUT_DESCRIPTION inputDescription) PURE; | 
 
 
 
 
 | 193 | STDMETHOD(SetOutputBuffer)(D2D1_BUFFER_PRECISION bufferPrecision, D2D1_CHANNEL_DEPTH channelDepth) PURE; | 
 
 
 
 
 | 194 | STDMETHOD_(void, SetCached)(BOOL isCached) PURE; | 
 
 
 
 
 | 195 | STDMETHOD_(void, SetInstructionCountHint)(UINT32 instructionCount) PURE; | 
 
 
 
 
 | 196 | }; | 
 
 
 
 
 | 197 |  | 
 
 
 
 
 | 198 | #else | 
 
 
 
 
 | 199 |  | 
 
 
 
 
 | 200 | typedef interface ID2D1RenderInfo ID2D1RenderInfo; | 
 
 
 
 
 | 201 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 202 |  | 
 
 
 
 
 | 203 | #endif | 
 
 
 
 
 | 204 |  | 
 
 
 
 
 | 205 | DEFINE_GUID(IID_ID2D1RenderInfo, 0x519ae1bd,0xd19a,0x420d,0xb8,0x49,0x36,0x4f,0x59,0x47,0x76,0xb7); | 
 
 
 
 
 | 206 | __CRT_UUID_DECL(ID2D1RenderInfo, 0x519ae1bd,0xd19a,0x420d,0xb8,0x49,0x36,0x4f,0x59,0x47,0x76,0xb7); | 
 
 
 
 
 | 207 |  | 
 
 
 
 
 | 208 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 209 |  | 
 
 
 
 
 | 210 | interface ID2D1DrawInfo : public ID2D1RenderInfo | 
 
 
 
 
 | 211 | { | 
 
 
 
 
 | 212 | STDMETHOD(SetPixelShaderConstantBuffer)(CONST BYTE *buffer, UINT32 bufferCount) PURE; | 
 
 
 
 
 | 213 | STDMETHOD(SetResourceTexture)(UINT32 textureIndex, ID2D1ResourceTexture *resourceTexture) PURE; | 
 
 
 
 
 | 214 | STDMETHOD(SetVertexShaderConstantBuffer)(CONST BYTE *buffer, UINT32 bufferCount) PURE; | 
 
 
 
 
 | 215 | STDMETHOD(SetPixelShader)(REFGUID shaderId, D2D1_PIXEL_OPTIONS pixelOptions = D2D1_PIXEL_OPTIONS_NONE) PURE; | 
 
 
 
 
 | 216 | STDMETHOD(SetVertexProcessing)(ID2D1VertexBuffer *vertexBuffer, D2D1_VERTEX_OPTIONS vertexOptions, | 
 
 
 
 
 | 217 | CONST D2D1_BLEND_DESCRIPTION *blendDescription = NULL, CONST D2D1_VERTEX_RANGE *vertexRange = NULL, | 
 
 
 
 
 | 218 | CONST GUID *vertexShader = NULL) PURE; | 
 
 
 
 
 | 219 | }; | 
 
 
 
 
 | 220 |  | 
 
 
 
 
 | 221 | #else | 
 
 
 
 
 | 222 |  | 
 
 
 
 
 | 223 | typedef interface ID2D1DrawInfo ID2D1DrawInfo; | 
 
 
 
 
 | 224 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 225 |  | 
 
 
 
 
 | 226 | #endif | 
 
 
 
 
 | 227 |  | 
 
 
 
 
 | 228 | DEFINE_GUID(IID_ID2D1DrawInfo, 0x693ce632,0x7f2f,0x45de,0x93,0xfe,0x18,0xd8,0x8b,0x37,0xaa,0x21); | 
 
 
 
 
 | 229 | __CRT_UUID_DECL(ID2D1DrawInfo, 0x693ce632,0x7f2f,0x45de,0x93,0xfe,0x18,0xd8,0x8b,0x37,0xaa,0x21); | 
 
 
 
 
 | 230 |  | 
 
 
 
 
 | 231 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 232 |  | 
 
 
 
 
 | 233 | interface ID2D1TransformNode : public IUnknown | 
 
 
 
 
 | 234 | { | 
 
 
 
 
 | 235 | STDMETHOD_(UINT32, GetInputCount)() CONST PURE; | 
 
 
 
 
 | 236 | }; | 
 
 
 
 
 | 237 |  | 
 
 
 
 
 | 238 | #else | 
 
 
 
 
 | 239 |  | 
 
 
 
 
 | 240 | typedef interface ID2D1TransformNode ID2D1TransformNode; | 
 
 
 
 
 | 241 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 242 |  | 
 
 
 
 
 | 243 | #endif | 
 
 
 
 
 | 244 |  | 
 
 
 
 
 | 245 | DEFINE_GUID(IID_ID2D1TransformNode, 0xb2efe1e7,0x729f,0x4102,0x94,0x9f,0x50,0x5f,0xa2,0x1b,0xf6,0x66); | 
 
 
 
 
 | 246 | __CRT_UUID_DECL(ID2D1TransformNode, 0xb2efe1e7,0x729f,0x4102,0x94,0x9f,0x50,0x5f,0xa2,0x1b,0xf6,0x66); | 
 
 
 
 
 | 247 |  | 
 
 
 
 
 | 248 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 249 |  | 
 
 
 
 
 | 250 | interface ID2D1Transform : public ID2D1TransformNode | 
 
 
 
 
 | 251 | { | 
 
 
 
 
 | 252 | STDMETHOD(MapOutputRectToInputRects)(CONST D2D1_RECT_L *outputRect, D2D1_RECT_L *inputRects, | 
 
 
 
 
 | 253 | UINT32 inputRectsCount) CONST PURE; | 
 
 
 
 
 | 254 | STDMETHOD(MapInputRectsToOutputRect)(CONST D2D1_RECT_L *inputRects, CONST D2D1_RECT_L *inputOpaqueSubRects, | 
 
 
 
 
 | 255 | UINT32 inputRectCount, D2D1_RECT_L *outputRect, D2D1_RECT_L *outputOpaqueSubRect) PURE; | 
 
 
 
 
 | 256 | STDMETHOD(MapInvalidRect)(UINT32 inputIndex, D2D1_RECT_L invalidInputRect, D2D1_RECT_L *invalidOutputRect) CONST PURE; | 
 
 
 
 
 | 257 | }; | 
 
 
 
 
 | 258 |  | 
 
 
 
 
 | 259 | #else | 
 
 
 
 
 | 260 |  | 
 
 
 
 
 | 261 | typedef interface ID2D1Transform ID2D1Transform; | 
 
 
 
 
 | 262 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 263 |  | 
 
 
 
 
 | 264 | #endif | 
 
 
 
 
 | 265 |  | 
 
 
 
 
 | 266 | DEFINE_GUID(IID_ID2D1Transform, 0xef1a287d,0x342a,0x4f76,0x8f,0xdb,0xda,0x0d,0x6e,0xa9,0xf9,0x2b); | 
 
 
 
 
 | 267 | __CRT_UUID_DECL(ID2D1Transform, 0xef1a287d,0x342a,0x4f76,0x8f,0xdb,0xda,0x0d,0x6e,0xa9,0xf9,0x2b); | 
 
 
 
 
 | 268 |  | 
 
 
 
 
 | 269 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 270 |  | 
 
 
 
 
 | 271 | interface ID2D1DrawTransform : public ID2D1Transform | 
 
 
 
 
 | 272 | { | 
 
 
 
 
 | 273 | STDMETHOD(SetDrawInfo)(ID2D1DrawInfo *drawInfo) PURE; | 
 
 
 
 
 | 274 | }; | 
 
 
 
 
 | 275 |  | 
 
 
 
 
 | 276 | #else | 
 
 
 
 
 | 277 |  | 
 
 
 
 
 | 278 | typedef interface ID2D1DrawTransform ID2D1DrawTransform; | 
 
 
 
 
 | 279 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 280 |  | 
 
 
 
 
 | 281 | #endif | 
 
 
 
 
 | 282 |  | 
 
 
 
 
 | 283 | DEFINE_GUID(IID_ID2D1DrawTransform, 0x36bfdcb6,0x9739,0x435d,0xa3,0x0d,0xa6,0x53,0xbe,0xff,0x6a,0x6f); | 
 
 
 
 
 | 284 | __CRT_UUID_DECL(ID2D1DrawTransform, 0x36bfdcb6,0x9739,0x435d,0xa3,0x0d,0xa6,0x53,0xbe,0xff,0x6a,0x6f); | 
 
 
 
 
 | 285 |  | 
 
 
 
 
 | 286 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 287 |  | 
 
 
 
 
 | 288 | interface ID2D1TransformGraph : public IUnknown | 
 
 
 
 
 | 289 | { | 
 
 
 
 
 | 290 | STDMETHOD_(UINT32, GetInputCount)() CONST PURE; | 
 
 
 
 
 | 291 | STDMETHOD(SetSingleTransformNode)(ID2D1TransformNode *node) PURE; | 
 
 
 
 
 | 292 | STDMETHOD(AddNode)(ID2D1TransformNode *node) PURE; | 
 
 
 
 
 | 293 | STDMETHOD(RemoveNode)(ID2D1TransformNode *node) PURE; | 
 
 
 
 
 | 294 | STDMETHOD(SetOutputNode)(ID2D1TransformNode *node) PURE; | 
 
 
 
 
 | 295 | STDMETHOD(ConnectNode)(ID2D1TransformNode *fromNode, ID2D1TransformNode *toNode, UINT32 toNodeInputIndex) PURE; | 
 
 
 
 
 | 296 | STDMETHOD(ConnectToEffectInput)(UINT32 toEffectInputIndex, ID2D1TransformNode *node, UINT32 toNodeInputIndex) PURE; | 
 
 
 
 
 | 297 | STDMETHOD_(void, Clear)() PURE; | 
 
 
 
 
 | 298 | STDMETHOD(SetPassthroughGraph)(UINT32 effectInputIndex) PURE; | 
 
 
 
 
 | 299 | }; | 
 
 
 
 
 | 300 |  | 
 
 
 
 
 | 301 | #else | 
 
 
 
 
 | 302 |  | 
 
 
 
 
 | 303 | typedef interface ID2D1TransformGraph ID2D1TransformGraph; | 
 
 
 
 
 | 304 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 305 |  | 
 
 
 
 
 | 306 | #endif | 
 
 
 
 
 | 307 |  | 
 
 
 
 
 | 308 | DEFINE_GUID(IID_ID2D1TransformGraph, 0x13d29038,0xc3e6,0x4034,0x90,0x81,0x13,0xb5,0x3a,0x41,0x79,0x92); | 
 
 
 
 
 | 309 | __CRT_UUID_DECL(ID2D1TransformGraph, 0x13d29038,0xc3e6,0x4034,0x90,0x81,0x13,0xb5,0x3a,0x41,0x79,0x92); | 
 
 
 
 
 | 310 |  | 
 
 
 
 
 | 311 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 312 |  | 
 
 
 
 
 | 313 | interface ID2D1ConcreteTransform : public ID2D1TransformNode | 
 
 
 
 
 | 314 | { | 
 
 
 
 
 | 315 | STDMETHOD(SetOutputBuffer)(D2D1_BUFFER_PRECISION bufferPrecision, D2D1_CHANNEL_DEPTH channelDepth) PURE; | 
 
 
 
 
 | 316 | STDMETHOD_(void, SetCached)(BOOL isCached) PURE; | 
 
 
 
 
 | 317 | }; | 
 
 
 
 
 | 318 |  | 
 
 
 
 
 | 319 | #else | 
 
 
 
 
 | 320 |  | 
 
 
 
 
 | 321 | typedef interface ID2D1ConcreteTransform ID2D1ConcreteTransform; | 
 
 
 
 
 | 322 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 323 |  | 
 
 
 
 
 | 324 | #endif | 
 
 
 
 
 | 325 |  | 
 
 
 
 
 | 326 | DEFINE_GUID(IID_ID2D1ConcreteTransform, 0x1a799d8a,0x69f7,0x4e4c,0x9f,0xed,0x43,0x7c,0xcc,0x66,0x84,0xcc); | 
 
 
 
 
 | 327 | __CRT_UUID_DECL(ID2D1ConcreteTransform, 0x1a799d8a,0x69f7,0x4e4c,0x9f,0xed,0x43,0x7c,0xcc,0x66,0x84,0xcc); | 
 
 
 
 
 | 328 |  | 
 
 
 
 
 | 329 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 330 |  | 
 
 
 
 
 | 331 | interface ID2D1BlendTransform : public ID2D1ConcreteTransform | 
 
 
 
 
 | 332 | { | 
 
 
 
 
 | 333 | STDMETHOD_(void, SetDescription)(CONST D2D1_BLEND_DESCRIPTION *description) PURE; | 
 
 
 
 
 | 334 | STDMETHOD_(void, GetDescription)(D2D1_BLEND_DESCRIPTION *description) CONST PURE; | 
 
 
 
 
 | 335 | }; | 
 
 
 
 
 | 336 |  | 
 
 
 
 
 | 337 | #else | 
 
 
 
 
 | 338 |  | 
 
 
 
 
 | 339 | typedef interface ID2D1BlendTransform ID2D1BlendTransform; | 
 
 
 
 
 | 340 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 341 |  | 
 
 
 
 
 | 342 | #endif | 
 
 
 
 
 | 343 |  | 
 
 
 
 
 | 344 | DEFINE_GUID(IID_ID2D1BlendTransform, 0x63ac0b32,0xba44,0x450f,0x88,0x06,0x7f,0x4c,0xa1,0xff,0x2f,0x1b); | 
 
 
 
 
 | 345 | __CRT_UUID_DECL(ID2D1BlendTransform, 0x63ac0b32,0xba44,0x450f,0x88,0x06,0x7f,0x4c,0xa1,0xff,0x2f,0x1b); | 
 
 
 
 
 | 346 |  | 
 
 
 
 
 | 347 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 348 |  | 
 
 
 
 
 | 349 | interface ID2D1BorderTransform : public ID2D1ConcreteTransform | 
 
 
 
 
 | 350 | { | 
 
 
 
 
 | 351 | STDMETHOD_(void, SetExtendModeX)(D2D1_EXTEND_MODE extendMode) PURE; | 
 
 
 
 
 | 352 | STDMETHOD_(void, SetExtendModeY)(D2D1_EXTEND_MODE extendMode) PURE; | 
 
 
 
 
 | 353 | STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeX)() CONST PURE; | 
 
 
 
 
 | 354 | STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeY)() CONST PURE; | 
 
 
 
 
 | 355 | }; | 
 
 
 
 
 | 356 |  | 
 
 
 
 
 | 357 | #else | 
 
 
 
 
 | 358 |  | 
 
 
 
 
 | 359 | typedef interface ID2D1BorderTransform ID2D1BorderTransform; | 
 
 
 
 
 | 360 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 361 |  | 
 
 
 
 
 | 362 | #endif | 
 
 
 
 
 | 363 |  | 
 
 
 
 
 | 364 | DEFINE_GUID(IID_ID2D1BorderTransform, 0x4998735c,0x3a19,0x473c,0x97,0x81,0x65,0x68,0x47,0xe3,0xa3,0x47); | 
 
 
 
 
 | 365 | __CRT_UUID_DECL(ID2D1BorderTransform, 0x4998735c,0x3a19,0x473c,0x97,0x81,0x65,0x68,0x47,0xe3,0xa3,0x47); | 
 
 
 
 
 | 366 |  | 
 
 
 
 
 | 367 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 368 |  | 
 
 
 
 
 | 369 | interface ID2D1OffsetTransform : public ID2D1TransformNode | 
 
 
 
 
 | 370 | { | 
 
 
 
 
 | 371 | STDMETHOD_(void, SetOffset)(D2D1_POINT_2L offset) PURE; | 
 
 
 
 
 | 372 | STDMETHOD_(D2D1_POINT_2L, GetOffset)() CONST PURE; | 
 
 
 
 
 | 373 | }; | 
 
 
 
 
 | 374 |  | 
 
 
 
 
 | 375 | #else | 
 
 
 
 
 | 376 |  | 
 
 
 
 
 | 377 | typedef interface ID2D1OffsetTransform ID2D1OffsetTransform; | 
 
 
 
 
 | 378 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 379 |  | 
 
 
 
 
 | 380 | #endif | 
 
 
 
 
 | 381 |  | 
 
 
 
 
 | 382 | DEFINE_GUID(IID_ID2D1OffsetTransform, 0x3fe6adea,0x7643,0x4f53,0xbd,0x14,0xa0,0xce,0x63,0xf2,0x40,0x42); | 
 
 
 
 
 | 383 | __CRT_UUID_DECL(ID2D1OffsetTransform, 0x3fe6adea,0x7643,0x4f53,0xbd,0x14,0xa0,0xce,0x63,0xf2,0x40,0x42); | 
 
 
 
 
 | 384 |  | 
 
 
 
 
 | 385 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 386 |  | 
 
 
 
 
 | 387 | interface ID2D1BoundsAdjustmentTransform : public ID2D1TransformNode | 
 
 
 
 
 | 388 | { | 
 
 
 
 
 | 389 | STDMETHOD_(void, SetOutputBounds)(CONST D2D1_RECT_L *outputBounds) PURE; | 
 
 
 
 
 | 390 | STDMETHOD_(void, GetOutputBounds)(D2D1_RECT_L *outputBounds) CONST PURE; | 
 
 
 
 
 | 391 | }; | 
 
 
 
 
 | 392 |  | 
 
 
 
 
 | 393 | #else | 
 
 
 
 
 | 394 |  | 
 
 
 
 
 | 395 | typedef interface ID2D1BoundsAdjustmentTransform ID2D1BoundsAdjustmentTransform; | 
 
 
 
 
 | 396 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 397 |  | 
 
 
 
 
 | 398 | #endif | 
 
 
 
 
 | 399 |  | 
 
 
 
 
 | 400 | DEFINE_GUID(IID_ID2D1BoundsAdjustmentTransform, 0x90f732e2,0x5092,0x4606,0xa8,0x19,0x86,0x51,0x97,0x0b,0xac,0xcd); | 
 
 
 
 
 | 401 | __CRT_UUID_DECL(ID2D1BoundsAdjustmentTransform, 0x90f732e2,0x5092,0x4606,0xa8,0x19,0x86,0x51,0x97,0x0b,0xac,0xcd); | 
 
 
 
 
 | 402 |  | 
 
 
 
 
 | 403 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 404 |  | 
 
 
 
 
 | 405 | interface ID2D1EffectContext : public IUnknown | 
 
 
 
 
 | 406 | { | 
 
 
 
 
 | 407 | STDMETHOD_(void, GetDpi)(FLOAT *dpiX, FLOAT *dpiY) CONST PURE; | 
 
 
 
 
 | 408 | STDMETHOD(CreateEffect)(REFCLSID effectId, ID2D1Effect **effect) PURE; | 
 
 
 
 
 | 409 | STDMETHOD(GetMaximumSupportedFeatureLevel)(CONST D3D_FEATURE_LEVEL *featureLevels, UINT32 featureLevelsCount, | 
 
 
 
 
 | 410 | D3D_FEATURE_LEVEL *maximumSupportedFeatureLevel) CONST PURE; | 
 
 
 
 
 | 411 | STDMETHOD(CreateTransformNodeFromEffect)(ID2D1Effect *effect, ID2D1TransformNode **transformNode) PURE; | 
 
 
 
 
 | 412 | STDMETHOD(CreateBlendTransform)(UINT32 numInputs, CONST D2D1_BLEND_DESCRIPTION *blendDescription, ID2D1BlendTransform **transform) PURE; | 
 
 
 
 
 | 413 | STDMETHOD(CreateBorderTransform)(D2D1_EXTEND_MODE extendModeX, D2D1_EXTEND_MODE extendModeY, ID2D1BorderTransform **transform) PURE; | 
 
 
 
 
 | 414 | STDMETHOD(CreateOffsetTransform)(D2D1_POINT_2L offset, ID2D1OffsetTransform **transform) PURE; | 
 
 
 
 
 | 415 | STDMETHOD(CreateBoundsAdjustmentTransform)(CONST D2D1_RECT_L *outputRectangle, ID2D1BoundsAdjustmentTransform **transform) PURE; | 
 
 
 
 
 | 416 | STDMETHOD(LoadPixelShader)(REFGUID shaderId, CONST BYTE *shaderBuffer, UINT32 shaderBufferCount) PURE; | 
 
 
 
 
 | 417 | STDMETHOD(LoadVertexShader)(REFGUID resourceId, CONST BYTE *shaderBuffer, UINT32 shaderBufferCount) PURE; | 
 
 
 
 
 | 418 | STDMETHOD(LoadComputeShader)(REFGUID resourceId, CONST BYTE *shaderBuffer, UINT32 shaderBufferCount) PURE; | 
 
 
 
 
 | 419 | STDMETHOD_(BOOL, IsShaderLoaded)(REFGUID shaderId) PURE; | 
 
 
 
 
 | 420 | STDMETHOD(CreateResourceTexture)(CONST GUID *resourceId, CONST D2D1_RESOURCE_TEXTURE_PROPERTIES *resourceTextureProperties, | 
 
 
 
 
 | 421 | CONST BYTE *data, CONST UINT32 *strides, UINT32 dataSize, ID2D1ResourceTexture **resourceTexture) PURE; | 
 
 
 
 
 | 422 | STDMETHOD(FindResourceTexture)(CONST GUID *resourceId, ID2D1ResourceTexture **resourceTexture) PURE; | 
 
 
 
 
 | 423 | STDMETHOD(CreateVertexBuffer)(CONST D2D1_VERTEX_BUFFER_PROPERTIES *vertexBufferProperties, CONST GUID *resourceId, | 
 
 
 
 
 | 424 | CONST D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES *customVertexBufferProperties, ID2D1VertexBuffer **buffer) PURE; | 
 
 
 
 
 | 425 | STDMETHOD(FindVertexBuffer)(CONST GUID *resourceId, ID2D1VertexBuffer **buffer) PURE; | 
 
 
 
 
 | 426 | STDMETHOD(CreateColorContext)(D2D1_COLOR_SPACE space, CONST BYTE *profile, UINT32 profileSize, ID2D1ColorContext **colorContext) PURE; | 
 
 
 
 
 | 427 | STDMETHOD(CreateColorContextFromFilename)(PCWSTR filename, ID2D1ColorContext **colorContext) PURE; | 
 
 
 
 
 | 428 | STDMETHOD(CreateColorContextFromWicColorContext)(IWICColorContext *wicColorContext, ID2D1ColorContext **colorContext) PURE; | 
 
 
 
 
 | 429 | STDMETHOD(CheckFeatureSupport)(D2D1_FEATURE feature, void *featureSupportData, UINT32 featureSupportDataSize) CONST PURE; | 
 
 
 
 
 | 430 | STDMETHOD_(BOOL, IsBufferPrecisionSupported)(D2D1_BUFFER_PRECISION bufferPrecision) CONST PURE; | 
 
 
 
 
 | 431 | }; | 
 
 
 
 
 | 432 |  | 
 
 
 
 
 | 433 | #else | 
 
 
 
 
 | 434 |  | 
 
 
 
 
 | 435 | typedef interface ID2D1EffectContext ID2D1EffectContext; | 
 
 
 
 
 | 436 | /* FIXME: Add full C declaration */ | 
 
 
 
 
 | 437 |  | 
 
 
 
 
 | 438 | #endif | 
 
 
 
 
 | 439 |  | 
 
 
 
 
 | 440 | DEFINE_GUID(IID_ID2D1EffectContext,0x3d9f916b,0x27dc,0x4ad7,0xb4,0xf1,0x64,0x94,0x53,0x40,0xf5,0x63); | 
 
 
 
 
 | 441 | __CRT_UUID_DECL(ID2D1EffectContext,0x3d9f916b,0x27dc,0x4ad7,0xb4,0xf1,0x64,0x94,0x53,0x40,0xf5,0x63); | 
 
 
 
 
 | 442 |  | 
 
 
 
 
 | 443 | #ifndef D2D_USE_C_DEFINITIONS | 
 
 
 
 
 | 444 |  | 
 
 
 
 
 | 445 | interface ID2D1EffectImpl : public IUnknown { | 
 
 
 
 
 | 446 | STDMETHOD(Initialize)(ID2D1EffectContext *effectContext, ID2D1TransformGraph *transformGraph) PURE; | 
 
 
 
 
 | 447 | STDMETHOD(PrepareForRender)(D2D1_CHANGE_TYPE changeType) PURE; | 
 
 
 
 
 | 448 | STDMETHOD(SetGraph)(ID2D1TransformGraph *transformGraph) PURE; | 
 
 
 
 
 | 449 | }; | 
 
 
 
 
 | 450 |  | 
 
 
 
 
 | 451 | #else | 
 
 
 
 
 | 452 |  | 
 
 
 
 
 | 453 | typedef interface ID2D1EffectImpl ID2D1EffectImpl; | 
 
 
 
 
 | 454 |  | 
 
 
 
 
 | 455 | typedef struct ID2D1EffectImplVtbl | 
 
 
 
 
 | 456 | { | 
 
 
 
 
 | 457 | IUnknownVtbl Base; | 
 
 
 
 
 | 458 | STDMETHOD(Initialize)(ID2D1EffectImpl*,ID2D1EffectContext*,ID2D1TransformGraph*) PURE; | 
 
 
 
 
 | 459 | STDMETHOD(PrepareForRender)(ID2D1EffectImpl*,D2D1_CHANGE_TYPE) PURE; | 
 
 
 
 
 | 460 | STDMETHOD(SetGraph)(ID2D1EffectImpl*,ID2D1TransformGraph*) PURE; | 
 
 
 
 
 | 461 | } ID2D1EffectImplVtbl; | 
 
 
 
 
 | 462 |  | 
 
 
 
 
 | 463 | interface ID2D1EffectImpl { | 
 
 
 
 
 | 464 | CONST struct ID2D1EffectImplVtbl *lpVtbl; | 
 
 
 
 
 | 465 | }; | 
 
 
 
 
 | 466 |  | 
 
 
 
 
 | 467 |  | 
 
 
 
 
 | 468 | #define ID2D1EffectImpl_QueryInterface(This, riid, ppv) ((This)->lpVtbl->Base.QueryInterface((IUnknown*)(This), riid, ppv)) | 
 
 
 
 
 | 469 | #define ID2D1EffectImpl_AddRef(This) ((This)->lpVtbl->Base.AddRef((IUnknown*)(This))) | 
 
 
 
 
 | 470 | #define ID2D1EffectImpl_Release(This) ((This)->lpVtbl->Base.Release((IUnknown*)(This))) | 
 
 
 
 
 | 471 | #define ID2D1EffectImpl_Initialize(This, effectContext, transformGraph) ((This)->lpVtbl->Initialize(This, effectContext, transformGraph)) | 
 
 
 
 
 | 472 | #define ID2D1EffectImpl_PrepareForRender(This, changeType) ((This)->lpVtbl->PrepareForRender(This, changeType)) | 
 
 
 
 
 | 473 | #define ID2D1EffectImpl_SetGraph(This, transformGraph) ((This)->lpVtbl->SetGraph(This, transformGraph)) | 
 
 
 
 
 | 474 |  | 
 
 
 
 
 | 475 | #endif | 
 
 
 
 
 | 476 |  | 
 
 
 
 
 | 477 | DEFINE_GUID(IID_ID2D1EffectImpl, 0xa248fd3f,0x3e6c,0x4e63,0x9f,0x03,0x7f,0x68,0xec,0xc9,0x1d,0xb9); | 
 
 
 
 
 | 478 | __CRT_UUID_DECL(ID2D1EffectImpl, 0xa248fd3f,0x3e6c,0x4e63,0x9f,0x03,0x7f,0x68,0xec,0xc9,0x1d,0xb9); | 
 
 
 
 
 | 479 |  | 
 
 
 
 
 | 480 | #endif /* _D2D1_EFFECT_AUTHOR_H_ */ |