04 2022 档案

摘要:1 class NewPromise extends Promise{ 2 constructor(fn){ 3 4 const fn2 = function(resolve, reject) { 5 const reject2 = (err) => { 6 setTimeout(() => {re 阅读全文
posted @ 2022-04-29 02:25 Please Call me 小强 阅读(243) 评论(0) 推荐(0) 编辑
摘要:1 int width, height; 2 glfwGetFramebufferSize(window, &width, &height); 3 const float ratio = width / (float) height; 4 5 glViewport(0, 0, width, heig 阅读全文
posted @ 2022-04-25 14:15 Please Call me 小强 阅读(189) 评论(0) 推荐(0) 编辑
摘要:之前搜罗了一下信息,最后锁定了用glfw。 官网地址: https://www.glfw.org/ git地址:https://github.com/glfw/glfw.git git仓库里编译好的,直接拿来用就好了 第二步就是查找例子: #define GLAD_GL_IMPLEMENTATION 阅读全文
posted @ 2022-04-22 22:57 Please Call me 小强 阅读(654) 评论(0) 推荐(0) 编辑
摘要:一直在搜索怎么在mac电脑上用xcode学习openGL。无奈苹果官方在mac osx10.14已经弃用openGL了. 搜索到的信息整理如下: glut: OpenGL Utility Toolkit的缩小, 用于隐藏不同窗口系统API的复杂性。已经停止维护了,相当古老,作者不允许有人对它进行改版 阅读全文
posted @ 2022-04-22 21:58 Please Call me 小强 阅读(164) 评论(0) 推荐(0) 编辑
摘要:1 for ( 2 var e = require("node-uuid"), 3 t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", 4 r = new Array(128), 5 i = 0; 6 i < 阅读全文
posted @ 2022-04-20 21:51 Please Call me 小强 阅读(1056) 评论(0) 推荐(0) 编辑
摘要:getVisibleOrigin vec2(0,0) getViewportRect 真实屏幕分辨率 height: 2778 width: 1284 x: 0 y: 0 getVisibleSize 或者 cc.winSize GL在真实屏幕中的大小 height: 1622.6635514018 阅读全文
posted @ 2022-04-07 10:57 Please Call me 小强 阅读(260) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示