文件名称:OpenGL
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 147kb
- 下载次数:
- 0次
- 提 供 者:
- Tod****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
OpenGL simple examples.
glLoadIdentity()
glClear(GL_COLOR_BUFFER_BIT)
glBegin(GL_POLYGON)
glColor4f(1.0f, 0.0f, 0.0f, 1.0f)
glVertex2f(100.0f, 50.0f)
glColor4f(0.0f, 1.0f, 0.0f, 1.0f)
glVertex2f(450.0f, 400.0f)
glColor4f(0.0f, 0.0f, 1.0f, 1.0f)
glVertex2f(450.0f, 50.0f)
glVertex2f(100.0f, 400.0f)
glEnd()
glFlush() -OpenGL simple examples.
glLoadIdentity()
glClear(GL_COLOR_BUFFER_BIT)
glBegin(GL_POLYGON)
glColor4f(1.0f, 0.0f, 0.0f, 1.0f)
glVertex2f(100.0f, 50.0f)
glColor4f(0.0f, 1.0f, 0.0f, 1.0f)
glVertex2f(450.0f, 400.0f)
glColor4f(0.0f, 0.0f, 1.0f, 1.0f)
glVertex2f(450.0f, 50.0f)
glVertex2f(100.0f, 400.0f)
glEnd()
glFlush()
glLoadIdentity()
glClear(GL_COLOR_BUFFER_BIT)
glBegin(GL_POLYGON)
glColor4f(1.0f, 0.0f, 0.0f, 1.0f)
glVertex2f(100.0f, 50.0f)
glColor4f(0.0f, 1.0f, 0.0f, 1.0f)
glVertex2f(450.0f, 400.0f)
glColor4f(0.0f, 0.0f, 1.0f, 1.0f)
glVertex2f(450.0f, 50.0f)
glVertex2f(100.0f, 400.0f)
glEnd()
glFlush() -OpenGL simple examples.
glLoadIdentity()
glClear(GL_COLOR_BUFFER_BIT)
glBegin(GL_POLYGON)
glColor4f(1.0f, 0.0f, 0.0f, 1.0f)
glVertex2f(100.0f, 50.0f)
glColor4f(0.0f, 1.0f, 0.0f, 1.0f)
glVertex2f(450.0f, 400.0f)
glColor4f(0.0f, 0.0f, 1.0f, 1.0f)
glVertex2f(450.0f, 50.0f)
glVertex2f(100.0f, 400.0f)
glEnd()
glFlush()
相关搜索: glLoadIdentity
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OpenGL\1.aps
......\1.clw
......\1.cpp
......\1.dsp
......\1.dsw
......\1.h
......\1.ncb
......\1.opt
......\1.plg
......\1.rc
......\1Doc.cpp
......\1Doc.h
......\1View.cpp
......\1View.h
......\Debug\1.exe
......\MainFrm.cpp
......\MainFrm.h
......\res\1.ico
......\...\1.rc2
......\...\1Doc.ico
......\...\Toolbar.bmp
......\Resource.h
......\StdAfx.cpp
......\StdAfx.h
......\Debug
......\res
OpenGL
......\1.clw
......\1.cpp
......\1.dsp
......\1.dsw
......\1.h
......\1.ncb
......\1.opt
......\1.plg
......\1.rc
......\1Doc.cpp
......\1Doc.h
......\1View.cpp
......\1View.h
......\Debug\1.exe
......\MainFrm.cpp
......\MainFrm.h
......\res\1.ico
......\...\1.rc2
......\...\1Doc.ico
......\...\Toolbar.bmp
......\Resource.h
......\StdAfx.cpp
......\StdAfx.h
......\Debug
......\res
OpenGL