🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #258603

Re: DirectX.CPP, Visual C++ 2013, x64.

#258603
From: 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
Technical Details
Message-ID: <605a6a3c-edb5-4cd8-9ff2-8b1d7a96fb12@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20141227.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!h15no6337539igd.0!news-out.google.com!ks2ni13095igb.0!nntp.google.com!r10no4281852igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <Jeff-Relf.Me@Nov.4{1.33A.Seattle.2014}>

Show Full Headers
Complete Article Headers
Message-ID: <605a6a3c-edb5-4cd8-9ff2-8b1d7a96fb12@googlegroups.com>
Subject: Re: DirectX.CPP, Visual C++ 2013, x64.
Date: Wed, 05 Nov 2014 19:03:53 +0000
From: SHAKIL AHAMED <ashakil353@gmail.com>
References: <Jeff-Relf.Me@Nov.4{1.33A.Seattle.2014}>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20141227.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!h15no6337539igd.0!news-out.google.com!ks2ni13095igb.0!nntp.google.com!r10no4281852igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
X-Received: by 10.182.91.79 with SMTP id cc15mr45602536obb.31.1415214249406;
X-Received: by 10.50.124.8 with SMTP id me8mr120686igb.3.1415214234019; Wed,
Newsgroups: news.software.readers
In-Reply-To: <Jeff-Relf.Me@Nov.4{1.33A.Seattle.2014}>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=27.131.14.14;
 posting-account=DmPE3QoAAAB6pURNcyCZg4H4uwgIH99b
NNTP-Posting-Host: 27.131.14.14
User-Agent: G2/1.0
MIME-Version: 1.0
Injection-Date: Wed, 05 Nov 2014 19:03:54 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Lines: 31