一,下载Virtual Studio Community 2017

https://my.visualstudio.com/Downloads/Featured?mkt=zh-cn

二,下载GLFW(32-bits Windows binaries)

https://www.glfw.org/download.html

三,下载GLEW(Binaries Windows 32 bits and 64 bits)

http://glew.sourceforge.net/

四,用VS新建一个控制台的工程

       配置项目熟悉

    1. 配置属性 --> C/C++ --> 常规 --> 附加包含目录
    2. 配置属性 --> 链接器 --> 常规 --> 附加库目录
    3. 配置属性 --> 链接器 --> 输入 --> 附加依赖项

 

opengl32.lib
glfw3.lib
glew32s.lib

main.cpp

// ConsoleApplication2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>

#define GLEW_STATIC
#include<GL/glew.h>
#include <GLFW/glfw3.h>
 
int main()
{
    std::cout << "Hello World!\n";
}

// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu

// Tips for Getting Started: 
//   1. Use the Solution Explorer window to add/manage files
//   2. Use the Team Explorer window to connect to source control
//   3. Use the Output window to see build output and other messages
//   4. Use the Error List window to view errors
//   5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
//   6. In the future, to open this project again, go to File > Open > Project and select the .sln file

 

posted @ 2022-04-29 08:49 maxiongying 阅读(203) 评论(0) 推荐(0) 编辑
摘要: https://cstsinghua.github.io/2018/07/12/openGL%E5%AD%A6%E4%B9%A0%E8%B7%AF%E5%BE%84/ 阅读全文
posted @ 2022-01-12 17:14 maxiongying 阅读(99) 评论(0) 推荐(0) 编辑
摘要: I get gl error 0x505 (out of memory) when drawing elements for seemingly no reason. I have a lot of free GPU memory when this happens. Eventually, aft 阅读全文
posted @ 2021-12-29 16:22 maxiongying 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://lists.apple.com/archives/mac-opengl/2011/Jan/msg00010.html Subject: Premultiplied alpha and GL_ONE vs. raw and GL_SRC_ALPHA From: Zack Morr 阅读全文
posted @ 2021-12-09 10:03 maxiongying 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 工具:CMake、VS2015 安装官网安装:https://learnopengl-cn.readthedocs.io/zh/latest/ 阅读全文
posted @ 2021-11-24 16:33 maxiongying 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 一,下载TDM-GCC https://jmeubank.github.io/tdm-gcc/ 二,下载免安装版本的 VSCode-win32-x64-1.58.2 三,配置(参考https://zhuanlan.zhihu.com/p/87864677) 说明:如果以前安装过vs code,可以到 阅读全文
posted @ 2021-11-24 15:53 maxiongying 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 创建VBO 创建VBO需要3个步骤: 使用glGenBuffers()生成新缓存对象。 使用glBindBuffer()绑定缓存对象。 使用glBufferData()将顶点数据拷贝到缓存对象中。 1.glGenBuffers 官方解释:generate buffer object names意思是 阅读全文
posted @ 2021-11-16 10:55 maxiongying 阅读(660) 评论(0) 推荐(1) 编辑
摘要: 一,更新代码后,需要同步source insight Project--Synchronize Files Force all files to be re-parsed 阅读全文
posted @ 2021-10-09 12:24 maxiongying 阅读(108) 评论(0) 推荐(0) 编辑
摘要: equip 装备 Approved 得到正式认可的 Institution 机构 jointly 共同Ministry 部Municipal 市政Evaluation 评估Regulations 规定Valeo 法雷奥reputation 名声 Auto Parking System (APS) 自 阅读全文
posted @ 2021-08-19 09:22 maxiongying 阅读(234) 评论(0) 推荐(0) 编辑
摘要: https://services.gradle.org/distributions/ 阅读全文
posted @ 2021-07-20 23:30 maxiongying 阅读(60) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示