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


C++ SetScreen函数代码示例

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


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

示例1: SetName

Csplat::Csplat()
{
SetName("splat");						//set romset name
SetScreen(304,256);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,&Port2);
SetPort(2,&defenderPort3);
SetPort(3,&Port4);
SetPort(4,&Port5);
AddROM("splat.10",	0xD000,0x1000,0xd1a1f632,ROM_CPU1);
AddROM("splat.11",	0xE000,0x1000,0xca8cde95,ROM_CPU1);
AddROM("splat.12",	0xF000,0x1000,0x5bee3e60,ROM_CPU1);
AddROM("splat.01",	0x10000,0x1000,0x1cf26e48,ROM_CPU1);
AddROM("splat.02",	0x11000,0x1000,0xac0d4276,ROM_CPU1);
AddROM("splat.03",	0x12000,0x1000,0x74873e59,ROM_CPU1);
AddROM("splat.04",	0x13000,0x1000,0x70a7064e,ROM_CPU1);
AddROM("splat.05",	0x14000,0x1000,0xc6895221,ROM_CPU1);
AddROM("splat.06",	0x15000,0x1000,0xea4ab7fd,ROM_CPU1);
AddROM("splat.07",	0x16000,0x1000,0x82fd8713,ROM_CPU1);
AddROM("splat.08",	0x17000,0x1000,0x7dded1b4,ROM_CPU1);
AddROM("splat.09",	0x18000,0x1000,0x71cbfe5a,ROM_CPU1);
AddROM("splat.snd",	0xF000,0x1000,0xa878d5f3,ROM_CPU2);
AddROM("decoder.4",	0x0000,0x0200,0xe6631c23,ROM_PROM);
AddROM("decoder.6",	0x0200,0x0200,0x83faf25e,ROM_PROM);
}
开发者ID:twinaphex,项目名称:breemlib,代码行数:26,代码来源:splat.cpp

示例2: DrawMenu

void DrawMenu(char items[][30], int maxitems, int select)
{
	int i,w,p,h;

	ClearScreen();

	/*** Draw Title Centred ***/

	p = (480 - (maxitems * font_height)) / 2 + 10;

	for( i = 0; i < maxitems; i++ )
	{
		w = CentreTextPosition(items[i]);
		h = GetTextWidth(items[i]);

/*		if ( i == select )
			writex( w, p, h, font_height, items[i], blit_lookup_inv );
		else
			writex( w, p, h, font_height, items[i], blit_lookup );*/

			writex( w, p, h, font_height, items[i], i == select );

		p += font_height;
	}

	SetScreen();
}
开发者ID:feraligatr,项目名称:fceugx,代码行数:27,代码来源:info.c

示例3: SetName

Cshadowld::Cshadowld()
{
SetName("shadowld");						//set romset name
SetScreen(288,244);
SetHighScoreInfo(highscore);
AddROMS1("yd1_p0.bin",	0x000000,0x10000,0x07e49883);
AddROMS1("yd1_p1.bin",	0x080000,0x10000,0xa8ea6bd3);
AddROMS1("yd1_p2.bin",	0x100000,0x10000,0x62e5bbec);
AddROMS1("yd1_p3.bin",	0x180000,0x10000,0xa4f27c24);
AddROMS1("yd1_p5.bin",	0x280000,0x10000,0x29a78bd6);
AddROMS1("yd3_p6.bin",	0x300000,0x10000,0x93d6811c);
AddROMS1("yd3_p7.bin",	0x380000,0x10000,0xf1c271a0);
AddROM("yd1_s0.bin",		0x0C000,0x10000,0xa9cb51fb,ROM_CPU3);
AddROM("yd1_s1.bin",		0x1C000,0x10000,0x65d1dc0d,ROM_CPU3);
AddROM("cus64-64a1.mcu",0x0F000,0x01000,0xffb5c0bd,ROM_CPU4);
AddROM("yd_voi-0.bin",	0x10000,0x20000,0x448bc6a1,ROM_CPU4);
AddROM("yd_voi-1.bin",	0x30000,0x20000,0x7809035c,ROM_CPU4);
AddROM("yd_voi-2.bin",	0x50000,0x20000,0x73bffc16,ROM_CPU4);
AddROM("yd_chr-8.bin",	0x00000,0x20000,0x0c8e69d0,ROM_VROM1);
AddROM("yd_chr-0.bin",	0x00000,0x20000,0x717441dd,ROM_VROM2);
AddROM("yd_chr-1.bin",	0x20000,0x20000,0xc1be6e35,ROM_VROM2);
AddROM("yd_chr-2.bin",	0x40000,0x20000,0x2df8d8cc,ROM_VROM2);
AddROM("yd_chr-3.bin",	0x60000,0x20000,0xd4e15c9e,ROM_VROM2);
AddROM("yd_chr-4.bin",	0x80000,0x20000,0xc0041e0d,ROM_VROM2);
AddROM("yd_chr-5.bin",	0xA0000,0x20000,0x7b368461,ROM_VROM2);
AddROM("yd_chr-6.bin",	0xC0000,0x20000,0x3ac6a90e,ROM_VROM2);
AddROM("yd_chr-7.bin",	0xE0000,0x20000,0x8d2cffa5,ROM_VROM2);
AddROM("yd_obj-0.bin",	0x00000,0x20000,0xefb8efe3,ROM_VROM3);
AddROM("yd_obj-1.bin",	0x20000,0x20000,0xbf4ee682,ROM_VROM3);
AddROM("yd_obj-2.bin",	0x40000,0x20000,0xcb721682,ROM_VROM3);
AddROM("yd_obj-3.bin",	0x60000,0x20000,0x8a6c3d1c,ROM_VROM3);
AddROM("yd_obj-4.bin",	0x80000,0x20000,0xef97bffb,ROM_VROM3);
AddROM("yd3_obj5.bin",	0xA0000,0x10000,0x1e4aa460,ROM_VROM3);
DupROM(0xB0000);
}
开发者ID:twinaphex,项目名称:breemlib,代码行数:35,代码来源:shadowld.cpp

