本文整理汇总了C++中CNode::drawDebug方法的典型用法代码示例。如果您正苦于以下问题:C++ CNode::drawDebug方法的具体用法?C++ CNode::drawDebug怎么用?C++ CNode::drawDebug使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CNode
的用法示例。
在下文中一共展示了CNode::drawDebug方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw
void CDebugDrawer::draw()
{
unsigned int i;
CNode *node;
m_debugShader->bind();
m_debugShapes->bind();
for(i = 0; i < m_partitioner->m_visiblePropNodes.size(); i++)
{
node = m_partitioner->m_visiblePropNodes[i];
node->drawDebug(m_debugShapes);
}
for(i = 0; i < m_partitioner->m_visibleLightNodes.size(); i++)
{
node = m_partitioner->m_visibleLightNodes[i];
node->drawDebug(m_debugShapes);
}
for(i = 0; i < m_partitioner->m_visibleLogicNodes.size(); i++)
{
node = m_partitioner->m_visibleLogicNodes[i];
node->drawDebug(m_debugShapes);
}
m_pickShader->bind();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_fboId);
glDrawBuffers(1, m_fboDrawBuffers);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
for(i = 0; i < m_partitioner->m_visiblePropNodes.size(); i++)
{
node = m_partitioner->m_visiblePropNodes[i];
CShaderResource::glslSendInt("id", node->getId());
node->drawDebug(m_debugShapes);
}
for(i = 0; i < m_partitioner->m_visibleLightNodes.size(); i++)
{
node = m_partitioner->m_visibleLightNodes[i];
CShaderResource::glslSendInt("id", node->getId());
node->drawDebug(m_debugShapes);
}
for(i = 0; i < m_partitioner->m_visibleLogicNodes.size(); i++)
{
node = m_partitioner->m_visibleLogicNodes[i];
CShaderResource::glslSendInt("id", node->getId());
node->drawDebug(m_debugShapes);
}
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
}