Original author: aircraft
Original link: https: //www.cnblogs.com/DOMLX/p/11790309.html
In c ++ in opengl may be because it is the most basic library, you do a lot of things regarded
Go to c # under a large cattle for opengl support libraries, such as sharpGL, use need to be very strict
For example, it:
gl.Color (0.0f, 0.0f, 1.0f) ; this setting color code
In case c ++ or not, whether it is 0.0f 0 Ye can, but sharpGL did not write this image format in c # 0.0f completely drawn out. So that you could not find the point of error.
There is a point in the drawn under winfrom graphics default is your window to the entire window you are covered is close to the horizon graphics
If you do not add this sentence:
gl.Translate (0.0f, 0.0f, -6.0f); graphic next move several units, you interface winfrom may be all black makes you feel that you have not drawn graphics come out. . . . This is my summary of the development of two pit opengL in c #.
So if you experience other problems drawn, I still did not think the code logic problem, carefully check the format.
If you are interested to share technology exchange, it may be concerned about the public number, which will share from time to time various programming tutorials, and share source code, such as sharing research on c / c ++, python, front, back, opencv, halcon, opengl, machine depth study of learning class has knowledge about basic programming, image processing and machine vision development