上一页 1 2 3 4 5 6 7 8 ··· 40 下一页
摘要: QStackedWidget* m_pStackedWidget= new QStackedWidget(this); QWidget* btnWidget = new QWidget; QWidget* labelWidget = new QWidget; QVBoxLayout *btnLayout = new QVBoxLayout(btnWidget); btnLayout->setA... 阅读全文
posted @ 2019-05-15 17:26 酷熊 阅读(1387) 评论(1) 推荐(1) 编辑
摘要: QPushButton btn = new QPushButton(); QVBoxLayout* layout = new QVBoxLayout(btn); QLabel* label = new QLabel(); label->setAlignment(Qt::AlignHCenter); 阅读全文
posted @ 2019-05-15 17:13 酷熊 阅读(2385) 评论(0) 推荐(0) 编辑
摘要: 向量AB,沿着n旋转10度 osg::Vec3 left = AB*osg::Matrix::rotate(osg::inDegrees(10), n); osg::Vec3 right = AB*osg::Matrix::rotate(osg::inDegrees(-10), n);//right 阅读全文
posted @ 2019-05-13 13:43 酷熊 阅读(2057) 评论(1) 推荐(1) 编辑
摘要: 重点重写QAxBindable的createAggregate() 参考Qt例子: qtactiveqt\activeqt\opengl\glbox.cpp 阅读全文
posted @ 2019-04-29 14:56 酷熊 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 打开“Internet选项”->"高级",勾选"允许活动内容在“我的电脑”的文件中运行"。重启IE 阅读全文
posted @ 2019-04-29 14:51 酷熊 阅读(2225) 评论(0) 推荐(0) 编辑
摘要: 遇到奇怪的现象,F5不编译了 右键解决方案-配置管理器-确保项目的生成被勾选 另外一个情况,即使不修改任何代码,每次点击“生成”或者F5,都会重新编译(Debug模式没问题,Release有这个问题,因为当时想在Release下调试,所以修改了Release配置) 经过多次检测排查,网上遇到相似的问 阅读全文
posted @ 2019-04-19 15:43 酷熊 阅读(1372) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/wang15061955806/article/details/51003803 OSG的相关扩展,OSG针对每个特定应用,也有很多的开发者进行开发和完善,难能可贵的是然后还进行了开源。本文的目的是让大家能够站在巨人肩上,可以选择在能找到的成熟的开源库基础 阅读全文
posted @ 2019-04-19 09:22 酷熊 阅读(820) 评论(0) 推荐(0) 编辑
摘要: osg::Geometry *geometry = geode->getDrawable(0)->asGeometry();geometry->setDataVariance(osg::Object::DYNAMIC); // 顶点数据 osg::Vec3Array* vertices = dynamic_cast(geometry->getVertexArray()); ... 阅读全文
posted @ 2019-04-18 16:54 酷熊 阅读(2421) 评论(0) 推荐(0) 编辑
摘要: uniform mat4 osg_ViewMatrixInverse;//osg内置uniform void main() { vec4 posWorld = osg_ViewMatrixInverse*gl_ModelViewMatrix*gl_Vertex; ..... } 阅读全文
posted @ 2019-04-16 15:58 酷熊 阅读(972) 评论(0) 推荐(0) 编辑
摘要: static const char *microshaderFragSource = { "varying vec4 color;\n" "uniform bool test1=true;\n" "uniform float test2=15.0;\n" "uniform float gauss_num[10];\n" "void main(void)\n... 阅读全文
posted @ 2019-04-08 10:09 酷熊 阅读(4519) 评论(5) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 40 下一页