Pit 001
:
:
:
:
:
:
:
:
:
:
: p>
std::fstream file(filepath);
std::string shaderText = "";
std::string line;
while (std::getline(file, line))
shaderText = shaderText + line +"\n" ;
file.close();
In particular, put a newline character “\n” at the end of each line change after reading it.
Pit 002
And then at the end of the transformation into the camera space, we have to multiply by the three basis vectors for the camera space.
Pit 003
Flag ① : Sometimes the render is too frequent, which causes us to process our input too much, so here we use the code in Flag ① to control the render frequency a bit. Render only if the value of count is an integer multiple of 100,000.
flag ② : The Render Callback needs to constantly refresh the transformation matrix we set, otherwise even if we change the render matrix in the code, it will not work.
Read More:
- OpenGL learning notes and other learning thinking
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- OpenGL learning notes: Problems and Solutions
- Learning notes — opengl01
- OpenGL learning summary (1)
- Learning notes of OpenGL — blending
- Record the problems encountered in OpenGL learning
- Some pitfalls in OpenGL learning
- Problems and solutions in learning opengl
- 2016.11.1 OpenGL learning, black screen does not display graphics
- Android learning notes 03: some problems and solutions in the learning process
- Some problems and solutions in learning opengl in vs2017
- OpenGL basic graphics programming – OpenGL and 3D graphics world
- VTK basic learning
- Aidl learning
- VTK learning notes: visual model
- Random forest algorithm learning
- Haskell learning — Grammar
- Unity learning — stop coroutine
- Statistical learning: ANOVA (analysis of variance) (1)