`
bulote
  • 浏览: 1353955 次
文章分类
社区版块
存档分类
最新评论

优秀课件笔记之 Overview of Graphics System

 
阅读更多

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);  }

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics