1 module aurora.directx.d2d1.d2d1_2; 2 3 version(Windows): 4 5 public import aurora.directx.d2d1.d2d1_1; 6 7 // 8 // Enumerations 9 // 10 11 public enum D2D1_RENDERING_PRIORITY : int { 12 NORMAL = 0, 13 LOW = 1 14 } 15 16 // 17 // Interfaces 18 // 19 20 mixin(uuid!(ID2D1CommandSink1, "9eb767fd-4269-4467-b8c2-eb30cb305743")); 21 public interface ID2D1CommandSink1 : ID2D1CommandSink 22 { 23 extern(Windows): 24 HRESULT SetPrimitiveBlend1(D2D1_PRIMITIVE_BLEND primitiveBlend); 25 } 26 27 mixin(uuid!(ID2D1Device1, "d21768e1-23a4-4823-a14b-7c3eba85d658")); 28 public interface ID2D1Device1 : ID2D1Device 29 { 30 extern(Windows): 31 D2D1_RENDERING_PRIORITY GetRenderingPriority(); 32 HRESULT SetRenderingPriority(D2D1_RENDERING_PRIORITY renderingPriority); 33 } 34 35 mixin(uuid!(ID2D1DeviceContext1, "d37f57e4-6908-459f-a199-e72f24f79987")); 36 public interface ID2D1DeviceContext1 : ID2D1DeviceContext 37 { 38 extern(Windows): 39 HRESULT CreateFilledGeometryRealization(ID2D1Geometry geometry, float flatteningTolerance, ID2D1GeometryRealization *geometryRealization); 40 HRESULT CreateStrokedGeometryRealization(ID2D1Geometry geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle strokeStyle, ID2D1GeometryRealization *geometryRealization); 41 HRESULT DrawGeometryRealization(ID2D1GeometryRealization geometryRealization, ID2D1Brush brush); 42 } 43 44 mixin(uuid!(ID2D1Factory2, "94f81a73-9212-4376-9c58-b16a3a0d3992")); 45 public interface ID2D1Factory2 : ID2D1Factory1 46 { 47 extern(Windows): 48 HRESULT CreateDevice(IDXGIDevice *dxgiDevice, ID2D1Device1 **d2dDevice1); 49 } 50 51 mixin(uuid!(ID2D1GeometryRealization, "a16907d7-bc02-4801-99e8-8cf7f485f774")); 52 public interface ID2D1GeometryRealization : ID2D1Resource 53 { 54 extern(Windows): 55 }