示例4: SetName

Cmysticm::Cmysticm()
{
SetName("mysticm");						//set romset name
SetFlags(F_BONUSRAM);
SetScreen(304,256);
SetHighScoreInfo(highscore);
AddROM("mm02_2.a09",0x0E000,0x1000,0x3a776ea8,ROM_CPU1);
AddROM("mm03_2.a10",0x0F000,0x1000,0x6e247c75,ROM_CPU1);
AddROM("mm11_1.a18",0x10000,0x2000,0xf537968e,ROM_CPU1);
AddROM("mm09_1.a16",0x12000,0x2000,0x3bd12f6c,ROM_CPU1);
AddROM("mm07_1.a14",0x14000,0x2000,0xea2a2a68,ROM_CPU1);
AddROM("mm05_1.a12",0x16000,0x2000,0xb514eef3,ROM_CPU1);
AddROM("mm18_1.a26",0x20000,0x2000,0x9b391a81,ROM_CPU1);
AddROM("mm16_1.a24",0x22000,0x2000,0x399e175d,ROM_CPU1);
AddROM("mm14_1.a22",0x24000,0x2000,0x191153b1,ROM_CPU1);
AddROM("mm10_1.a17",0x30000,0x2000,0xd6a37509,ROM_CPU1);
AddROM("mm08_1.a15",0x32000,0x2000,0x6f1a64f2,ROM_CPU1);
AddROM("mm06_1.a13",0x34000,0x2000,0x2e6795d4,ROM_CPU1);
AddROM("mm04_1.a11",0x36000,0x2000,0xc222fb64,ROM_CPU1);
AddROM("mm17_1.a25",0x40000,0x2000,0xd36f0a96,ROM_CPU1);
AddROM("mm15_1.a23",0x42000,0x2000,0xcd5d99da,ROM_CPU1);
AddROM("mm13_1.a21",0x44000,0x2000,0xef4b79db,ROM_CPU1);
AddROM("mm12_1.a19",0x46000,0x2000,0xa1f04bf0,ROM_CPU1);
AddROM("mm01_1.a08",0x0E000,0x2000,0x65339512,ROM_CPU2);
AddROM("mm20_1.b57",0x00000,0x2000,0x5c0f4f46,ROM_VROM1);
AddROM("mm21_1.b58",0x02000,0x2000,0xcb90b3c5,ROM_VROM1);
AddROM("mm19_1.b41",0x04000,0x2000,0xe274df86,ROM_VROM1);
}
开发者ID:twinaphex,项目名称:breemlib,代码行数:28,代码来源:mysticm.cpp

示例5: renderer

