• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ renderme函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中renderme函数的典型用法代码示例。如果您正苦于以下问题:C++ renderme函数的具体用法?C++ renderme怎么用?C++ renderme使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了renderme函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: glClear

void ConcaveConvexcastDemo::displayCallback(void) {

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	renderme();
	convexcastBatch.draw ();
    glFlush();
    glutSwapBuffers();
}
开发者ID:Belxjander,项目名称:Asuna,代码行数:9,代码来源:ConcaveConvexcastDemo.cpp


示例2: glClear

void BasicDemo::clientMoveAndDisplay() {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  //cdn->update();
  _app->processEvents();

  renderme();
  glFlush();
  swapBuffers();
}
开发者ID:astralien3000,项目名称:SASIAE,代码行数:10,代码来源:test3dCoordinator.cpp


示例3: glClear

void DefracDemo::displayCallback(void) {

	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 


	renderme();

	glFlush();
	glutSwapBuffers();
}
开发者ID:xissburg,项目名称:XDefrac,代码行数:10,代码来源:DefracDemo.cpp


示例4: renderme

void BasicDemo::displayCallback(void) {

	
	renderme();

	//optional but useful: debug drawing to detect problems
	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	swapBuffers();
}
开发者ID:sonyomega,项目名称:rbdl,代码行数:11,代码来源:BasicDemo.cpp


示例5: glClear

void RagdollDemo::displayCallback() {
#ifdef GRAPHICS
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
	renderme();
	//optional but useful: debug drawing
	if (m_dynamicsWorld) {
	    m_dynamicsWorld->debugDrawWorld();
	}
	glFlush();
	glutSwapBuffers();
#endif
}
开发者ID:DaveBuckingham,项目名称:scaffolding,代码行数:12,代码来源:RagdollDemo.cpp


示例6: glClear

void MotorDemo::displayCallback()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	renderme();

	glFlush();
	glutSwapBuffers();
}
开发者ID:henryeherman,项目名称:learninghexapod,代码行数:12,代码来源:MotorDemo.cpp


示例7: glClear

void ArtificialBirdsDemoApp::displayCallback()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	renderme();

	//optional but useful: debug drawing
	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	glFlush();
	glutSwapBuffers();
}
开发者ID:kastur,项目名称:artificial_birds,代码行数:13,代码来源:ArtificialBirds.cpp


示例8: glClear

void BasicDemo::displayCallback(void) {

	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
	
	renderme();

	//optional but useful: debug drawing to detect problems
	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	glFlush();
	swapBuffers();
}
开发者ID:CalebVDW,项目名称:smr-motion,代码行数:13,代码来源:BasicDemo.cpp


示例9: glClear

void ForkLiftDemo::displayCallback(void) 
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	renderme();

//optional but useful: debug drawing
	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	glFlush();
	glutSwapBuffers();
}
开发者ID:Bredoto,项目名称:Bullet,代码行数:13,代码来源:ForkLiftDemo.cpp


示例10: glClear

void SimulationVisual::displayCallback()
{
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

  renderme();

  //optional but useful: debug drawing
  if (Simulation::m_dynamicsWorld)
    Simulation::m_dynamicsWorld->debugDrawWorld();

  glFlush();
  glutSwapBuffers();
}
开发者ID:ipburbank,项目名称:RCQuadratot,代码行数:13,代码来源:SimulationVisual.cpp


示例11: glClear

    void BulletOpenGLViewer::displayCallback()
    {
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

        if (m_dynamicsWorld)
        {
            m_dynamicsWorld->debugDrawWorld();
        }

        renderme();

        glFlush();
        swapBuffers();
    }
开发者ID:gkalogiannis,项目名称:simox,代码行数:14,代码来源:BulletOpenGLViewer.cpp


示例12: glClear

void ConvexDecompositionDemo::displayCallback(void) {

	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);


	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	renderme();


	glFlush();
	swapBuffers();
}
开发者ID:Aatch,项目名称:bullet3,代码行数:14,代码来源:ConvexDecompositionDemo.cpp


示例13: glClear

void ConstraintDemo::displayCallback(void) {

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

//	drawLimit();

	renderme();

    glFlush();
    swapBuffers();
}
开发者ID:VladSerhiienko,项目名称:The-Forge,代码行数:14,代码来源:ConstraintDemo.cpp


示例14: simulationLoopStep

/** Main simulation function for a simulation that has to be rendered.
*	fixed:	value determining if the stepsize is fixed to the default or set depending on the current framerate
*	hDC:	frame buffer to switch the rendering buffer into
**/
bool Physics::clientMoveAndDisplay(boolean fixed, HDC hDC){
	unsigned long tmplast=m_clock.getTimeMicroseconds();
	unsigned long ms = tmplast-last;

	last=tmplast;
	time+=ms;

	timeBehind+=ms;
	//printf("time %lu\n",timeBehind);

	if(fixed){
		//printf("%f %f\n",timeBehind, ms);
		//printf("%f\n",timeBehind);
		if(timeBehind>1000){
			static int update=20;
			//printf("-");
			simulationLoopStep(1 / 1000.f);
			timeBehind-=1000;
			if(update<15){
				update++;

				return false;
			}

			update=0;
			//printf(".");
		}else{
			return false;
		}
	}else{
		simulationLoopStep(ms / 1000000.f); //normal speed
		//simulationLoopStep(ms / 100000000.f); //slow-mode
		timeBehind=0;
	}
	frameRate=1000000./((double)time)+0.5;
	time=0;

	pointCamera();

	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

	m_dynamicsWorld->debugDrawWorld();

	renderme();

	glFlush();
	SwapBuffers( hDC );
	return true;
}
开发者ID:kiniry-supervision,项目名称:walking-with-dinosaurs,代码行数:53,代码来源:Physics.cpp


