Watch me speed pass opengl freeglut for water homework!

Reference Video Basics of Computer Graphics – Implementation of OpenGL_bilibili_bilibiliT Graphics drawing Point GL_POINTS #define FREEGLUT_STATIC // Define a static library for calling functions #include <GL/freeglut.h> // Include the header file void myPoints() { //show three points in screen glClear(GL_COLOR_BUFFER_BIT); glPointSize(3); glBegin(GL_POINTS); //show what to draw,here we draw points glColor3f(1.0, 0.0, 0.0); //color:red glVertex2i(-3, 3);//coordinate […]

Build a streamlined version of the FreeGLUT library (use MinGW + VSCode + CMake gui to build the FreeGLUT library)

Build the FreeGLUT library using MinGW + VSCode + CMake gui Prerequisites Download MinGW Download VSCode Download CMake gui DownloadFreeGLUT Configuration process test Use MinGW + VSCode + CMake gui to build the FreeGLUT library Prerequisite Download MinGW Download address: MinGW Detailed download tutorials can be found online Download VSCode Download address: VSCode After the […]

ProtTrans-Glutar: Integrating features from Pre-trained Transformer-Based Models for predicting glutamylation sites [Frontiers in Genetics, 2022]

Research Background: The PTM (post-translational modification) of amino acids can change the function of the protein. The lysine glutamylation modification (lysine glutarylation) refers to the connection of glutamyl groups to lysine residues. Biochemical methods such as blotting and mass spectrometry were used for identification. Lysine glutamylation may be a molecular marker of aging and cellular […]

moveit reports error freeglut failed to open display ‘:0’ cannot run

Article directory Project scenario: Problem Description Cause Analysis: solution: method 1 Method 2 Project scenario: Use MoveIt Setup Assistant to configure a new robot and always report an error of move group when starting it. It was running normally before restarting the computer. After restarting the computer, it continued to fail and failed to run. […]

Write OpenGL programs using GLUT under Ubuntu

Writing OpenGL programs under Linux and Windows operating systems has become very convenient, we only need to install the freeglut toolkit. The old GLUT has been abandoned, and now if we want to write OpenGL programs on some Unix-like systems, we need to install FreeGLUT. If you are on Ubuntu, you can enter the following […]

[Solved] cmake under Ubuntu reports an error: Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)

Article table of contents 1. Project Scenario 2. Error message 3. Solutions 1. Project scene System: Ubuntu20.04 cmake version: cmake3.16.3 gcc, g++ version: gcc-9.4.0, g++-9.4.0 2. Error message The error is as follows: — Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) Call Stack (most recent call first): […]

[Solved] VSCode configures OpenGL environment (GLUT) and solves common problems

1. Download C/C++ Compiler Download address: MinGW-w64 – for 32 and 64 bit Windows – Browse Files at SourceForge.net Select x86_64-win32-sjlj for installation (.seh is a new invention, 64-bit performance is good, but if you want to run 32-bit programs, the configuration is more complicated, .sjlj has good stability and supports 32-bit), download .sjlj here […]