void RiskGameView::Run() {
    sf::RenderWindow renderer(sf::VideoMode((unsigned int)SCREEN_WIDTH, (unsigned int)SCREEN_HEIGHT), WINDOW_TITLE);
    renderer.resetGLStates();

    renderer_ = &renderer;
    AddScreen("statistics", new GameDisplay());
    SetScreen("statistics");

    sf::Event event;
    sf::Clock clock;
    while (renderer.isOpen() && RiskGame::Instance().IsRunning()) {
        while (renderer.pollEvent(event)) {
            desktop_.HandleEvent(event);

            if (event.type == sf::Event::Closed) {
                renderer.close();
            }
        }

        desktop_.Update(clock.restart().asSeconds());
        renderer.clear();
        currentScreen_->Draw(renderer);
        currentScreen_->Update();
        sfgui_.Display(renderer);
        renderer.display();
    }
}
开发者ID:Harbus,项目名称:Risk,代码行数:27,代码来源:RiskGameView.cpp

示例6: wpad_config

static void wpad_config(u8 num)
{
  int i,j;
  int max = MAX_KEYS;
  u8 quit;
  char msg[30];
  u32 current = 255;

  /* check wiimote status */
  if (WPAD_Probe(num, &current) != WPAD_ERR_NONE)
  {
    WaitPrompt("Wiimote is not connected !");
    return;
  }

  /* index for wpad_keymap */
  u8 index = current + (num * 3);

  /* loop on each mapped keys */
  for (i=0; i<max; i++)
  {
    /* remove any pending buttons */
    while (WPAD_ButtonsHeld(num))
    {
      WPAD_ScanPads();
      VIDEO_WaitVSync();
    }

    /* user information */
    ClearScreen();
    sprintf(msg,"Press key for %s",keys_name[i]);
    WriteCentre(254, msg);
    SetScreen();

    /* wait for input */
    quit = 0;
    while (quit == 0)
    {
      WPAD_ScanPads();

      /* get buttons */
      for (j=0; j<20; j++)
      {
        if (WPAD_ButtonsDown(num) & wpad_keys[j])
        {
          wpad_keymap[index][i]  = wpad_keys[j];
          quit = 1;
          j = 20;    /* leave loop */
        }
      }
    } /* wait for input */ 
  } /* loop for all keys */

  /* removed any pending buttons */
  while (WPAD_ButtonsHeld(num))
  {
    WPAD_ScanPads();
    VIDEO_WaitVSync();
  }
}
开发者ID:thecrazyboy,项目名称:smsplus-gx,代码行数:60,代码来源:ogc_input.c

示例7: GetLayout

bool GERBVIEW_FRAME::Clear_Pcb( bool query )
{
    int layer;

    if( GetLayout() == NULL )
        return false;

    if( query && GetScreen()->IsModify() )
    {
        if( !IsOK( this, _( "Current data will be lost?" ) ) )
            return false;
    }

    GetLayout()->m_Drawings.DeleteAll();

    for( layer = 0; layer < GERBVIEW_LAYER_COUNT; layer++ )
    {
        if( g_GERBER_List[layer] )
        {
            g_GERBER_List[layer]->InitToolTable();
            g_GERBER_List[layer]->ResetDefaultValues();
        }
    }

    GetLayout()->SetBoundingBox( EDA_RECT() );

    SetScreen( new GBR_SCREEN( GetPageSettings().GetSizeIU() ) );

    setActiveLayer(0);
    m_LayersManager->UpdateLayerIcons();
    syncLayerBox();
    return true;
}
开发者ID:james-sakalaukus,项目名称:kicad,代码行数:33,代码来源:initpcb.cpp

示例8: SetName

Cbtime::Cbtime()
{
SetName("btime");							//set romset name
SetScreen(256,256,ROTATE_270);
SetHighScoreInfo(highscore);
SetDip(0,dip1);
SetDip(1,dip2);
SetPort(0,&btimePort1);
SetPort(1,&btimePort2);
SetPort(2,&btimePort3);
AddROM("aa04.9b",	0xC000,0x1000,0x368a25b5,ROM_CPU1);
AddROM("aa06.13b",0xD000,0x1000,0xb4ba400d,ROM_CPU1);
AddROM("aa05.10b",0xE000,0x1000,0x8005bffa,ROM_CPU1);
AddROM("aa07.15b",0xF000,0x1000,0x086440ad,ROM_CPU1);
AddROM("ab14.12h",0xF000,0x1000,0xf55e5211,ROM_CPU2);
AddROM("aa12.7k",	0x0000,0x1000,0xc4617243,ROM_VROM1);
AddROM("ab13.9k",	0x1000,0x1000,0xac01042f,ROM_VROM1);
AddROM("ab10.10k",0x2000,0x1000,0x854a872a,ROM_VROM1);
AddROM("ab11.12k",0x3000,0x1000,0xd4848014,ROM_VROM1);
AddROM("aa8.13k",	0x4000,0x1000,0x8650c788,ROM_VROM1);
AddROM("ab9.15k",	0x5000,0x1000,0x8dec15e6,ROM_VROM1);
AddROM("ab00.1b",	0x0000,0x0800,0xc7a14485,ROM_VROM2);
AddROM("ab01.3b",	0x0800,0x0800,0x25b49078,ROM_VROM2);
AddROM("ab02.4b",	0x1000,0x0800,0xb8ef56c3,ROM_VROM2);
AddROM("ab03.6b",	0x0000,0x0800,0xd26bc1f3,ROM_VROM3);
}
开发者ID:twinaphex,项目名称:breemlib,代码行数:26,代码来源:btime.cpp

