优秀课件笔记之 Overview of Graphics System
2008-03-01 10:01
381 查看
1、本文所以内容来自 著名高校课件和学生笔记(校园里面经常见到有人高价买笔记)
2、任课教师不会提供参考文献,所以只能对作者表示感谢,如果引用了您的作品,可以用回
复方式补充参考文献。
3、我不对文章无关问题进行解答,文章内容也比较难,我也很难解答您遇到的问题,如果发
现BUG可以用回复方式帮我修正。
4、本课 属于Computer Graphics
,适用于计算机图形学课程,教材为电子工业出版
社Computer Graphics(计算机图形学,中文版和英文版)
本课其他部分的导航条见页面底部
Overview of Graphics System
§2.1 Video Display Devices
The primary output device is a video monitor.
Stereoscopic(立体的) and Virtual-Reality Systems
Display stereoscopic(立体的) views of objects.
This method does not produce true 3-D images, but provide a 3-D effect by presenting a different view to each eye of an viewer.
§2.2 Raster-Scan Systems (光栅扫描系统)
Interactive raster-graphics systems typically employ several processing units.
§2.7 Graphics Software
There are two broad classifications for computer-graphics software:
Special-purpose packages
General programming packages
General Programming Packages
A general programming package provides a library of graphics functions that can be used in C, C++, Java etc.
Such as GL (Graphics Library), OpenGL, VRML (Virtual-Reality Modeling Language), Java 2D, Java 3D.
A set of graphics functions is often called computer-graphics application programming interface (CG API).
Graphics Functions
The basic building blocks for pictures are referred to as graphics output primitives.
Attributes are properties of the output primitives.
We can change the size, position, orientation of the object using geometric transformations.
Viewing transformations are used to select a view of scene.
Input functions are used to control and process the data flow from the interactive devices.
OpenGL Language Binding
Graphics functions in any package are typically defined as a set of specifications that are independent of any programming language.
A language binding is then defined for a particularly high-level programming language.
This binding gives the syntax for accessing the various graphics functions.
Basic OpenGL Syntax
Function names in the OpenGL basic (core) library are prefixed with gl, such as:
glBegin, glClear, glCopyPixels
Certain function require one (or more) of their arguments be assigned a symbolic constant, such as:
GL_2D, GL_RGB, GL_POLYGON
The OpenGL functions also expect specific data types:
GLbyte, GLshort, GLint, GLfloat, GLdouble, GLboolean
Header Files
To use the OpenGL ibraries, we should:
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <GL/glaux.h>
#include <GL/gl.h> #include <GL/glaux.h>
void main(void) { auxInitDisplayMode(AUX_SINGLE|AUX_RGBA); auxInitPosition(0,0,500,500); auxInitWindow(“simple”); glClearColor(0.0,0.0,0.0,0.0); glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.0,0.0); glRectf(-0.5,-0.5,0.5,0.5);
glFlush(); _sleep(1000); }
2、任课教师不会提供参考文献,所以只能对作者表示感谢,如果引用了您的作品,可以用回
复方式补充参考文献。
3、我不对文章无关问题进行解答,文章内容也比较难,我也很难解答您遇到的问题,如果发
现BUG可以用回复方式帮我修正。
4、本课 属于Computer Graphics
,适用于计算机图形学课程,教材为电子工业出版
社Computer Graphics(计算机图形学,中文版和英文版)
本课其他部分的导航条见页面底部
Overview of Graphics System
§2.1 Video Display Devices
The primary output device is a video monitor.
Stereoscopic(立体的) and Virtual-Reality Systems
Display stereoscopic(立体的) views of objects.
This method does not produce true 3-D images, but provide a 3-D effect by presenting a different view to each eye of an viewer.
§2.2 Raster-Scan Systems (光栅扫描系统)
Interactive raster-graphics systems typically employ several processing units.
§2.7 Graphics Software
There are two broad classifications for computer-graphics software:
Special-purpose packages
General programming packages
General Programming Packages
A general programming package provides a library of graphics functions that can be used in C, C++, Java etc.
Such as GL (Graphics Library), OpenGL, VRML (Virtual-Reality Modeling Language), Java 2D, Java 3D.
A set of graphics functions is often called computer-graphics application programming interface (CG API).
Graphics Functions
The basic building blocks for pictures are referred to as graphics output primitives.
Attributes are properties of the output primitives.
We can change the size, position, orientation of the object using geometric transformations.
Viewing transformations are used to select a view of scene.
Input functions are used to control and process the data flow from the interactive devices.
OpenGL Language Binding
Graphics functions in any package are typically defined as a set of specifications that are independent of any programming language.
A language binding is then defined for a particularly high-level programming language.
This binding gives the syntax for accessing the various graphics functions.
Basic OpenGL Syntax
Function names in the OpenGL basic (core) library are prefixed with gl, such as:
glBegin, glClear, glCopyPixels
Certain function require one (or more) of their arguments be assigned a symbolic constant, such as:
GL_2D, GL_RGB, GL_POLYGON
The OpenGL functions also expect specific data types:
GLbyte, GLshort, GLint, GLfloat, GLdouble, GLboolean
Header Files
To use the OpenGL ibraries, we should:
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <GL/glaux.h>
#include <GL/gl.h> #include <GL/glaux.h>
void main(void) { auxInitDisplayMode(AUX_SINGLE|AUX_RGBA); auxInitPosition(0,0,500,500); auxInitWindow(“simple”); glClearColor(0.0,0.0,0.0,0.0); glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.0,0.0); glRectf(-0.5,-0.5,0.5,0.5);
glFlush(); _sleep(1000); }
相关文章推荐
- 优秀课件笔记旅游资源和旅游地评价 Evaluation of Tourism Resources 5
- 优秀课件笔记旅游地理学发展简史A Brief History of Geography of Tourism
- 优秀课件笔记之旅游地空间竞争与合作发展The Spatial Competition and Cooperation of Tourist
- 优秀课件笔记之重要类型旅游地介绍与分析Introduction and Analysis of Tourist Destinationsof Destinations
- 优秀课件笔记之A Survey of Computer Graphics
- 优秀课件笔记之重要类型旅游地介绍与分析Introduction and Analysis of Tourist Destinationsof Destinations 2
- 优秀课件笔记之 Attributes of Graphics Primitives
- 优秀课件笔记之重要类型旅游地介绍与分析Introduction and Analysis of Tourist Destinationsof Destinations 3
- 优秀课件笔记旅游资源和旅游地评价 Evaluation of Tourism Resources 4
- 优秀课件笔记旅游资源和旅游地评价 Evaluation of Tourism Resources 2
- 优秀课件笔记之旅游交通Transportation of Tourism
- 优秀课件笔记旅游资源和旅游地评价 Evaluation of Tourism Resources 3
- 优秀课件笔记之旅游发展对区域的影响Impact of Tourism Development
- 优秀课件笔记之计算机软件的法律特性
- 优秀课件笔记之员工培训组织的人力资源开发
- 优秀课件笔记旅游地理学Geography of Tourism
- 优秀课件笔记——财政学2