2D Computer Graphics in modern c++ and standard library
60 DAYS
GUARANTEE
ENGLISH
PDF
EPUB
WEB
Book Description
By finelybook
This book focuses on simplifying graphics creation in standard C++. It solves common challenges like handling image files and testing animation sprites. Addressing fundamental questions on drawing pixels, lines, and circles enables easier graphic creation for presentations, collaborations, and investigations.
We have all been there when you just want to present som data in a nice and graphical way. 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 just to find out a files entropy. Or you’re coding on a game and want to test the look of animation sprites in a parallax setting. What ever the reason is… it’s too complicated to do and takes more time than you would consider doing. So no presentation, no collaboration, and no investigation using graphics.
It should just be easy to create graphics in standard C++. And this book is all about that. How do we draw a pixel, a line, or a circle? That is questions we going to answer.
About the Book
We have all been there when you just want to present som data in a nice and graphical way. 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 just to find out a files entropy. Or you’re coding on a game and want to test the look of animation sprites in a parallax setting. What ever the reason is… it’s too complicated to do and takes more time than you would consider doing. So no presentation, no collaboration, and no investigation using graphics.
It should just be easy to create graphics in standard C++. And this book is all about that. How do we draw a pixel, a line, or a circle? That is questions we going to answer.
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