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

C++ PushCommand函数代码示例

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

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



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

示例1: EUDAQ_WARN

void TimepixProducer::OnStopRun()
{
	pixelmanCtrl->m_commHistRunCtrl.AddString(_T("End Of Run."));

	if ( GetRunStatusFlag() == TimepixProducer::RUN_STOPPED )
	{
		// give a warning to eudaq and do nothing
	    EUDAQ_WARN("StopRun requested when run not active");
		SetStatus(eudaq::Status::LVL_WARN, "StopRun requested when run not active");
	}
	else
	{
		// send STOP_RUN command to the daq thread
		PushCommand( STOP_RUN );

		// wait for the daq thread to lower the run active flag
		while ( GetRunStatusFlag() == RUN_ACTIVE )
		{
			Sleep(1);
		}
		
		//EUDAQ_DEBUG("Sending EORE");
		Sleep(1000);
		SendEvent(eudaq::RawDataEvent::EORE(_T("Timepix"),GetRunNumber(), GetEventNumber()));
		//std::cout << "Stop Run" << std::endl;
		//MessageBox(NULL, "End Of Run", "Message from Runcontrol",NULL);
		EUDAQ_INFO("Run Stopped");
		SetStatus(eudaq::Status::LVL_OK, "Run Stopped");

	}
}
开发者ID:DavidCussans,项目名称:eudaq-old,代码行数:31,代码来源:TimepixProducer.cpp


示例2: ClearAIList

    void ArAIProperty::CommandMoveTo(ArObjID targetID, float range /*= 0.0f*/)
    {
        if (!mAIList.empty())
        {
            if (mAIList.front()->GetType() == ENUM_AI_TYPE_MOVETOTARGET)
                return;
        }

        if (ArGameApp::Get()->GetEntityManager()->IsHero(GetEntity<ArGameEntity>()->GetID()))
        {
            double time = Driver->GetElapsedSecond();
            if (time - mLastMoveTime < DEF_AI_MOVE_REQUEST_MIN_TIME)
            {
                return;
            }
            mLastMoveTime = time;
        }
        if (GetEntity<ArGameEntity>()->IsDead())
        {
            return;
        }
        ClearAIList();

        auto pCmd = DI_NEW ArAIMoveToTargetCommand(mEntity, targetID, range);
        PushCommand(pCmd);
    }
开发者ID:wangyanxing,项目名称:Demi3D,代码行数:26,代码来源:ArenaAIProperty.cpp


示例3: System_AskForPermission

void System_AskForPermission(SystemPermission permission) {
	switch (permission) {
	case SYSTEM_PERMISSION_STORAGE:
		PushCommand("ask_permission", "storage");
		break;
	}
}
开发者ID:animaonline,项目名称:ppsspp,代码行数:7,代码来源:app-android.cpp


示例4: PushCommand

void UFlareSpacecraftNavigationSystem::PushCommandLinearBrake(const FVector& VelocityTarget)
{
	FFlareShipCommandData Command;
	Command.Type = EFlareCommandDataType::CDT_BrakeLocation;
	Command.VelocityTarget = VelocityTarget;
	PushCommand(Command);
}
开发者ID:Helical-Games,项目名称:HeliumRain,代码行数:7,代码来源:FlareSpacecraftNavigationSystem.cpp


示例5: PushCommand

void TimepixProducer::OnReset()
{
	pixelmanCtrl->m_commHistRunCtrl.AddString(_T("Reset."));
	PushCommand( RESET );
	
	//std::cout << "Reset" << std::endl;
    //SetStatus(eudaq::Status::LVL_OK);
}
开发者ID:DavidCussans,项目名称:eudaq-old,代码行数:8,代码来源:TimepixProducer.cpp


示例6: cmd

 void Controller::Resize(uint32_t width, uint32_t height) {
     if (mStatus == State::kRunning || mStatus == State::kPaused) {
         Command cmd(Cmd::kResize);
         cmd.arg1 = width;
         cmd.arg2 = height;
         PushCommand(cmd);
     }
 }
开发者ID:copyliu,项目名称:libwtfdanmaku,代码行数:8,代码来源:Controller.cpp