示例15: glClear

void tgSimViewGraphics::displayCallback()
{
    if (isInitialzed())
    {
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
        renderme();
        // optional but useful: debug drawing to detect problems
        if (m_dynamicsWorld)
        {
            m_dynamicsWorld->debugDrawWorld();
        }
        glFlush();
        swapBuffers();
    }
}
开发者ID:MrMoose,项目名称:NTRTsim,代码行数:15,代码来源:tgSimViewGraphics.cpp


示例16: glClear

void BenchmarkDemo::displayCallback(void) 
{

#ifdef USE_GRAPHICAL_BENCHMARK
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
	
	renderme();

	//optional but useful: debug drawing to detect problems
	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	glFlush();
	swapBuffers();
#endif //USE_GRAPHICAL_BENCHMARK
}
开发者ID:Mashewnutz,项目名称:Slo,代码行数:16,代码来源:BenchmarkDemo.cpp


示例17: glClear

void SerializeDemo::clientMoveAndDisplay()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	//simple dynamics world doesn't handle fixed-time-stepping
	float ms = getDeltaTimeMicroseconds();
	
	///step the simulation
	if (m_dynamicsWorld)
	{
		m_dynamicsWorld->stepSimulation(ms / 1000000.f);

		
#ifdef DESERIALIZE_SOFT_BODIES
		if (fSoftBodySolver)
            fSoftBodySolver->copyBackToSoftBodies();
#endif

		m_dynamicsWorld->debugDrawWorld();

#ifdef DESERIALIZE_SOFT_BODIES
		if (m_dynamicsWorld->getWorldType()==BT_SOFT_RIGID_DYNAMICS_WORLD)
		{
			//optional but useful: debug drawing
			btSoftRigidDynamicsWorld* softWorld = (btSoftRigidDynamicsWorld*)m_dynamicsWorld;

			for (  int i=0;i<softWorld->getSoftBodyArray().size();i++)
			{
				btSoftBody*	psb=(btSoftBody*)softWorld->getSoftBodyArray()[i];
				if (softWorld->getDebugDrawer() && !(softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe)))
				{
					btSoftBodyHelpers::DrawFrame(psb,softWorld->getDebugDrawer());
					btSoftBodyHelpers::Draw(psb,softWorld->getDebugDrawer(),softWorld->getDrawFlags());
				}
			}
		}
#endif //DESERIALIZE_SOFT_BODIES

	}
		
	renderme(); 

	glFlush();

	swapBuffers();

}
开发者ID:BBlayne,项目名称:COMP371-Codebase,代码行数:47,代码来源:SerializeDemo.cpp


示例18: glClear

void ParticlesDemo::displayCallback(void) {

	
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	renderme();

	//optional but useful: debug drawing to detect problems
	if (m_dynamicsWorld)
		m_dynamicsWorld->debugDrawWorld();

	//if (m_dialogDynamicsWorld)
	//	m_dialogDynamicsWorld->draw(gTimeStep);

	glFlush();
	glutSwapBuffers();
}
开发者ID:asumin,项目名称:onibi,代码行数:17,代码来源:ParticlesDemo.cpp


示例19: render

void tgSimViewGraphics::clientMoveAndDisplay()
{
    if (isInitialzed()){
        m_pSimulation->step(m_stepSize);    
        m_renderTime += m_stepSize; 
        if (m_renderTime >= m_renderRate)
        {
            render();
            // Doesn't appear to do anything yet...
            m_dynamicsWorld->debugDrawWorld();
            renderme();     
            // Camera is updated in renderme
            glFlush();
            swapBuffers();      
            m_renderTime = 0;
        }
    }
}
开发者ID:MrMoose,项目名称:NTRTsim,代码行数:18,代码来源:tgSimViewGraphics.cpp


示例20: getDeltaTimeInSeconds

void BasicDemo::clientMoveAndDisplay()
{
//	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 

	//simple dynamics world doesn't handle fixed-time-stepping
	float dt = getDeltaTimeInSeconds();
	
	///step the simulation
	if (m_dynamicsWorld)
	{
		m_dynamicsWorld->stepSimulation(dt);
	}
		
	renderme(); 


	swapBuffers();

}
开发者ID:sonyomega,项目名称:rbdl,代码行数:19,代码来源:BasicDemo.cpp



注:本文中的renderme函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ reopen函数代码示例发布时间:2022-05-30
下一篇:
C++ render_line函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap