2D Drawing with C++17: Using Only The Standard Library
60 DAYS
GUARANTEE
ENGLISH
PDF
EPUB
WEB
Book Description
By finelybook
Learn how to draw pixels, lines, rectangles, circles, triangles, and curves with C++17. Save and load PPM files. Visualizing data for presentation, collaboration, and investigation.
We have all been there when you want to present some data nicely and graphically. You start by implementing a GUI library so that you can set up a canvas to draw on… but then what? Or you download and build a library that can handle reading and writing PNG images, as you need lossless images. Or you do the same to find out a file’s entropy. Or you’re coding on a game and want to test the look of animation sprites in a parallax setting. Whatever the reason is… it’s too complicated to do and takes more time than you would consider doing.
The book is about drawing with C++17 and not how to code in C++. This book is intentionally heavy on the code side. Learning by code examples.
Table of Contents
2D Drawing Basics
History
Standard Library
Compile Code Examples
Prerequisite
Draw Pixels with Standard Library
Texture Generation with Standard Library
Time to draw some lines with Standard Library
There are no straight curves, only curved lines
Rectangles with Standard Library
Circles with Standard Library
Triangles with Standard Library
Animation with Standard Library
Drawing Charts and a Font
Presentation, Collaboration, and Investigation
Presentation
Draw a bar chart
Draw a pie chart
Draw a donut chart
Draw a table
Draw a more advanced chart #1
Draw a more advanced chart #2
Collaboration
Investigation
PPM++ header-only library
In the Rearview Mirror
Appendix A: Source Code Listings
Appendix B: URLs for Source Code