CSUN COMP 465 - OpenGL Application’s Architecture (42 pages)

Previewing pages 1, 2, 3, 20, 21, 40, 41, 42 of 42 page document View the full content.
View Full Document

OpenGL Application’s Architecture



Previewing pages 1, 2, 3, 20, 21, 40, 41, 42 of actual document.

View the full content.
View Full Document
View Full Document

OpenGL Application’s Architecture

112 views

Other


Pages:
42
School:
California State University, Northridge
Course:
Comp 465 - Graphic Syst/dsgn
Graphic Syst/dsgn Documents

Unformatted text preview:

OpenGL Application s architecture intro open gl application includes glm Glew Freeglut GL system and other libraries Glew Freeglut GL glm extension library loader 3rd party GLUT Utility Toolkit system independent 3rd party OpenGL primitives OpenGL Mathematics includes GLSL like math on line glut manual many glut features are compatibility mode http www opengl org resources libraries glut spec3 spec3 html 1 intro open gl API Description State Machine Functions set current state variables polygon mode culling glEnable GL CULL FACE glCullFace GL BACK Function naming convention library method name number of arguments type of arguments gl core s i f d v glBindBuffer GL ARRAY BUFFER buffer glUniformMatrix4fv MVP 1 GL FALSE glm value ptr modelViewProjectionMatrix 2 intro open gl Programming Languages Device Computer Language C C GPU glsl 3 Description Application specific OOP code classes for visual objects glut function calls OpenGL function calls vertex shader manipulation Everything is not an object C is a hybrid OOP procedural and OO It can have methods like main outside of any class definition Application specific classes have methods that will make OpenGL calls class Object3D s draw function could call glDrawArrays Do not attempt to write OpenGL glut function handlers in classes intro open gl OpenGL app s structure user application program shader program display 4 system timer keyboard mouse events C C code glut glm OpenGL functions glut window interface to host OS glutDisplayFunc display draw fn glutReshapeFunc resize resize fn glut func app fn handle events glewInit enable extension handler init create and load models buffers load compile glsl programs create update M V P matrices glutMainLoop respond to events render glutPostRedisplay glutSwapBuffer vertex glsl fragment glsl refresh GPU frame buffer define and include File intro open gl 5 includes465 include465 hpp defines and includes OpenGL PG 8th ed code define BUFFER OFFSET x define MAX INFO LOG SIZE include



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view OpenGL Application’s Architecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view OpenGL Application’s Architecture and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?