示例9: ScreenSaver

int ScreenSaver(int EnableExit)
{
	INPUT_RECORD rec;
	clock_t WaitTime;

	if (ScreenSaverActive)
		return 1;

	ChangePriority ChPriority(ChangePriority::IDLE);

	for (WaitTime=GetProcessUptimeMSec(); GetProcessUptimeMSec()-WaitTime<500;)
	{
		if (PeekInputRecord(&rec))
			return 1;

		WINPORT(Sleep)(100);
	}

	ScreenSaverActive=TRUE;
	CONSOLE_CURSOR_INFO CursorInfo;
	Console.GetCursorInfo(CursorInfo);
	{
		SaveScreen SaveScr;
		SetCursorType(0,10);
		randomize();
		SetScreen(0,0,ScrX,ScrY,L' ',F_LIGHTGRAY|B_BLACK);

		for (size_t I=0; I<ARRAYSIZE(Star); I++)
		{
			Star[I].Type=STAR_NONE;
			Star[I].Color=0;
		}

		int Step=0;

		while (!PeekInputRecord(&rec))
		{
			clock_t CurTime=GetProcessUptimeMSec();

			if (EnableExit && Opt.InactivityExit && Opt.InactivityExitTime>0 &&
			        CurTime-StartIdleTime>Opt.InactivityExitTime*60000 &&
			        FrameManager->GetFrameCount()==1)
			{
				FrameManager->ExitMainLoop(FALSE);
				return 0;
			}

			WINPORT(Sleep)(50);
			ShowSaver(Step++);
		}
	}
	SetCursorType(CursorInfo.bVisible!=FALSE, CursorInfo.dwSize);
	ScreenSaverActive=FALSE;
	FlushInputBuffer();
	StartIdleTime=GetProcessUptimeMSec();
	return 1;
}
开发者ID:elfmz,项目名称:far2l,代码行数:57,代码来源:scrsaver.cpp

示例10: SetCurLib

void LIB_EDIT_FRAME::emptyScreen()
{
    SetCurLib( wxEmptyString );
    SetCurPart( nullptr );
    SetScreen( m_dummyScreen );
    m_dummyScreen->ClearUndoRedoList();
    m_toolManager->RunAction( "common.Control.zoomFitScreen", true );
    Refresh();
}
开发者ID:KiCad,项目名称:kicad-source-mirror,代码行数:9,代码来源:lib_edit_frame.cpp

示例11: Unbind

LIB_EDIT_FRAME::~LIB_EDIT_FRAME()
{
    Unbind( wxEVT_COMMAND_MENU_SELECTED, &LIB_EDIT_FRAME::OnEditSymbolLibTable, this,
            ID_EDIT_SYM_LIB_TABLE );

    // current screen is destroyed in EDA_DRAW_FRAME
    SetScreen( m_dummyScreen );

    delete m_libMgr;
    delete m_my_part;
}
开发者ID:KiCad,项目名称:kicad-source-mirror,代码行数:11,代码来源:lib_edit_frame.cpp

示例12: SetScreen

FOOTPRINT_EDIT_FRAME::~FOOTPRINT_EDIT_FRAME()
{
    // When user reopens the Footprint editor, user would like to find the last edited item.
    // Do not delete PCB_SCREEN (by the destructor of EDA_DRAW_FRAME)
    SetScreen( NULL );

    // Do not allow PCB_BASE_FRAME::~PCB_BASE_FRAME()
    // to delete our precious BOARD, which is also in static FOOTPRINT_EDIT_FRAME::s_Pcb.
    // That function, PCB_BASE_FRAME::~PCB_BASE_FRAME(), runs immediately next
    // as we return from here.
    m_Pcb = 0;
}
开发者ID:ianohara,项目名称:kicad-source-mirror,代码行数:12,代码来源:moduleframe.cpp

