当前位置: 首页>>代码示例>>C++>>正文


C++ renderme函数代码示例

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


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


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