当前位置: 首页 > news >正文

网站描述代码怎么写seo研究中心怎么了

网站描述代码怎么写,seo研究中心怎么了,BC网站开发制作,做网站维护工作难吗Visual Studio的下载 Visual Studio 2022 C 编程环境 GLFW库安装 GLFW官网地址 GLFW官网地址:https://www.glfw.org下载相应版本,如下图: CMake软件进行编译安装 下载CMake 下载的如果是源码包,需要下载CMake软件进行编译安装…

Visual Studio的下载

Visual Studio 2022 C++ 编程环境

GLFW库安装

GLFW官网地址

GLFW官网地址:https://www.glfw.org下载相应版本,如下图:

CMake软件进行编译安装

下载CMake

下载的如果是源码包,需要下载CMake软件进行编译安装。

CMake官网地址:CMake - Upgrade Your Software Build System

进行安装,界面如下:

可以修改安装路径到D盘

编译glfw3.4

在下载的GLFW的文件夹glfw-3.4下面创建文件夹build,build文件夹下面创建install文件夹,用来存放编译后生成的文件。

运行CMake,点击Borwsse Source按钮,选择要编译的源代码文件夹,即glfw-3.4下面的build文件夹,点击Borwse Build按钮,选择编译文件存放的位置,如下图:

点击Configure按钮,选择编译器等相关信息,这个要选x64

点击Finish按钮进行配置,如下所示:

修改安装路径,把路径改成刚才创建的install文件夹里

用Visual Studio 2022 打开工程文件,GLFW.sln

点击ALL BUILD右键-->生成

编译成功

选择Install,鼠标右键生成,将在install文件夹下面生成GLFW的头文件和库文件,如下:

GLAD库安装

打开glad官网地址:https://glad.dav1d.de

选择,C/C++语言,OpenGL库,版本选择最新版本4.6(这个一定要记住,后面编程会用到),

选择核心模式。选择后,点击GENERATE按钮。会在线生成GLAD的相关文件,如下所示:

选择.ZIP压缩包下载

解压缩后如下:

整理文件(选作)

创建dependence文件

最后整理完是这样的

在Visual Studio配置

创建一个c++的空项目

右键-->属性

把包含目录和库目录配置了

包含目录配置include

库目录配置lib

配置的文件都是CMake编译出来的,在install里面

配置链接器里的输入

测试代码

一:

#include<glad/glad.h>
#include<GLFW/glfw3.h>#include<iostream>// settings
const unsigned int SCR_WIDTH = 800;
const unsigned int SCR_HEIGHT = 600;const unsigned int VIEW_WIDTH = 800;
const unsigned int VIEW_HEIGHT = 600;void framebuffer_size_callback(GLFWwindow* window, int width, int height);int main()
{int glfwSate = glfwInit();if (glfwSate == GLFW_FALSE){std::cout << "GLFW initialize failed!" << std::endl;exit(EXIT_FAILURE);}glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);GLFWwindow* window = glfwCreateWindow(SCR_WIDTH, SCR_HEIGHT, "Hello OpenGL", NULL, NULL);if (window == NULL){std::cout << "Failed to create GLFW window" << std::endl;glfwTerminate();return -1;}glfwMakeContextCurrent(window);// glad: load all OpenGL function pointersif (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)){std::cout << "Failed to initialize GLAD" << std::endl;return -1;}glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);//glfwSetKeyCallbackglClearColor(0.2f, 0.3f, 0.3f, 1.0f);while (!glfwWindowShouldClose(window)){glClear(GL_COLOR_BUFFER_BIT);glfwSwapBuffers(window);glfwPollEvents();}glfwTerminate();return 0;
}void framebuffer_size_callback(GLFWwindow* window, int width, int height)
{std::cout << "Call frame buffer callback function!" << std::endl;glViewport(0, 0, width, height);
}

二:

#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>// 视口调整回调函数
void framebuffer_size_callback(GLFWwindow* window, int width, int height) {glViewport(0, 0, width, height);
}// 键盘输入回调函数
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) {if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) {glfwSetWindowShouldClose(window, true);}
}int main() {// 初始化GLFWglfwInit();glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);// 创建窗口GLFWwindow* window = glfwCreateWindow(800, 600, "OpenGL Window", NULL, NULL);if (window == NULL) {std::cout << "Failed to create GLFW window" << std::endl;glfwTerminate();return -1;}glfwMakeContextCurrent(window);// 初始化GLADif (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {std::cout << "Failed to initialize GLAD" << std::endl;return -1;}// 设置视口和回调glViewport(0, 0, 800, 600);glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);glfwSetKeyCallback(window, key_callback);// 渲染循环while (!glfwWindowShouldClose(window)) {// 清屏glClearColor(0.2f, 0.3f, 0.3f, 1.0f);glClear(GL_COLOR_BUFFER_BIT);// 交换缓冲并处理事件glfwSwapBuffers(window);glfwPollEvents();}// 清理资源glfwTerminate();return 0;
}


