7 Steps OpenGL ES provides data for caching

Source: Internet
Author: User

OpenGL ES provides 7 steps for caching data:

1. Generate Glgenbuffers ()--Request OpenGL ES generates a unique identifier for the graphics processor-controlled cache.

2. Bind Glbindbuffer ()--tells OpenGL ES to use a cache for the next operation.

3. Buffer Data Glbufferdata () or Glbuffersubdata ()--let OpenGL ES initialize enough contiguous memory for the currently bound cache allocation sickness (typically from CPU-controlled memory to allocated memory).

4. Enable or disable Glenablevertexattribarray () or Gldisvertexattribarray ()--tells OpenGL ES whether to use the data in the cache in the next rendering.

5. Set pointer Glvertexattribpointer ()--tells OpenGL ES the type of data in the cache and the memory offset value of all data that needs to be accessed.

6. Draw Gldrawarrays () or gldrawelements ()--tells OpenGL ES to render the entire scene or part of a scene using the data in the buffer that is currently bound and enabled.

7. Delete Gldeletebuffers ()--Tell OpenGL ES to delete the previously generated cache sickness release related resources.

7 Steps OpenGL ES provides data for caching

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.