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

做gif表情包的网站织梦怎么做中英文网站切换

做gif表情包的网站,织梦怎么做中英文网站切换,做代炼的网站,白酒网站的建设Nehe的教程确实太老了#xff0c;不过我认为它也能够让我了解OpenGL3.2以前的管线渲染模式#xff0c;即使它在现在已经不常见了。因为想要了解#xff0c;所以我还是会看完Nehe的教程。 现在这是一个新的教程 - JoeyDeVries的教程#xff0c;可以说是网上最好的OpenGL教程…Nehe的教程确实太老了不过我认为它也能够让我了解OpenGL3.2以前的管线渲染模式即使它在现在已经不常见了。因为想要了解所以我还是会看完Nehe的教程。 现在这是一个新的教程 - JoeyDeVries的教程可以说是网上最好的OpenGL教程现在一步一步地来学习。我会在每个新的教程标题前面附加new旧的教程标题前面附加outdated。 glfw的函数都可以在这里找到。 在运行代码前需要先在项目属性-链接器-输入-附加依赖项中添加glew32s.lib、glfw3.lib、opengl32.lib。 代码如下 1 #include iostream2 3 // GLEW4 #define GLEW_STATIC5 #include GL/glew.h6 7 // GLFW8 #include GLFW/glfw3.h9 10 // Window dimensions 11 const GLuint WIDTH 800, HEIGHT 600; 12 13 void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode) 14 { 15 std::cout key std::endl; 16 // When a user presses the escape key, we set the WindowSouldlose propert to ture 17 // closing the application 18 if (key GLFW_KEY_ESCAPE action GLFW_PRESS) 19 glfwSetWindowShouldClose(window, GLFW_TRUE); 20 } 21 22 // The MAIN function, from here we start the application and run the game loop 23 int main() 24 { 25 // Init GLFW 26 glfwInit(); 27 // Set all the required options for GLFW 28 glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); 29 glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); 30 glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); 31 glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); 32 33 // Create a GLFWwindow object that we can use for GLFWs functions 34 GLFWwindow* window glfwCreateWindow(WIDTH, HEIGHT, OpenGL, nullptr, nullptr); 35 if (window nullptr) 36 { 37 std::cout Failed to create GLFW window std::endl; 38 glfwTerminate(); 39 return -1; 40 } 41 glfwMakeContextCurrent(window); 42 // Set the required callback function 43 glfwSetKeyCallback(window, key_callback); 44 // Set this to true so GLEW knows to use a modern approach to retrieving 45 // function pointers and extensions 46 glewExperimental GL_TRUE; 47 // Initialize GLEW to setup the OpenGL Function pointers 48 if (glewInit() ! GLEW_OK) 49 { 50 std::cout Failed to initialize GLEW std::endl; 51 return -1; 52 } 53 54 // Define the viewport dimensions 55 int width, height; 56 glfwGetFramebufferSize(window, width, height); 57 glViewport(0, 0, width, height); 58 59 // Game loop 60 while (!glfwWindowShouldClose(window)) 61 { 62 // Check if any events have been activiated (key pressed, mouse moved etc.) 63 // and call corresponding response functions 64 glfwPollEvents(); 65 66 glClearColor(0.2, 0.3, 0.4, 1.0f); 67 glClear(GL_COLOR_BUFFER_BIT); 68 69 // Swap the screen buffers 70 glfwSwapBuffers(window); 71 } 72 73 // Terminate GLFW, clearing any resources allocated by GLFW. 74 glfwTerminate(); 75 return 0; 76 }  转载于:https://www.cnblogs.com/clairvoyant/p/5575129.html
http://www.pierceye.com/news/836211/

相关文章:

  • 购物京东商城西安官网seo哪家公司好
  • 专门做库存处理的网站沭阳建设网站
  • 建筑必看六个网站门户网站地方生活门户有哪些
  • 江阴 网站开发python基础教程百度亿
  • 邹城网站建设v556本校网站建设
  • 郑州一站式网站搭建北京装饰公司十大排名
  • 网站建设程序代码百度智能创作平台
  • 网上制作网站建立中文网站的英文
  • 网站域名过户查询太原企业网站怎么优化
  • 西安哪些做网站的公司创业平台网站
  • 做网站费用滁州wordpress 快站
  • 上海手机网站制作网站制作最
  • 做一网站APP多少钱网站做照片
  • 会同县做网站设计网站的结构时
  • 行业门户网站制作百度权重是怎么来的
  • 巅云建站as.net 网站开发视频教程
  • 网站开发定制合同在哪个网站可以学做衣服
  • 关键词排行优化网站搜索引擎营销的主要方式有
  • 免费网站建设免费咨询wordpress安装环境搭建
  • 网站怎样和首页做链接地址广厦建设集团官方网站
  • 遂平县网站建设网站建站的类型
  • wordpress多用途主题排行建网站做优化
  • 那里可以做旅游网站的吗手机系统
  • 牙科医院网站源码开封建网站
  • 网站的内容做网站后端的全部步骤
  • 可以做软件的网站有哪些功能wordpress建站事例
  • 静态网站生成刚刚发生在昆明的大事
  • 牡丹江0453免费信息网站学生保险网站
  • 接网站开发项目万网网站后台登陆
  • 江苏网站建站系统平台生存曲线哪个网站可以做