上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
摘要: https://blog.csdn.net/wanghelou123/article/details/66472551 阅读全文
posted @ 2019-02-13 16:03 cicero 阅读(326) 评论(0) 推荐(0) 编辑
摘要: C++中如何定义接口类?首先给接口类下了定义:接口类应该是只提供方法声明,而自身不提供方法定义的抽象类。接口类自身不能实例化,接口类的方法定义/实现只能由接口类的子类来完成。 而对于C++,其接口类一般具有以下特征: 1.最好不要有成员变量,但可以有静态常量(static const或enum)2. 阅读全文
posted @ 2019-02-12 18:08 cicero 阅读(2657) 评论(0) 推荐(0) 编辑
摘要: 原文 https://blog.csdn.net/csxiaoshui/article/details/27543615 阅读全文
posted @ 2019-01-10 09:46 cicero 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/crsky/p/7870835.html 阅读全文
posted @ 2019-01-08 19:25 cicero 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 代码如下 最后写一个窗口类继承 QOpenGLWidget 阅读全文
posted @ 2019-01-05 16:02 cicero 阅读(6443) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 阅读全文
posted @ 2019-01-05 15:58 cicero 阅读(4341) 评论(0) 推荐(0) 编辑
摘要: 在窗口w上面画个黄色的框:在窗口上添加一个label,然后在label上画框 阅读全文
posted @ 2019-01-03 19:02 cicero 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: //设置样式表 QStringList qss; qss.append("QFrame{border:0px solid #00BB9E;}"); // qss.append("QLabel{font:75 25px;color:#F0F0F0;border:1px solid #AAAAAA;background:#000000;}"); // qss.app... 阅读全文
posted @ 2019-01-03 09:08 cicero 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1. attribute变量为这个attribute变量指定一个位置(用无符号值表示):glBindAttribLocation利用这个“位置”来指定需要传给shader里的attribue变量的数据:glVertexAttribPointer 2.uniform变量 Uniform是一种从CPU中 阅读全文
posted @ 2019-01-01 16:08 cicero 阅读(830) 评论(0) 推荐(0) 编辑
摘要: ftell一般用于读取文件的长度,下面补充一个例子,读取文本文件中的内容: 阅读全文
posted @ 2018-12-25 13:45 cicero 阅读(429) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页