Thread View: news.software.readers
1 messages
1 total messages
Started by Jeff-Relf.Me
Fri, 21 Nov 2014 18:43
--
Author: Jeff-Relf.Me
Date: Fri, 21 Nov 2014 18:43
Date: Fri, 21 Nov 2014 18:43
49 lines
3436 bytes
3436 bytes
<PRE><big><big>
<<A hRef='http://Jeff-Relf.Me/X.CPP'
target=_blank>This Visual C++ 2013, x64 code</A>> produces, <<A hRef='http://Jeff-Relf.Me/X.EXE'
target=_blank>X.EXE</A>>,
my Windows 8 "Start Button", "terminal/console", newsReader,
email·client, web/image downloader/viewer, backup/diff utility,
"Chess, Uki, Mario, Solitair, Monopoly" games, etc.
The "help/settings file" is <<A hRef='http://Jeff-Relf.Me/X.HTM' target=_blank>Here</A>>.
"MS Mincho", with "DejaVu LGC Sans Mono" and "nSimSun" exceptions,
are the "Unicode Console" fonts -- required.
If they don't exist, warnings are issued using "Consolas" ( Vista ).
Note: This code needs Windows 8 or later.
3840 x 2160 ScreenShots: · <A hRef="http://Jeff-Relf.Me/X.PNG" target=_blank>The Console/Keyboard</A>, · <A hRef="http://Jeff-Relf.Me/Chess.JPG"
target=_blank>Fast/Mindless Chess</A>,
· <A hRef="http://Jeff-Relf.Me/Reversi.JPG" target=_blank>Reversi</A>, · <A hRef="http://Jeff-Relf.Me/Solitair.JPG"
target=_blank>Solitair</A>, · <A hRef="http://Jeff-Relf.Me/Super.Fast.Monopoly.JPG"
target=_blank>Fast/Mindless Monoply</A>, · <A hRef="http://Jeff-Relf.Me/Mario.JPG" target=_blank>Mario</A>.
<<A hRef="http://Jeff-Relf.Me/DirectX.CPP"
target=_blank>DirectX.CPP, Visual C++ 2013, x64</A>> is a small (one-file)
example of how to:
· Make all Fonts/Glyphs the same width (double·width is allowed).
· Rescale Graphics/Glyphs when a window changes size.
· Use DirectX 11.1, Direct2D 1.1, DirectWrite, and Direct3D.
· Draw to a back buffer at a high fps (frames per second).
· Draw properly scaled/smoothed .JPG files, hardware accelerated.
· Draw to/from/within bitmaps.
· Discover if a font exists or not ("FindFamilyName()").
· Discover if a glyph exists in a font ("HasCharacter()").
· Discover the width/height of a glyph ("GlyphWH()").
Your startup folder should have, e.g., "Pics/LowRes.JPG" ( 100px wide/tall )
and "Pics/Chess.JPG" ( a 2160 x 3840 screenshot, Jeff-Relf.Me/Chess.JPG ).
All coordinates are in hard⋅pixels (D2D1_UNIT_MODE_PIXELS).
Note: This code needs Windows 8 or later.
"MS Mincho", "DejaVu LGC Sans Mono", "nSimSun", and "Arial Unicode MS"
are the fonts being tested.
All but Arial are "Unicode Console" fonts.
<<A hRef='http://Jeff-Relf.Me/Glyph.JPG' target=_blank>A 3840 x 2160 ScreenShot</A>>.
To record "debug/WM_*" messages, use <<A hRef='http://Jeff-Relf.Me/Debug.CPP' target=_blank>Debug.CPP</A>>.
"X.EXE", above, is a more complex, yet still simple, example.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads