PDA

View Full Version : بدست آوردن ورژن Opengl



1485159
دوشنبه 08 آذر 1389, 22:58 عصر
سلام
کد زیر چرا کار نمیکنه؟ کلا برنامه هنگ میکنه.


#include "stdafx.h"
#include <windows.h>
#include <iostream>

#include <GL/gl.h>

#pragma comment(lib,"opengl32.lib")




int _tmain(int argc, _TCHAR* argv[])
{
int x;
std::cout << glGetString(GL_VERSION);
std::cin >> x;
return 0;
}
ممنون.