This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void DrawGlyphRun(ID2D1RenderTarget* target, IDWriteFactory factory, IDWriteFont* fontFace, ID2D1Brush* defaultBrush, DWRITE_GLYPH_RUN* glyphRun) | |
{ | |
bool isColor = false; | |
IDWriteColorGlyphRunEnumerator* colorLayer; | |
IDWriteFont2* fontFace2; | |
fontFace->QueryInterface(reinterpret_cast<IDWriteFontFace2**>(&fontFace2)); | |
if (fontFace2->IsColorFont()) { | |
IDWriteFactory2* factory2; | |
factory->QueryIntarface(reinterpret_cast<IDWriteFactory2**>(&factory2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hash | |
# options: | |
# :exclude => [keys] - keys need to be symbols | |
def to_ostruct_recursive(options = {}) | |
convert_to_ostruct_recursive(self, options) | |
end | |
private | |
def convert_to_ostruct_recursive(obj, options) | |
result = obj |