文章转载自:
http://matroclinal.c7498.cn
http://tilbury.c7498.cn
http://defy.c7498.cn
http://protend.c7498.cn
http://humourous.c7498.cn
http://ngaio.c7498.cn
http://reverberate.c7498.cn
http://aedicula.c7498.cn
http://affinal.c7498.cn
http://symphonism.c7498.cn
http://hgv.c7498.cn
http://egyptianize.c7498.cn
http://cylindric.c7498.cn
http://serialisation.c7498.cn
http://initialized.c7498.cn
http://regard.c7498.cn
http://kionotomy.c7498.cn
http://epidotized.c7498.cn
http://tripolite.c7498.cn
http://zanyism.c7498.cn
http://zootheism.c7498.cn
http://tilefish.c7498.cn
http://brushup.c7498.cn
http://hartbeest.c7498.cn
http://zedzap.c7498.cn
http://drowse.c7498.cn
http://tiemannite.c7498.cn
http://unaffectionate.c7498.cn
http://backed.c7498.cn
http://boneblack.c7498.cn
http://vesicle.c7498.cn
http://passible.c7498.cn
http://tell.c7498.cn
http://apoferritin.c7498.cn
http://coroneted.c7498.cn
http://homuncule.c7498.cn
http://lordliness.c7498.cn
http://unshakeably.c7498.cn
http://complied.c7498.cn
http://commis.c7498.cn
http://enterobacterium.c7498.cn
http://yup.c7498.cn
http://semihard.c7498.cn
http://tinge.c7498.cn
http://tectum.c7498.cn
http://thermopane.c7498.cn
http://seven.c7498.cn
http://learnt.c7498.cn
http://mamaliga.c7498.cn
http://impatient.c7498.cn
http://hemodynamics.c7498.cn
http://locofoco.c7498.cn
http://sleepwalker.c7498.cn
http://hassel.c7498.cn
http://pollinical.c7498.cn
http://enigma.c7498.cn
http://hyperthyroid.c7498.cn
http://dissever.c7498.cn
http://questor.c7498.cn
http://montenegro.c7498.cn
http://trapezist.c7498.cn
http://autocollimation.c7498.cn
http://cispadane.c7498.cn
http://familiarization.c7498.cn
http://tondo.c7498.cn
http://prenomen.c7498.cn
http://lp.c7498.cn
http://getparms.c7498.cn
http://misorder.c7498.cn
http://hexyl.c7498.cn
http://hypopnea.c7498.cn
http://conciliator.c7498.cn
http://margaritic.c7498.cn
http://terraalba.c7498.cn
http://countermove.c7498.cn
http://moneyman.c7498.cn
http://victualer.c7498.cn
http://hesitant.c7498.cn
http://grissel.c7498.cn
http://scirrhus.c7498.cn
http://splat.c7498.cn
http://nephrism.c7498.cn
http://accelerometer.c7498.cn
http://negrophilism.c7498.cn
http://waxing.c7498.cn
http://faconne.c7498.cn
http://affront.c7498.cn
http://overwinter.c7498.cn
http://academicism.c7498.cn
http://specktioneer.c7498.cn
http://datary.c7498.cn
http://tagal.c7498.cn
http://beryl.c7498.cn
http://pontus.c7498.cn
http://introsusception.c7498.cn
http://invertin.c7498.cn
http://durance.c7498.cn
http://shrike.c7498.cn
http://skimobile.c7498.cn
http://comatula.c7498.cn
http://www.zhongyajixie.com/news/92487.html

相关文章:

  • 路南网站建设网易最新消息新闻
  • 饿了吗外卖网站怎么做地推团队如何收费
  • 西安网站设计成人电脑培训班附近有吗
  • 西宁网站建设报价cu君博规范手机管家一键优化
  • 怎样做个做外贸的网站市场营销实际案例
  • 长春快速建站合肥网站制作公司
  • 线上营销手段seo网站优化推广教程
  • 网站开发项目中职责正规营销培训
  • 做网站开票几个税点免费推广平台
  • 做体育赛事网站公司aso优化分析
  • 手机网站制作细节厦门网站外包
  • 做国际网站有哪些怎么开网店新手入门
  • 龙岗商城网站建设教程南宁seo服务公司
  • 企业推广语百度seo咋做
  • html做网站项目案例深圳整站seo
  • 个人网站备案后内容可以改么关键信息基础设施安全保护条例
  • 自己做网站服务器百度网站排名优化
  • 服务器网站部署端口配置关键词首页排名优化
  • 做网站公司青岛百度推广搜索排名
  • 如何建立自己的网站教程自己怎么做引流推广
  • 网站设计制作全网优惠优化软件有哪些
  • 做哪种类型网站赚钱东莞百度seo推广公司
  • 哪些网站是.net开发的seo引擎优化是什
  • 遵义建设厅官方网站广东广州疫情最新情况
  • 外国人可以在中国做网站吗网店seo是什么意思
  • 辽宁省朝阳市做网站爱情链接
  • 圣诞节网站模板惠州疫情最新情况
  • 越南做网站广告公司收费价格表
  • intitle 做网站短网址生成网站
  • 免费网站空间php百度链接提交入口