2021年1月11日

Xcode 读取代码所在目录txt或文件

摘要: Xcode 读取代码所在目录txt或文件 前言 Xcode 写C++ 代码时候,会碰到读取本目录下txt文件的内容,但是又不想使用绝对路径(ps:Mac 绝对路径真是太长了),那么就是得使用相对路径了。可以做如下设置,就可以打开文件并读取了 Step 1: 打开xcode 点击Product 点击S 阅读全文

posted @ 2021-01-11 19:04 ZhYQ_note 阅读(843) 评论(0) 推荐(1) 编辑

xcode:读取txt文件

摘要: 编译之后的文件目录 程序中使用: auto shader = new Shader("./shader_res/shader.vs", "./shader_res/shader.fs"); 阅读全文

posted @ 2021-01-11 15:42 ZhYQ_note 阅读(434) 评论(0) 推荐(0) 编辑

mac opengl 画一个三角形

摘要: 1、mac下opengl开发环境搭建 2、学习https://learnopengl-cn.github.io/01%20Getting%20started/04%20Hello%20Triangle/ 课程opengl的基本概念, 坐标,VAO,VBO, shader等和一些常用的API 3、参考 阅读全文

posted @ 2021-01-11 10:31 ZhYQ_note 阅读(102) 评论(0) 推荐(0) 编辑

导航