Graphics 版 (精华区)
发信人: killest (victor), 信区: Graphics
标 题: [转载] VC 4.0中使用OpenGL(5)
发信站: 紫 丁 香 (Wed Apr 22 10:28:40 1998), 站内信件
【 以下文字转载自 Programming 讨论区 】
【 原文由 xiaojun 所发表 】
Another set of features enables applications to selectively use or discard
pixels. For example, drawing a pixel can be made conditional upon
properties such as the pixel's depth or its opacity.
A greatly simplified view of how OpenGL works is presented in Figure 41.1.
Figure 41.1. Simplified overview of OpenGL operations.
Initialization
Before the OpenGL Library can be used, a number of initialization steps
must be executed.
Every Windows OpenGL application must associate a rendering context with a
device context. The device context must be a display device context or a
memory device context that is compatible with the display device context.
To set up a rendering context, applications must first use the
SetPixelFormat Win32 function to set up a pixel format for the device;
next, they must call wglCreateContext with the device context handle as its
parameter. If successful, wglCreateContext returns a rendering context
handle of type HGLRC.
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: hs6.hit.edu.cn]
--
※ 转载:.紫 丁 香 bbs.hit.edu.cn.[FROM: victor.hit.edu.c]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.775毫秒