3ds model -- place

This chapter loads a surface map, that is to say, draw a plane (rectangle), and paste a map (texture) on it as the parking place of the model. In order to facilitate the use of a single cpp. Define some variables: GLint DibiaoChangX,DibiaoKuanZ,DibiaoGaoY;//Length, width, height (Pinyin) GLuint Dibiaotexture;//Texture ID Load and set it in ...

Posted on Sat, 02 May 2020 01:19:44 -0700 by yhingsmile

js object oriented factory pattern (super basic)

Recently, I have developed a small project with low technical level, and then I write in a mess. Why don't I use object-oriented encapsulation after that? Every call is ok? And then I started object-oriented learning html: <button id="btn1">Button1</button> <button id="btn2">Button1</button> css: /*Clear ...

Posted on Fri, 01 May 2020 19:27:20 -0700 by ihsreal

Android Bluetooth 4.0BLE Communication Read-Write Data Update

Project Requirements: app communicates with Bluetooth, and receives messages sent by hardware keys via Bluetooth. app does the corresponding operation, which is similar to Bluetooth headset listening and hanging up. Less contact before Bluetooth development, classic Bluetooth development has been done android bt , BLE does little, so I don't ...

Posted on Fri, 01 May 2020 14:11:53 -0700 by Paulkirkewalker

HDU - 1254 push bin (BFS + priority queue)

Pushing the box is a classic game. Today we are going to play a simple version. In an M*N room, there is a box and a porter. The job of the porter is to push the box to the designated position. Note that the porter can only push the box but not pull it, so if the box is pushed to a corner (as shown in Figure 2), the box ...

Posted on Fri, 01 May 2020 09:10:17 -0700 by hughesa

Common date processing of oeacl

Date processing common functions sysdate: current date and time; to_char(): convert numeric or date type to character type; to_date(): date conversion function, for example, to_date ('2017-09-27 10:00:00 ',' yyyy MM DD hh24: Mi: Ss'); last_day(sysdate): returns the last day of the month in which the date is located; T ...

Posted on Fri, 01 May 2020 06:09:19 -0700 by mimintweak

Some suggestions on writing high quality SQL

1. Try not to use select * to query SQL, but select specific fields. Counter example: select * from employee; Positive example: selectid,namefrom employee; reason: Only take the required fields, save resources and reduce network overhead. When select * is used for query, it is likely that the overwrite index will not be used, r ...

Posted on Thu, 30 Apr 2020 19:55:20 -0700 by adi

[codevs1906] longest increasing subsequence (dp+dinic)

Title: I'm a hyperlink Explanation: It is said that it is the longest increasing subsequence, but actually it does not decrease.. Split point, split a point into two points to ensure the number of times each point is used. After dp, it is found that when i is before J, the value of i is less than or equal to j, and the length of dp i+1=j ...

Posted on Thu, 30 Apr 2020 11:44:18 -0700 by squariegoes

Using SpecificationBuilder to simplify the dynamic query of Spring Data Jpa

SpecificationBuilder See source code Github Existing problems Suppose there is a domain with the following fields: * Long id * String name * Integer age * String school * LocalDateTime birthday If we want to make a dynamic query that supports matching by logo (accurate), age (accurate), school (batch), birthday (interval), and name ...

Posted on Thu, 30 Apr 2020 05:19:03 -0700 by why2k

The mathematical basis of SLAM: the realization and verification of several common probability distributions

From: https://www.cnblogs.com/cyberniklee/p/7977142.html Distribution, generally referred to as probability distribution in computer science, is one of the basic concepts of probability theory. Distribution reflects a random or a certain variable in a system, and its value range and law. The common distributions are binomial distribution, Poi ...

Posted on Mon, 27 Apr 2020 02:07:09 -0700 by gsb

Conversion between js hex color and rgba color

Definition of basic composition of Chen FF6600FF #FF [red channel] 66 [green Channel] 00 [blue channel] FF [alpha channel (transparency)] This is what it looks like when it's converted to rgba color. It's actually a more coquettish orange color rgba(255,36,0,255) 255=parseInt('FF',16),102=parseInt(66,16),0=parseInt('00',16),255=parseInt('F ...

Posted on Sun, 26 Apr 2020 08:22:14 -0700 by sanch