Название: 2D Computer Graphics in modern C++ and standard library Автор: Hakan Blomqvist Издательство: Leanpub Год: 2023-05-14 Страниц: 465 Язык: английский Формат: pdf (true) + Extras Размер: 84.5 MB
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.
All code is compiled using clang++, but of course works fine with g++. Everything is C++17 except std::lerp, as its part of C++20 (a C++17 solution will be presented).
Prerequisite: You’ll need to already know how to program in C++. This book is about how to draw and and not about how to program.
Скачать 2D Computer Graphics in modern C++ and standard library
|