• 开发人员使用C或C++编程语言的可能要求的一种方式确定功能所载的扩展。 GLEW的建立是为了提供准确这种能力和这将允许用户确定其中载扩展支持的目标的平台。

    该图书馆将显示所载的核心功能在一个单一标题的文件,这种方式让人们查所需的信息迅速。 支持载4.5,图书馆将允许一个负载的优选的扩展,它是向前兼容的照片,WGL和的扩展。

    其中一个主要功能捆绑在一起的图书馆是"glewinfo"的组成部分,可用以确定该能力的一个载的实施是有效的。 运行之后相应的命令,用户将能够想象一个文本文件报告包含详尽的信息有关的状态的GL版本。

    初始化图书馆,人们必须首先创建一个有效的照片呈现上下文,这需要被命名为"glewInit()",并在一切情况下是正确的,"GLEW_OK"串将返回。 为了检查用于扩展这些都可以在他们的平台,人们可以查询全球的定义变量形式:GLEW_{extension_name}.

    图书馆将获得有关的信息支持的扩展,通过访问卡驱动程序。 然而,使用者必须警告说,实验或预发布驱动程序可能并不报告所有可用扩展的通过标准的机构。 在这种情况下,GLEW会报告它们作为支持。

  • का उपयोग करने वाले डेवलपर्स C या C++ प्रोग्रामिंग भाषाओं की आवश्यकता हो सकती है एक तरीका निर्धारित करने की कार्यक्षमता के साथ OpenGL एक्सटेंशन. GLEW क्रम में बनाया गया था प्रदान करने के लिए ठीक इस तरह की क्षमताओं और यह उपयोगकर्ताओं के लिए अनुमति देगा जो निर्धारित OpenGL एक्सटेंशन का समर्थन कर रहे हैं लक्ष्य मंच पर.

    इस पुस्तकालय को प्रदर्शित करेगा ओपन कोर की कार्यक्षमता में एक हेडर फाइल, इस तरह की अनुमति देता है लोगों को देखने के लिए आवश्यक जानकारी जल्दी. समर्थन ओपन 4.5, पुस्तकालय की अनुमति देगा एक लोड करने के लिए पसंदीदा एक्सटेंशन और यह आगे के साथ संगत ओपन, WGL और GLX एक्सटेंशन.

    मुख्य विशेषताओं में से एक के साथ बंडल पुस्तकालय है "glewinfo" घटक है, जो इस्तेमाल किया जा सकता है क्रम में करने के लिए है, तो यह निर्धारित क्षमताओं के साथ एक OpenGL का कार्यान्वयन कर रहे हैं मान्य. चलाने के बाद इसी आदेश के साथ, उपयोगकर्ताओं में सक्षम हो जाएगा कल्पना करने के लिए एक पाठ फ़ाइल युक्त रिपोर्ट के बारे में विस्तृत जानकारी की स्थिति GL संस्करणों.

    प्रारंभ करने के लिए पुस्तकालय, लोगों को पहले बनाना चाहिए एक वैध ओपन का प्रतिपादन संदर्भ की जरूरत है जो किया जा करने के लिए नामित "glewInit()" और मामले में सब कुछ सही है, "GLEW_OK" स्ट्रिंग वापस आ जाएगा. आदेश में करने के लिए के लिए जाँच करें एक्सटेंशन पर उपलब्ध हैं, जो उनके प्लेटफार्मों, लोगों को क्वेरी कर सकते हैं विश्व स्तर पर परिभाषित चर के साथ फार्म: GLEW_{extension_name}.

    पुस्तकालय प्राप्त करेंगे के बारे में जानकारी समर्थित एक्सटेंशन तक पहुँचने के द्वारा ग्राफिक्स कार्ड ड्राइवर । हालांकि, उपयोगकर्ताओं को चेतावनी दी हो जाना चाहिए कि प्रयोगात्मक या पूर्व रिहाई ड्राइवरों नहीं हो सकता है, रिपोर्ट सभी उपलब्ध एक्सटेंशन के माध्यम से मानक तंत्र है । ऐसे मामलों में, GLEW रिपोर्ट करेंगे, उन्हें के रूप में असमर्थित है ।

  • Developers who use C or C++ programming languages might require a way of determining the functionality of the OpenGL extensions. GLEW was created in order to provide precisely such capabilities and it will allow users to determine which OpenGL extensions are supported on the target platform.

    This library will display the OpenGL core’s functionality in a single header file, this way allowing people to view the required information quickly. Supporting OpenGL 4.5, the library will allow one to load the preferred extension and it is forward compatible with the OpenGL, WGL and GLX extensions.

    One of the main features bundled with the library is the “glewinfo” component, which can be used in order to determine if the capabilities of an OpenGL implementation are valid. After running the corresponding command, users will be able to visualize a text file report containing detailed information about the status of the GL versions.

    To initialize the library, people must first create a valid OpenGL rendering context, which needs to be named “glewInit()” and in case everything is correct, the “GLEW_OK” string will be returned. In order to check for extensions which are available on their platforms, people can query globally defined variables with the form: GLEW_{extension_name}.

    The library will obtain the information regarding the supported extensions by accessing the graphics card driver. However, users must be warned that experimental or pre-release drivers might not report all the available extensions through the standard mechanism. In such cases, GLEW will report them as unsupported.