🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Jeff-Relf.Me Tue, 04 Nov 2014 09:33
--
#258602
Author: Jeff-Relf.Me
Date: Tue, 04 Nov 2014 09:33
29 lines
2160 bytes
<PRE><big><big> 
<<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).
-- Use DirectX 11.1, Direct2D 1.1, DirectWrite, and Direct3D.
-- Replace DirectDraw/GDI+, etc.
-- 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 ).
All coordinates are in hard⋅pixels (D2D1_UNIT_MODE_PIXELS).

Note: This code needs Windows 8 or later.
Also, it needs the "MS Mincho", "Consolas", "DejaVu LGC Sans Mono", 
"Lucida Console" and "Arial Unicode MS" fonts.

3840 x 2160 ScreenShot: http://Jeff-Relf.Me/Glyph.JPG

To record "debug/WM_*" messages, use "Jeff-Relf.Me/Debug.CPP"

Here's a more complex, yet still simple, example:
  http://Jeff-Relf.Me/X.CPP
  http://Jeff-Relf.Me/X.PNG
Re: DirectX.CPP, Visual C++ 2013, x64.
#258603
Author: SHAKIL AHAMED
Date: Wed, 05 Nov 2014 19:03
32 lines
2729 bytes
On Tuesday, November 4, 2014 3:33:59 PM UTC+6, Jeff-Relf.Me wrote:
>  
> <DirectX.CPP, Visual C++ 2013, x64> is a small (one-file)
> example of how to:
> -- Make all Fonts/Glyphs the same width (double·width is allowed).
> -- Use DirectX 11.1, Direct2D 1.1, DirectWrite, and Direct3D.
> -- Replace DirectDraw/GDI+, etc.
> -- 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 ).
> All coordinates are in hard⋅pixels (D2D1_UNIT_MODE_PIXELS).
> 
> Note: This code needs Windows 8 or later.
> Also, it needs the "MS Mincho", "Consolas", "DejaVu LGC Sans Mono", 
> "Lucida Console" and "Arial Unicode MS" fonts.
> 
> 3840 x 2160 ScreenShot: http://Jeff-Relf.Me/Glyph.JPG
> 
> To record "debug/WM_*" messages, use "Jeff-Relf.Me/Debug.CPP"
> 
> Here's a more complex, yet still simple, example:
>   http://Jeff-Relf.Me/X.CPP
>   http://Jeff-Relf.Me/X.PNG

www.freedownloadeverything.com
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