Raster and vector graphics

When it comes to graphics, Qt splits this domain into two separate parts. One of them is raster graphics (used by widgets and the Graphics View, for example). This part focuses on using high-level operations (such as drawing lines or filling rectangles) to manipulate colors of a grid of points that can be visualized on different devices, such as images, printers, or the display of your computer device. The other is vector graphics, which involves manipulating vertices, triangles, and textures. This is tailored for maximum speed of processing and display, using hardware acceleration provided by modern graphics cards.

Qt abstracts graphics using the concept of a surface (represented by the QSurface class) that it ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.