OpenGL Glenableclientstate () and gldisableclientstate () functions

Source: Internet
Author: User

Http://zhidao.baidu.com/link?url=c3m55lgpjhU1Rb7TEP-aTGQAX3-GrcBk5NaUC2UA1ZtQiCCtHJzB_KoG7pWvPEybfYv7AWiUH8Vev0Y3Jkr0OK

What is the role of Android OpenGL Glenableclientstate () and Gldisableclientstate ()? 2011-09-01 19:21anyi84113 Category: Digital | browse 3,778 times Share to: Report | 2011-09-01 19:27 The questioner is adopted by
OpenGL is a state machine, and the glenable-gldisable function we usually see is to notify OpenGL to turn on/off some kind of state, such as illumination, depth detection, etc. But there are also glenableclientstate-gldisableclientstate this pair. The difference is that the specific object of the notification is conceptually different-the service side and the client, respectively. In fact, I can not tell you clearly the difference, anyway, you put your computer on the specific program, including its use of memory and so on as the client, the inside of your computer-the display of the OpenGL "module", and even the entire OpenGL pipeline, the hardware to achieve OpenGL function of the graphics card, as the service side. They each maintain some "state", glenable and so on directly to maintain the related state of pipeline processing, glenableclientstate maintenance is to enter the state before the assembly line. At the early stage of T&l, the vertex data of the program is learned and accepted for processing. As to how the vertices came-glvertex, or Gldrawarray, the pipeline does not need to know-this is the client's task, so whether to use the vertex array (as a state whether it needs to be started) is determined by the client. The glcalllist of the display list is special, it bypasses the client, directly notifies the service side to set the previous initialization of the code snippet mapped hardware settings "turn on", which is equivalent to the memory of a certain part of the possession and call at any time, the hardware of this command is not hesitate to accept, the call to the promise to become a "Neuro-reflective" behavior – this is the most desirable and superlative "drawing".

OpenGL Glenableclientstate () and gldisableclientstate () functions

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.