- 积分
- 87
- 帖子
- 18
- 主题
- 6
- 精华
- 0
- 最后登录
- 2018-1-4
- 在线时间
- 21 小时
- 私信
|
发表时间 : 2014-2-14 13:25:57
|
浏览 : 1027 评论 : 2
virtual void notify(vsChannel::Event event, const vsChannel *channel, vrDrawContext* context)
{
//压栈操作
vrElement::const_iterator_context it, ite = vrElement::end_context();
for(it=vrElement::begin_context();it!=ite;++it)
{
if(*it==vrTransform::ElementProjection::Id)
context->pushElement(*it,false);
else
context->pushElement(*it,true);
}
}
想把OpenGL画线程序单独封装成一个类,但在其notify函数执行过程中出错,调试发现ite = vrElement::end_context();没有得到有效的值,it=vrElement::begin_context();也不能获得有效的值,不知何故,vrElement怎么用?请高手指点迷津,谢谢! |
|