Description: 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()
To Search:
File list (Check if you may need any files):
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