Vao/vbo debug experience in openGL, vaovbo

Source: Internet
Author: User

Vao/vbo debug experience in openGL, vaovbo

When learning computer graphics, it involves many new technologies other than fixed pipelines, such as VAO and VBO. Due to the appearance of these technologies, similar resources are rarely found on the Internet, at the beginning, I just learned a rough theoretical part, but when I was really programming, I couldn't tell the structure of a simple sample code, let alone understand it, it is naturally difficult to debug the code written by taking pictures and pictures. many of the openGL library functions used in the program only know the function of learning, and the specific usage is not clear, for example, the difference between the display () and init () parts, writing the same content to two functions has different effects. One is to update data every time the program runs and the other is not executed only after the first GPU upload is effective, I don't know how the dynamic effects of these things are static at the beginning, so I am entangled in many places, such as where to refresh functions such as colorbuffer, it is placed at the beginning or end of display (). The more you try, the more troublesome it is. At last, you give up. Many of them are encapsulated functions. If you don't know how to use them, you will never be able to use them, because the data types that are out of the boundary are not affected at all, the debug program cannot be used for single-step execution. At last, you have to go to daxie to explain the problem, I learned some programming from the beginning. the most irritating part is the part of the coloring program, because the part of the coloring tool is uploaded to the GPU and is different from the main program. When writing the coloring program, it is basically programming with notepad, without any prompts, I am very careful when writing a program, because once there is a problem, no errors are reported, check whether there is a good debug Method on the Internet. You can only see answers such as "no good scheme for coloring machine debugging". Therefore, you can check only one row when learning computer graphics.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.