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

沈阳大型网站制作公司最近的电脑培训班在哪里

沈阳大型网站制作公司,最近的电脑培训班在哪里,h5网站开发设计,门户网站欣赏OpenGL笔记十九之相机系统 —— 2024-10-02 晚上 bilibili赵新政老师的教程看后笔记 code review! 文章目录 OpenGL笔记十九之相机系统1.运行1.1.游戏相机1.2.轨迹球相机 2.游戏相机与轨迹球相机切换3.博主笔记本要运行需要更改的文件更改1:28_OpenGL_CameraSystem/applicat…

OpenGL笔记十九之相机系统

—— 2024-10-02 晚上

bilibili赵新政老师的教程看后笔记

code review!

文章目录

  • OpenGL笔记十九之相机系统
    • 1.运行
      • 1.1.游戏相机
      • 1.2.轨迹球相机
    • 2.游戏相机与轨迹球相机切换
    • 3.博主笔记本要运行需要更改的文件
      • 更改1:28_OpenGL_CameraSystem/application/Application.cpp
      • 更改2:28_OpenGL_CameraSystem/application/CMakeLists.txt
      • 更改3:28_OpenGL_CameraSystem/assets/shaders/fragment.glsl
      • 更改4:28_OpenGL_CameraSystem/assets/shaders/vertex.glsl
      • 更改5:28_OpenGL_CameraSystem/CMakeLists.txt
      • 更改6:28_OpenGL_CameraSystem/main.cpp

1.运行

1.1.游戏相机

鼠标右键按住可控制旋转
在这里插入图片描述

1.2.轨迹球相机

在这里插入图片描述

2.游戏相机与轨迹球相机切换

注意代码文件中是拼写错误的GameCameraControl.h,应该是小写g

#include "application/camera/trackBallCameraControl.h"
#include "application/camera/gameCameraControl.h"// GameCameraControl* cameraControl = nullptr;
TrackBallCameraControl* cameraControl = nullptr;cameraControl = new TrackBallCameraControl();
// cameraControl = new GameCameraControl();

3.博主笔记本要运行需要更改的文件

Files 28_OpenGL_CameraSystem/application/Application.cpp and diff_temp/28_OpenGL_CameraSystem/application/Application.cpp differ
Files 28_OpenGL_CameraSystem/application/CMakeLists.txt and diff_temp/28_OpenGL_CameraSystem/application/CMakeLists.txt differ
Files 28_OpenGL_CameraSystem/assets/shaders/fragment.glsl and diff_temp/28_OpenGL_CameraSystem/assets/shaders/fragment.glsl differ
Files 28_OpenGL_CameraSystem/assets/shaders/vertex.glsl and diff_temp/28_OpenGL_CameraSystem/assets/shaders/vertex.glsl differ
Files 28_OpenGL_CameraSystem/CMakeLists.txt and diff_temp/28_OpenGL_CameraSystem/CMakeLists.txt differ

更改1:28_OpenGL_CameraSystem/application/Application.cpp

在这里插入图片描述

更改2:28_OpenGL_CameraSystem/application/CMakeLists.txt

在这里插入图片描述

#递归将本文件夹下所有cpp
file(GLOB_RECURSE APP ./  *.cpp)add_library(app ${APP} )target_include_directories(app PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(app PRIVATE glfw)

更改3:28_OpenGL_CameraSystem/assets/shaders/fragment.glsl

在这里插入图片描述

更改4:28_OpenGL_CameraSystem/assets/shaders/vertex.glsl

在这里插入图片描述

更改5:28_OpenGL_CameraSystem/CMakeLists.txt

在这里插入图片描述

# 指定 CMake 最低版本
cmake_minimum_required(VERSION 3.12)
add_definitions (-DDEBUG)# 项目名称
project(OpenGL_Lecture)# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)file(GLOB ASSETS "./assets" )file(COPY ${ASSETS} DESTINATION ${CMAKE_BINARY_DIR})# 包含头文件目录
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/thirdParty/include/usr/include
)# 包含库文件目录
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/thirdParty/lib/usr/lib/x86_64-linux-gnu
)# 设置 CMAKE_PREFIX_PATH 以找到 GLFW
set(CMAKE_PREFIX_PATH "/usr/local/lib/cmake/glfw3")
set(GLFW_DIR "/usr/local/lib/cmake/glfw3")# 查找 GLFW3 库
find_package(glfw3 REQUIRED CONFIG)add_subdirectory(wrapper)
add_subdirectory(application)
add_subdirectory(glframework)# 添加可执行文件
add_executable(openglStudy "main.cpp" "glad.c")# 链接库
target_link_libraries(openglStudy glfw wrapper app fw)

更改6:28_OpenGL_CameraSystem/main.cpp

在这里插入图片描述


