In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Opengl configuration instructions:
This configuration document configures the vs2008 project project for the windows 64-bit operating system
1. Download OpenGL's glut class library: http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
2. Steps to install GLUT in Windows environment:
1. Unpack the downloaded package and you will get 5 files.
2. Put the extracted glut.h into the folder D:\ Program Files (x86)\ Microsoft Visual Studio 9.0\ VC\ include\ GL, and create one without the GL folder. (depending on the installation path)
3. Put the extracted glut.lib and glut32.lib in the folder where the static function library is located (mine is D:\ Program Files (x86)\ Microsoft Visual Studio 9.0\ VC\ lib, depending on the installation path)
4. Put the extracted glut.dll and glut32.dll into C:\ Windows\ SysWOW64 under the operating system directory.
3. Configure the project environment
The following steps need to be performed in each project that requires openGL:
(1) Project-Project Properties-configuration Properties-Cpicurizer-preprocessor definition, add
GLUT_BUILDING_LIB
(2) Project-Project Properties-configuration Properties-Linker-input-additional dependencies, add
Glut32.lib Opengl32.lib Glu32.lib
Test the code:
/ / opengl_test.cpp: defines the entry point for the console application.
/ /
# include "stdafx.h"
# include
Void myDisplay (void)
{
GlClear (GL_COLOR_BUFFER_BIT)
GlRectf (- 0.5f,-0.5f, 0.5f, 0.5f)
GlFlush ()
}
Int main (int argc, char * argv [])
{
GlutInit (& argc, argv)
GlutInitDisplayMode (GLUT_RGB | GLUT_SINGLE)
GlutInitWindowPosition (100,100)
GlutInitWindowSize (400,400)
GlutCreateWindow ("the first OpenGL program")
GlutDisplayFunc & myDisplay)
GlutMainLoop ()
Return 0
}
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.