Application Framework Requirements: We Want To Use GLUT For Window Operations. Handles All Windowing Operations
OpenGL is a computer graphics rendering API that allows generating high-quality color images using primitive geometric shapes and images. It has evolved over time to include newer programming techniques like shaders to more efficiently use GPU resources. Modern OpenGL programs create shader programs, load vertex data into buffer objects, connect data locations to shader variables, and render. OpenGL applications need an interface to a windowing system to render into a window and handle input/output.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views2 pages
Application Framework Requirements: We Want To Use GLUT For Window Operations. Handles All Windowing Operations
OpenGL is a computer graphics rendering API that allows generating high-quality color images using primitive geometric shapes and images. It has evolved over time to include newer programming techniques like shaders to more efficiently use GPU resources. Modern OpenGL programs create shader programs, load vertex data into buffer objects, connect data locations to shader variables, and render. OpenGL applications need an interface to a windowing system to render into a window and handle input/output.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
What is OpenGL
OpenGL is a computer graphics rendering Application Program Interface (API)
1. Allows you to generate high-quality color images by rendering with primitive geometric shapes and images. Newer ways of programming with OpenGL allows for more efficient use of GPU resources. All apps must make use of shaders for their graphics processing The Evolution of the OpenGL Pipeline OpenGL 4.1 1. Includes teesselation-control and tessellation-evaluatoin shaders OpenGL includes and ES and WebGL version. ES- is designed for embedded and hand-held devices like cell phones and is based on OpenGL 3.1 WebGL- is essentially a JavaScript implementation of ES 2.0 and runs on most recent browsers OpenGL Application Development Modern OpenGL programs essentially do the following steps: 1. Create shader programs 2. Create bffer objects and load data into them 3. connect data locatons with shader variables 4. Render Application Framework Requirements OpenGL applications need a place to render into, usually an on-screen window. They need to communicate with the native windowing system. Each windowing system interface is different. We want to use GLUT for window operations. GLUT is a simple, open-source library that works everywhere and handles all windowing operations such as: 1. Opening windows 2. Input processing Simplifying working with OpenGL Different OSs deal with library functions differently based on compiler linkage and runtime libraries. GLEW- an open source library used to hide the details of the many version of OpenGL that expose different sets of functions. Representing Geometric Objects Verticies are used to represent geometic objects Vertex- a collection of generic attributes that include: 1. Positional coordinates 2. Colors 3. Texture coordinates 4. Any other data associated with that point in space Vertex properties have proper storage locations: 1. Position stored in 4 dimensianal homogenous coordinates 2. Vertex data must be stored in vertex buffer objects (VBOs) 3. VBOs must be stored in vertex array objects (VAOs) OpenGL Geometric Primitives All primitives are specified by verticies 1. Points 2. Lines 3. Line strips 4. Line Loops 5. Triangles 6. Triangle Strips 7. Triangle Fans A First Program