OpenGL system design-1.2 OpenGL Architecture

Source: Internet
Author: User

 

1.2 OpenGLArchitecture

OpenGL supports multiple platforms, including Windows , liunx , and MACOs and UNIX . If the application Program does not use a large number of OS-related calls, therefore, porting the OpenGL program between different platforms is quite simple. Windows has an absolute advantage in the desktop operating system. therefore, the winodows application that develops OpenGL is still our first choice.

InWindowsIn the application,OpenGLImplementation andGDI,DirectXAre different,GDIYesdisplay Device InterfaceDisplay Device InterfaceThe graphics card driver interacts with the graphics card hardware.DirectXAttackers can bypass the driver and directly deal with the hardware through the hardware abstraction layer or hardware simulation layer.OpenGLThen3DDevice Driver Interface3ddiAnd then access the hardware through the driver provided by the video card manufacturer,1-1.

 

 

 

Figure1-1The three graphic interfaces areWindowsImplementation on

 

BecauseOpenGLYes3DThe underlying graphics library of the image does not provide ry elements and cannot be used directly to describe the Rendering scenario. A typicalOpenGLThe main steps for applications to display images on the screen are as follows:

 

Construct geometric elements (points, lines, surfaces, polygon, bitmap, etc.) and create mathematical descriptions of objects;

In3DPlace objects in the space and select an appropriate observation point;

Converts the mathematical description and color information of an object into pixels on the screen;

Perform raster After texture ing of pixel or object data;

Perform operations on the object fragment after the grating and send it to the frame buffer;

Display the image on the screen.

 

Figure1-2YesOpenGLThe entire rendering process, some of which will be detailed in subsequent chapters.

 

 

 

 

 

Figure1-2 OpenGLRendering process

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.