示例7: locker

 void Controller::Resume() {
     if (mStatus == State::kPaused) {
         std::unique_lock<std::mutex> locker(mConditionMutex);
         mStatus = State::kRunning;
         PushCommand(Cmd::kResume);
         mCondition.notify_all();
     }
 }
开发者ID:copyliu,项目名称:libwtfdanmaku,代码行数:8,代码来源:Controller.cpp


示例8: PushSetCameraMatrix

internal rc_set_camera_matrix*
PushSetCameraMatrix(render_buffer* RenderBuffer, mat4 Matrix)
{
    rc_set_camera_matrix Command = {0};
    Command.Matrix               = Matrix;

    return (rc_set_camera_matrix*)PushCommand(RenderBuffer, RenderCommand_SetCameraMatrix, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:8,代码来源:ludus_renderer.cpp


示例9: PushLoadTexture

internal rc_load_texture*
PushLoadTexture(render_buffer* RenderBuffer, texture_slot* TextureSlot, bool32 Interpolate, char* Filename)
{
    rc_load_texture Command = {0};
    Command.TextureSlot     = TextureSlot;
    Command.Filename        = Filename;

    return (rc_load_texture*)PushCommand(RenderBuffer, RenderCommand_LoadTexture, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:9,代码来源:ludus_renderer.cpp


示例10: SetDone

void TimepixProducer::OnTerminate()
{	
	DEVID devId = pixelmanCtrl->mpxDevId[pixelmanCtrl->mpxCurrSel].deviceId;
	pixelmanCtrl->mpxCtrlAbortOperation(devId);
	pixelmanCtrl->m_commHistRunCtrl.AddString(_T("Terminated (I'll be back)"));
	//std::cout << "Terminate (press enter)" << std::endl;
    SetDone( true );
	PushCommand( TERMINATE );
	
}
开发者ID:DavidCussans,项目名称:eudaq-old,代码行数:10,代码来源:TimepixProducer.cpp


示例11: PushDrawRectMultitextured

internal rc_draw_rect_multitextured*
PushDrawRectMultitextured(render_buffer* RenderBuffer, vec2 Mid, vec2 Size)
{
    rc_draw_rect_multitextured Command = {0};
    Command.Mid                        = Mid;
    Command.Size                       = Size;
    Command.Color                      = Vec4i(1, 1, 1, 1);

    return (rc_draw_rect_multitextured*)PushCommand(RenderBuffer, RenderCommand_DrawRectMultitextured, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:10,代码来源:ludus_renderer.cpp


示例12: PushDrawRectOutline

internal rc_draw_rect_outline*
PushDrawRectOutline(render_buffer* RenderBuffer, vec2 Mid, vec2 Size, vec4 Color)
{
    rc_draw_rect_outline Command = {0};
    Command.Mid                  = Mid;
    Command.Size                 = Size;
    Command.Color                = Color;

    return (rc_draw_rect_outline*)PushCommand(RenderBuffer, RenderCommand_DrawRectOutline, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:10,代码来源:ludus_renderer.cpp


示例13: PushDrawLine

internal rc_draw_line*
PushDrawLine(render_buffer* RenderBuffer, vec2 Start, vec2 End, vec4 Color)
{
    rc_draw_line Command = {0};
    Command.Start        = Start;
    Command.End          = End;
    Command.Color        = Color;

    return (rc_draw_line*)PushCommand(RenderBuffer, RenderCommand_DrawLine, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:10,代码来源:ludus_renderer.cpp


示例14: PushLoadFont

internal rc_load_font*
PushLoadFont(render_buffer* RenderBuffer, font_slot* FontSlot, char* Filename, float Height)
{
    rc_load_font Command = {0};
    Command.FontSlot     = FontSlot;
    Command.Filename     = Filename;
    Command.Height       = Height;
    Command.OversampleX  = 2;
    Command.OversampleY  = 2;

    return (rc_load_font*)PushCommand(RenderBuffer, RenderCommand_LoadFont, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:12,代码来源:ludus_renderer.cpp


示例15: Resume

    void Controller::Stop() {
        if (mStatus == State::kRunning || mStatus == State::kPaused) {
            if (mStatus == State::kPaused) {
                Resume();
            }

            PushCommand(Cmd::kStop);
            if (mWorker.joinable()) {
                mWorker.join();
            }
        }
    }
开发者ID:copyliu,项目名称:libwtfdanmaku,代码行数:12,代码来源:Controller.cpp


示例16: PushDrawRect

internal rc_draw_rect*
PushDrawRect(render_buffer* RenderBuffer, vec2 Mid, vec2 Size, texture_slot* TextureSlot)
{
    rc_draw_rect Command = {0};
    Command.Mid          = Mid;
    Command.Size         = Size;
    Command.Color        = Vec4i(1, 1, 1, 1);
    Command.TextureSlot  = TextureSlot;
    Command.MinUV        = Vec2i(0, 0);
    Command.MaxUV        = Vec2i(1, 1);

    return (rc_draw_rect*)PushCommand(RenderBuffer, RenderCommand_DrawRect, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:13,代码来源:ludus_renderer.cpp


示例17: FLOGV

void UFlareSpacecraftNavigationSystem::PushCommandRotation(const FVector& RotationTarget, const FVector& LocalShipAxis)
{
	if (RotationTarget.IsNearlyZero() || LocalShipAxis.IsNearlyZero())
	{
		return;
	}

	FFlareShipCommandData Command;
	Command.Type = EFlareCommandDataType::CDT_Rotation;
	Command.RotationTarget = RotationTarget;
	Command.LocalShipAxis = LocalShipAxis;
	FLOGV("UFlareSpacecraftNavigationSystem::PushCommandRotation RotationTarget '%s'", *RotationTarget.ToString());
	FLOGV("UFlareSpacecraftNavigationSystem::PushCommandRotation LocalShipAxis '%s'", *LocalShipAxis.ToString());
	PushCommand(Command);
}
开发者ID:Helical-Games,项目名称:HeliumRain,代码行数:15,代码来源:FlareSpacecraftNavigationSystem.cpp


示例18: PushLoadTextureRaw

internal rc_load_texture_raw*
PushLoadTextureRaw(render_buffer* RenderBuffer,
                   texture_slot* TextureSlot,
                   bool32 Interpolate,
                   uint8* Data,
                   uint32 Width,
                   uint32 Height)
{
    rc_load_texture_raw Command = {0};
    Command.TextureSlot         = TextureSlot;
    Command.Data                = Data;
    Command.Width               = Width;
    Command.Height              = Height;

    return (rc_load_texture_raw*)PushCommand(RenderBuffer, RenderCommand_LoadTextureRaw, &Command);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:16,代码来源:ludus_renderer.cpp


示例19: lock

void ThreadCommandQueue::PushExitCommand(bool wait)
{
    // Exit is processed in two stages:
    //  - First, ExitEnqueued flag is set to block further commands from queuing up.
    //  - Second, the actual exit call is processed on the consumer thread, flushing
    //    any prior commands.
    //    IsExiting() only returns true after exit has flushed.
    {
        Lock::Locker lock(&pImpl->QueueLock);
        if (pImpl->ExitEnqueued)
            return;
        pImpl->ExitEnqueued = true;
    }

    PushCommand(ThreadCommandQueueImpl::ExitCommand(pImpl, wait));
}
开发者ID:1107979819,项目名称:OculusVRStudy,代码行数:16,代码来源:OVR_ThreadCommandQueue.cpp


示例20: PushDrawString

internal rc_draw_string*
PushDrawString(render_buffer* RenderBuffer, font_slot* FontSlot, vec2 Pos, float Scale, char* String)
{
    rc_draw_string Command = {0};
    Command.FontSlot       = FontSlot;
    Command.Pos            = Pos;
    Command.Color          = Vec4(0.0f, 0.0f, 0.0f, 1.0f);
    Command.Scale          = Scale;

    rc_draw_string* Result = (rc_draw_string*)PushCommand(RenderBuffer, RenderCommand_DrawString, &Command);
    while(*String)
    {
        *RenderBuffer->Current = (u8)*String;
        ++RenderBuffer->Current;
        ++Result->CharCount;
    }
    return (Result);
}
开发者ID:Clever-Boy,项目名称:Ludus,代码行数:18,代码来源:ludus_renderer.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ PushFloat函数代码示例发布时间:2022-05-30
下一篇:
C++ PushActiveSnapshot函数代码示例发布时间: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