OpenGL GLUT print opengl version code example

标签: OpenGL C++ 发布于:2020-04-09 22:52:42 编辑于:2022-11-15 12:27:03 浏览量:2175
        /*
title: OpenGL GLUT print opengl version code example
tags: 
- OpenGL
- C++
*/
#include <Windows.h>
#include <stdio.h>
#include <GL/glut.h>

int main(int argc, char** argv)
{
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH);
	glutInitWindowSize(300, 300);
	glutCreateWindow("print-opengl-version");
	printf("OpenGL version: %s\n", glGetString(GL_VERSION));
	return 0;
}


    

未经允许,禁止转载,本文源站链接:https://iamazing.cn/