优秀课件笔记之 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);  }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值