openGL learning notes -- face elimination

openGL mainly distinguishes the positive and negative sides through the vertex drawing order to achieve the effect of face culling. It is difficult to understand both sides. How to judge? Positive and negative distinction: 1. Front: triangle faces connected in the order of anticlockwise vertices 2. Back: triangle face connected in clockwi ...

Posted on Mon, 30 Mar 2020 11:05:44 -0400 by drath

C ා compare two objects for equality (depth comparison)

Last article Comparison of C Chen's equality (conventional comparison) Write the instructions for the use of the general method of comparing the equality in C ා, but in the actual development, two reference type objects are often used for comparison, and the reference type contains the properties or fields of the reference type ...

Posted on Sun, 29 Mar 2020 14:15:01 -0400 by oyse

nginx tcp load balancing, replacing alicloud slb

We know that nginx was only used for http load balancing, while TCP and UDP used lvs or haproxy for load balancing, but both of them need to be bound with logical addresses. So the problem is that public virtual machine cannot be bound with logical addresses, so we can only use SLB provided by alicloud, so there will be two problems. 1. Spend ...

Posted on Sat, 28 Mar 2020 12:59:44 -0400 by yumico23

Introduction to network flow

At first, I thought that network flow was a gold medal topic, but I never touched it. Later, I learned that the original network flow was just a template, and the real difficulty was the composition problem. Moreover, if you can see that it was a template topic at a glance, as long as you can construct a diagram, it is not a bi ...

Posted on Sat, 28 Mar 2020 12:14:49 -0400 by asaschool

The most detailed Python learning notes on the web are worth collecting

I summarize the following points of python:Object-oriented Class and Object Creation Genus correlation Method correlation Metaclass Built-in special properties Built-in special methodsPS Note: Whether you are working for Python or interested in it, remember: Project development experience is always the core. If you lack new project exercises o ...

Posted on Sat, 28 Mar 2020 00:57:16 -0400 by Hendricus

Hey, here's your object - Object Oriented: Classes and Objects

Believe that many little buddies start their Java tactics: HelloWorld! First, create a class, then write a main method, and finally print out. ojbk is done.When we learn object-oriented, we have to know what classes are, what objects are, and what they are related to.A good example of object-oriented writing on the web has been copied by me to ...

Posted on Fri, 27 Mar 2020 22:04:02 -0400 by nitharsanke

Python_Common Built-in Functions

1. Method Note: class is a collection of objects with the same properties and methods. 2. Examples (1) Data/collection type str(object=''); str(object=b'', encoding='utf-8', errors='strict') int(x, base=10) float(x=0) complex(real=0, imag=0) 1 >>> str(123) 2 '123' 3 >>> str(['a', 'b', 'c']) 4 "['a', 'b', 'c']" 5 >& ...

Posted on Fri, 27 Mar 2020 13:18:34 -0400 by rdbdba

Pandas index and select data

Python and NumPy index operators' [] 'and property operators'.'. The Pandas data structure can be accessed quickly and easily in a wide range of use cases. However, since the type of data to be accessed is not known in advance, there are some optimization limitations to using standard operators directly. It is recommended to optimize the data a ...

Posted on Fri, 27 Mar 2020 11:44:03 -0400 by Amanda1998

Vue implements drag upgrade (drag of Jiugong grid)

Thank you for your reference- http://bjbsair.com/2020-03-27/tech-info/7202/ Preface In this article, we will use Vue to complete the drag effect of the nine palace grid, and introduce the grid layout. The specific code and demo can be accessed by clicking the following hyperlink Example of effectiveness Demo Simple understanding of Grid layou ...

Posted on Fri, 27 Mar 2020 09:03:21 -0400 by Glen

CSS unknown width height element horizontal vertical center

Method 1 Idea: display setting parent element is: table, child element is: cell table, so you can use vertical align: Center to achieve horizontal center Advantage: the parent element can dynamically change the height (the characteristic of table element) Disadvantage: not supported under IE8 <!DOCTYPE html> <ht ...

Posted on Thu, 26 Mar 2020 12:21:35 -0400 by satyricon