Chapter III DirectX graphics rendering

In the computer 3D world, all object models are approximated and represented by polygon meshes, which can be triangles or quadrangles. Polygon mesh is the basic unit of object model. From the perspective of storage, the essence of 3D model is realized through vertices. In Direct3D, Vertex Buffer is used to store vertex data. Vertex data can be ...

Posted by rick007 on Thu, 21 Oct 2021 09:20:11 -0700

Introduction to C + + - realize the game of "persistence for 100 seconds"

reference resources Interesting programming of C and C + + Games by Tong Jing Stick to the 100 second game The main idea of the game is that players use the mouse to control rockets to avoid a UFO and more and more rebound bullets Background display Use the prepared background.png picture to display the background picture in the picture: ...

Posted by rpmorrow on Thu, 21 Oct 2021 00:17:31 -0700

Introduction to ROS 21 lecture notes (summary for personal use)

sketch After a week's reading Mr. Gu Yue's introduction to ROS 21, I clarified how ROS workspace and various function packages communicate with each other, as well as how to build their own function package and write internal code. This paper skips the environment construction problems such as Linux command line and ROS installation, and focus ...

Posted by lorddemos90 on Wed, 20 Oct 2021 10:26:30 -0700

C + + generate random numbers

Random numbers pass through random number engine class and random number distribution class. The engine class can generate unsigned random number sequences; The distribution class uses an engine class to generate random numbers of a specified type, within a given range and subject to a specific probability distribution. They are defined in th ...

Posted by thehippy on Tue, 19 Oct 2021 20:16:16 -0700

Qt Remote Object realizes inter process communication

1 Overview Qt Remote Object, called qtro for short, is a new module officially launched after Qt5.9, which is specially used for inter process communication (IPC). Qtro is essentially a point-to-point communication network. Each process accesses the qtro network through QRemoteObjectNode. The function providing node (which can be understood as ...

Posted by Marqis on Tue, 19 Oct 2021 12:07:59 -0700

Practical Experience 89 About Virtual Assignment

The introduction of virtual function mechanism complicates the implementation of assignment operators. Practical experience 73 describes the traps of common overloaded assignment operators. Virtual assignment Declare the overloaded assignment operator implementation as a virtual function, called virtual assignment. It is legal for assignment ...

Posted by emceej on Tue, 19 Oct 2021 10:39:15 -0700

Precautions for CSP semi-finals

right off    \; CSP semi-finals    \; It's time for the exam. Here I summarize some points that should be paid attention to in the examination room: 1, Explosion 0 1. Wrong file name The competition lasted thr ...

Posted by ineedhelpbigtime on Mon, 18 Oct 2021 10:20:04 -0700

⭐ Introduction to Algorithms ⭐ Binary Enumeration Simple 14 - LeetCode LCP 28. Purchasing Scheme

1. Title 1. Title Description _Xiaoli will n n Quotations for n parts are stored in an array n u m s ...

Posted by hakmir on Mon, 18 Oct 2021 09:01:36 -0700

C language learning record -- types, operators and expressions

Variable name Naming restrictions - A name is a sequence of letters and numbers. The first character must be a letter. - Do not underline variable names“_"start. - Distinguish between uppercase and lowercase letters (i.e x And X Are two different names). In traditional C language usage, variable names use lowercase letters, and sy ...

Posted by cyberplasma on Mon, 18 Oct 2021 00:31:21 -0700

(10) Future other member functions, shared_future,atomic

Section 9. async, future, packaged_task,promise This section needs to include header files #include < future > 1, std::async and std::future create background tasks and return values std::async is a function template used to start an asynchronous task. After starting an asynchronous task, it returns an std::future object, which is a c ...

Posted by jimdidr on Sat, 16 Oct 2021 21:54:53 -0700