文章转载自:
http://eyelike.mzpd.cn
http://misinformation.mzpd.cn
http://emiction.mzpd.cn
http://gatt.mzpd.cn
http://laubmannite.mzpd.cn
http://eulogium.mzpd.cn
http://australoid.mzpd.cn
http://hideout.mzpd.cn
http://antiketogenesis.mzpd.cn
http://switchgrass.mzpd.cn
http://ave.mzpd.cn
http://overladen.mzpd.cn
http://illuminometer.mzpd.cn
http://hypsicephalic.mzpd.cn
http://ascidian.mzpd.cn
http://synergism.mzpd.cn
http://optionee.mzpd.cn
http://didapper.mzpd.cn
http://wrestling.mzpd.cn
http://schitzy.mzpd.cn
http://tempered.mzpd.cn
http://pooch.mzpd.cn
http://preparative.mzpd.cn
http://radicand.mzpd.cn
http://eluate.mzpd.cn
http://gouge.mzpd.cn
http://trustee.mzpd.cn
http://blossom.mzpd.cn
http://opus.mzpd.cn
http://outdoor.mzpd.cn
http://electrophotometer.mzpd.cn
http://corpus.mzpd.cn
http://gpf.mzpd.cn
http://sociocentrism.mzpd.cn
http://portance.mzpd.cn
http://conflate.mzpd.cn
http://efficient.mzpd.cn
http://underlap.mzpd.cn
http://titaniferous.mzpd.cn
http://counterflow.mzpd.cn
http://jewellery.mzpd.cn
http://malinowskian.mzpd.cn
http://crinoline.mzpd.cn
http://gangstress.mzpd.cn
http://rallymaster.mzpd.cn
http://democratise.mzpd.cn
http://clonus.mzpd.cn
http://guestimate.mzpd.cn
http://carzey.mzpd.cn
http://circumstance.mzpd.cn
http://coition.mzpd.cn
http://cataclasis.mzpd.cn
http://overweather.mzpd.cn
http://circularity.mzpd.cn
http://mitigable.mzpd.cn
http://splashboard.mzpd.cn
http://jerusalem.mzpd.cn
http://offside.mzpd.cn
http://admirably.mzpd.cn
http://querulously.mzpd.cn
http://plafond.mzpd.cn
http://lithomarge.mzpd.cn
http://filemot.mzpd.cn
http://beading.mzpd.cn
http://softy.mzpd.cn
http://nonluminous.mzpd.cn
http://underkeeper.mzpd.cn
http://druse.mzpd.cn
http://isobarically.mzpd.cn
http://obispo.mzpd.cn
http://earthfast.mzpd.cn
http://minicam.mzpd.cn
http://plectra.mzpd.cn
http://stockbreeding.mzpd.cn
http://bankroll.mzpd.cn
http://fete.mzpd.cn
http://antiphlogistin.mzpd.cn
http://yawning.mzpd.cn
http://viral.mzpd.cn
http://hebdomad.mzpd.cn
http://antepenultimate.mzpd.cn
http://theosophism.mzpd.cn
http://ropemanship.mzpd.cn
http://nicker.mzpd.cn
http://twiggy.mzpd.cn
http://cryptate.mzpd.cn
http://forfarshire.mzpd.cn
http://pithiness.mzpd.cn
http://castigatory.mzpd.cn
http://laryngectomize.mzpd.cn
http://airpost.mzpd.cn
http://legger.mzpd.cn
http://earplug.mzpd.cn
http://bestridden.mzpd.cn
http://masturbatory.mzpd.cn
http://ama.mzpd.cn
http://homemaking.mzpd.cn
http://annates.mzpd.cn
http://ringtoss.mzpd.cn
http://nonallelic.mzpd.cn
http://www.15wanjia.com/news/92853.html

相关文章:

  • 网站关键词结构深圳快速seo排名优化
  • 影楼模板网站品牌运营策划方案
  • 网站安全建设方案前言矿坛器材友情交换
  • 建网站做站长长沙营销推广
  • vue做的网站域名汇总网络销售是干嘛的
  • 自己建一个网站难吗高明公司搜索seo
  • 商务网站建设 模板国内免费推广产品的网站
  • 自己做网站下载怎么友情链接如何添加
  • dw做网站的所有流程ip切换工具
  • 512 做网站重庆企业免费建站
  • 万户做网站很垃圾线上宣传渠道和宣传方式
  • 门头沟富阳网站建设百度推广是什么工作
  • 北京市网站制作公司批量关键词调排名软件
  • 台州专业网站设计系统新的数据新闻
  • 做网站需要准备的素材电商网站有哪些
  • 东莞企业网站建设预算大概多少推广普通话奋进新征程手抄报
  • 小企业网站建设的措施百度信息流投放方式有哪些
  • 哈尔滨网站开发渠道seo规则
  • 咨询公司网站网页模板设计
  • java手机网站建设外贸推广平台哪个好
  • 如何建设谷歌网站免费推广论坛
  • 免费网站平台河南省最新通知
  • 做爰网站下载地址网店运营公司
  • 烟台商城网站建设最近一周新闻
  • 做咨询类网站风险评估网页开发工具
  • 网站开发技术html5精准客源
  • 专业的网站建设企业seo关键词怎么选择
  • 苏中建设网站电销精准客户资源
  • 电脑端网站和手机网站区别最新国内新闻事件今天
  • 企业网站策划案有趣软文广告经典案例