Cairo: The 2D Graphics Drawing Tool in C Language

Cairo: The 2D Graphics Drawing Tool in C Language

Hello everyone! Today I want to introduce you to a super powerful C graphics library – Cairo. It is not only the cornerstone of the graphics systems in Linux and macOS, but also used in the rendering engines of browsers like Firefox and Chrome. Whether drawing simple lines and shapes, or creating complex user interfaces, … Read more

C Language in Graphics: From Ray Tracing to 3D Modeling

C Language in Graphics: From Ray Tracing to 3D Modeling

Hello everyone, I am Teacher Xiao Yu! Today, I will lead you to explore a very interesting topic – the application of C language in graphics. As a programmer, being able to create stunning 3D worlds with code is a really cool thing! We will start with the basic principles of ray tracing and gradually … Read more

Creating a Rotating Sphere in C Language

Creating a Rotating Sphere in C Language

To represent complex surfaces in a computer, we usually adopt a method called meshing. This means discretizing the surface into a series of small flat pieces, each of which is a simple geometric shape, such as quadrilaterals or triangles. In this way, we can approximate the original surface using these simple flat shapes. The accuracy … Read more

Detailed Explanation of STM32’s GPU – DMA2D Example

Detailed Explanation of STM32's GPU - DMA2D Example

Source: This article is written by RT-Thread community member Meng Qiannian, click the link at the end to read the original text for the source. Introduction The GPU, or Graphics Processing Unit, is the core of modern graphics cards. In the era before GPUs, all graphics rendering was done by the CPU, which had to … Read more