示例13: Input_Button

HelpMenuView::HelpMenuView(bool showCredits)
{
	exitButton = new Input_Button();
	exitButton->OnClicked += Delegate(this, &HelpMenuView::OnExitButtonClicked);
	exitButton->SetSound(CR::AssetList::sounds::shopopen::ID);
	input_objects.push_back(exitButton);
	
	howToPlayButton = new Input_Button();
	howToPlayButton->OnClicked += Delegate(this, &HelpMenuView::OnHowToPlayClicked);
	howToPlayButton->SetSpriteAndBounds(161, 432, CR::AssetList::InfoHelp_How_to_Play_Button, 400);
	howToPlayButton->DesignSize(157, 52);
	howToPlayButton->SetSound(CR::AssetList::sounds::shopopen::ID);
	input_objects.push_back(howToPlayButton);
	
	leftButton = new Input_Button();
	leftButton->OnClicked += Delegate(this, &HelpMenuView::OnLeftClicked);
	leftButton->SetSpriteAndBounds(2, 432, CR::AssetList::Scrapbook_LArrow_Button, 400);
	leftButton->DesignSize(97, 49);
	leftButton->SetSound(CR::AssetList::sounds::shopopen::ID);
	input_objects.push_back(leftButton);
	
	rightButton = new Input_Button();
	rightButton->OnClicked += Delegate(this, &HelpMenuView::OnRightClicked);
	rightButton->SetSpriteAndBounds(221, 432, CR::AssetList::Scrapbook_RArrow_Button, 400);
	rightButton->DesignSize(97, 49);
	rightButton->SetSound(CR::AssetList::sounds::shopopen::ID);
	input_objects.push_back(rightButton);
	
	menuBackground = graphics_engine->CreateSprite1(false,500);
	menuBackground->SetImage(CR::AssetList::InfoHelp_Background);
	menuBackground->SetDesignSize(320, 480);
	menuBackground->SetPositionAbsolute(160, 240);
	
	m_currScreenSprite = graphics_engine->CreateSprite1(false,400);
	
	if (showCredits)
		SetScreen(InfoHelpCredits);
	else
		SetScreen(InfoHelp1);
}
开发者ID:duhone,项目名称:BumbleTales-1,代码行数:40,代码来源:HelpMenuView.cpp

示例14: pad_config

/*******************************
  gamepad support
*******************************/
static void pad_config(int num, int padtype)
{
  int i,j,max;
  u16 p;
  u8 quit;
  char msg[30];

  u32 pad = PAD_ScanPads() & (1<<num);
  if (!pad)
  {
    sprintf(msg, "PAD #%d is not connected !", num+1);
    WaitPrompt(msg);
    return;
  }

  /* configure keys */
  max = (padtype == DEVICE_6BUTTON) ? MAX_KEYS : (MAX_KEYS - 3);
  for (i=0; i<max; i++)
  {
    /* remove any pending keys */
    while (PAD_ButtonsHeld(num))
    {
      VIDEO_WaitVSync();
      PAD_ScanPads();
    }

    ClearScreen();
    sprintf(msg,"Press key for %s",keys_name[i]);
    WriteCentre(254, msg);
    SetScreen();

    /* check buttons state */
    quit = 0;
    while (quit == 0)
    {
      VIDEO_WaitVSync();
      PAD_ScanPads();
      p = PAD_ButtonsDown(num);

      for (j=0; j<8; j++)
      {
        if (p & pad_keys[j])
        {
           config.pad_keymap[num][i] = pad_keys[j];
           quit = 1;
           j = 9;   /* exit loop */
        }
      }
    }
  }
}
开发者ID:AliSayed,项目名称:MoSync,代码行数:54,代码来源:ogc_input.c

示例15: strcpy

/**
*** Make new menu object
**/
LaosMenu::LaosMenu(LaosDisplay *display) {
    waitup=timeout=iofield=ipfield=0;
    sarg = NULL;
    x=y=z=0;
    xoff=yoff=zoff=0;
    screen=prevscreen=lastscreen=speed=0;
    menu=1;
    strcpy(jobname, "");
    dsp = display;
    if ( dsp == NULL ) dsp = new LaosDisplay();
    dsp->cls();
    SetScreen(NULL);
    runfile = NULL;
}
开发者ID:unkie,项目名称:Firmware,代码行数:17,代码来源:LaosMenu.cpp


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