Lines Matching refs:pRenderSystem

66 void DisplayCube(demo::RenderSystemDrawing* pRenderSystem, u16 x, u16 y)  in DisplayCube()  argument
87 pRenderSystem->FillRectangle(x + cubePos[curPos].x, y + cubePos[curPos].y, 4, 4); in DisplayCube()
89 pRenderSystem->FillRectangle(x + 5, y + 5, 4, 4); in DisplayCube()
98 …::dlp::TitleInfo titleList[], int titleNum, int selected, demo::RenderSystemDrawing* pRenderSystem) in DisplayTitleList() argument
105 pRenderSystem->SetColor(WHITE_COLOR); in DisplayTitleList()
106 pRenderSystem->DrawText(FONT_SIZE * (x + 3), FONT_SIZE * y, "TITLE NAME"); in DisplayTitleList()
107 pRenderSystem->DrawText(FONT_SIZE * (x + 33), FONT_SIZE * y, "SERVER NAME"); in DisplayTitleList()
116 pRenderSystem->SetColor(GREEN_COLOR); in DisplayTitleList()
121 pRenderSystem->SetColor(WHITE_COLOR); in DisplayTitleList()
124 pRenderSystem->DrawText(FONT_SIZE * x , FONT_SIZE * y, "%02d", i + 1); in DisplayTitleList()
126 pRenderSystem->DrawText(FONT_SIZE * (x + 3), FONT_SIZE * y, "%s", buffer); in DisplayTitleList()
133 pRenderSystem->DrawText(FONT_SIZE * (x + 33), FONT_SIZE * y, "%s", buffer); in DisplayTitleList()
143 pRenderSystem->SetColor(GREEN_COLOR); in DisplayTitleList()
148 pRenderSystem->SetColor(WHITE_COLOR); in DisplayTitleList()
150 pRenderSystem->DrawText(FONT_SIZE * x , FONT_SIZE * y, "%02d", i + 1); in DisplayTitleList()
151pRenderSystem->DrawText(FONT_SIZE * (x + 3), FONT_SIZE * y, "----------------------------"); in DisplayTitleList()
152 pRenderSystem->DrawText(FONT_SIZE * (x + 33), FONT_SIZE * y, "----------"); in DisplayTitleList()
160 void DeleteIconTexture(GLuint* pIconTextureId, demo::RenderSystemDrawing* pRenderSystem) in DeleteIconTexture() argument
164 bool flag = pRenderSystem->DeleteTexture(*pIconTextureId); in DeleteIconTexture()
172 …onTexture(GLuint* pIconTextureId, const bit16* iconImage, demo::RenderSystemDrawing* pRenderSystem) in CreateIconTexture() argument
176 DeleteIconTexture(pIconTextureId, pRenderSystem); in CreateIconTexture()
204pRenderSystem->GenerateTexture(target, internalFormat, TEXTURE_BLOCK_WIDTH * BLOCK_WIDTH, TEXTURE_… in CreateIconTexture()
213 …(const nn::dlp::IconInfo icon, f32 x, f32 y, bool update, demo::RenderSystemDrawing* pRenderSystem) in DisplayIcon() argument
220 CreateIconTexture(&s_IconTextureId, icon.image, pRenderSystem); in DisplayIcon()
225 pRenderSystem->FillTexturedRectangle(s_IconTextureId, x, y, in DisplayIcon()
235 void DisplayTitleInfo(const nn::dlp::TitleInfo titleInfo, demo::RenderSystemDrawing* pRenderSystem) in DisplayTitleInfo() argument
245 DisplayIcon(titleInfo.icon, FONT_SIZE, 2 * FONT_SIZE, update, pRenderSystem); in DisplayTitleInfo()
247 pRenderSystem->SetColor(WHITE_COLOR); in DisplayTitleInfo()
249 pRenderSystem->DrawText(0, 0, "TITLE INFO"); in DisplayTitleInfo()
251 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "SHORT TITLE NAME : %s", buffer); in DisplayTitleInfo()
253 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "LONG TITLE NAME : %s", buffer); in DisplayTitleInfo()
254pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "SIZE : %d BYTES", titleInfo.importSize… in DisplayTitleInfo()
255pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "ID/IDX/Ver : %05x/%d/%04x", titleInfo.uni… in DisplayTitleInfo()
256pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "REGION : %08x", titleInfo.region.Get()); in DisplayTitleInfo()
257pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "RATING : %02x%02x%02x%02x%02x%02x%02x%02… in DisplayTitleInfo()
259pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, " %02x%02x%02x%02x%02x%02x%02x%02… in DisplayTitleInfo()
267 …d DisplayServerInfo(const nn::dlp::ServerInfo serverInfo, demo::RenderSystemDrawing* pRenderSystem) in DisplayServerInfo() argument
273 pRenderSystem->DrawText(0, FONT_SIZE * y++, "[ SERVER INFO ]"); in DisplayServerInfo()
274pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "MAC : %02X:%02X:%02X:%02X:%02X:%02X", ser… in DisplayServerInfo()
276pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "CH : %2d, LEVEL : %d, NODE : %2d/%2d", se… in DisplayServerInfo()
282 …NodeInfo(const nn::dlp::NodeInfo nodeInfo[], int nodeNum, demo::RenderSystemDrawing* pRenderSystem) in DisplayNodeInfo() argument
289 pRenderSystem->DrawText(0, FONT_SIZE * y++, "[ NODE INFO ]"); in DisplayNodeInfo()
293 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "%02d", i + 1); in DisplayNodeInfo()
294 pRenderSystem->DrawText(FONT_SIZE * (x + 3), FONT_SIZE * y++, "%s", buffer); in DisplayNodeInfo()
301 void DisplayDownloadInfo(nn::dlp::ClientStatus status, demo::RenderSystemDrawing* pRenderSystem) in DisplayDownloadInfo() argument
307 pRenderSystem->SetColor(WHITE_COLOR); in DisplayDownloadInfo()
309 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y , "DOWNLOADING..."); in DisplayDownloadInfo()
311pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "NODE ID : %d\n", status.nodeId); in DisplayDownloadInfo()
312pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "STATE : %d\n", status.state.G… in DisplayDownloadInfo()
338 void DisplayInitialize(demo::RenderSystemDrawing* pRenderSystem) in DisplayInitialize() argument
343 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayInitialize()
344 pRenderSystem->Clear(); in DisplayInitialize()
345 pRenderSystem->SetColor(WHITE_COLOR); in DisplayInitialize()
346 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "FAKE CLIENT SAMPLE"); in DisplayInitialize()
348 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "NOW INITIALIZING..."); in DisplayInitialize()
349 pRenderSystem->SwapBuffers(); in DisplayInitialize()
350 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayInitialize()
351 pRenderSystem->Clear(); in DisplayInitialize()
352 pRenderSystem->SwapBuffers(); in DisplayInitialize()
382 void DisplayStart(demo::RenderSystemDrawing* pRenderSystem) in DisplayStart() argument
387 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayStart()
388 pRenderSystem->Clear(); in DisplayStart()
389 pRenderSystem->SetColor(WHITE_COLOR); in DisplayStart()
390 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "FAKE CLIENT SAMPLE"); in DisplayStart()
392 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "PRESS A TO START"); in DisplayStart()
393 pRenderSystem->SwapBuffers(); in DisplayStart()
394 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayStart()
395 pRenderSystem->Clear(); in DisplayStart()
396 pRenderSystem->SwapBuffers(); in DisplayStart()
457 …n::dlp::TitleInfo* titleList, int titleNum, int selected, demo::RenderSystemDrawing* pRenderSystem) in DisplayScan() argument
460 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayScan()
461 pRenderSystem->Clear(); DLP_DEBUG_POINT; in DisplayScan()
464 DisplayTitleList(titleList, titleNum, selected, pRenderSystem); in DisplayScan()
467 DisplayCube(pRenderSystem, 385, 225); in DisplayScan()
468 pRenderSystem->SwapBuffers(); in DisplayScan()
473 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayScan()
474 pRenderSystem->Clear(); in DisplayScan()
476 DisplayTitleInfo(titleList[selected], pRenderSystem); in DisplayScan()
481 DisplayServerInfo(s_ServerInfo, pRenderSystem); in DisplayScan()
484 DisplayNodeInfo(s_ServerInfo.nodeInfo, s_ServerInfo.nodeNum, pRenderSystem); in DisplayScan()
485 pRenderSystem->SwapBuffers(); in DisplayScan()
489 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayScan()
490 pRenderSystem->Clear(); in DisplayScan()
491 pRenderSystem->SwapBuffers(); in DisplayScan()
498 void DisplayWaitingConnect(demo::RenderSystemDrawing* pRenderSystem) in DisplayWaitingConnect() argument
500 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayWaitingConnect()
501 pRenderSystem->Clear(); DLP_DEBUG_POINT; in DisplayWaitingConnect()
506 pRenderSystem->SetColor(WHITE_COLOR); in DisplayWaitingConnect()
507 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "WAITING CONNECT..."); in DisplayWaitingConnect()
508 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "PRESS B TO CANCEL"); in DisplayWaitingConnect()
510 pRenderSystem->SwapBuffers(); in DisplayWaitingConnect()
539 …splayWaitingDownload(const nn::dlp::TitleInfo& titleInfo, demo::RenderSystemDrawing* pRenderSystem) in DisplayWaitingDownload() argument
544 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayWaitingDownload()
545 pRenderSystem->Clear(); in DisplayWaitingDownload()
547 pRenderSystem->SetColor(WHITE_COLOR); in DisplayWaitingDownload()
548 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "WAITING DOWNLOAD..."); in DisplayWaitingDownload()
549 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "PRESS B TO CANCEL"); in DisplayWaitingDownload()
550 pRenderSystem->SwapBuffers(); in DisplayWaitingDownload()
553 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayWaitingDownload()
554 pRenderSystem->Clear(); in DisplayWaitingDownload()
556 DisplayTitleInfo(titleInfo, pRenderSystem); in DisplayWaitingDownload()
560 DisplayServerInfo(s_ServerInfo, pRenderSystem); in DisplayWaitingDownload()
563 DisplayNodeInfo(s_ServerInfo.nodeInfo, s_ServerInfo.nodeNum, pRenderSystem); in DisplayWaitingDownload()
564 pRenderSystem->SwapBuffers(); in DisplayWaitingDownload()
580 …lientStatus& status, const nn::dlp::TitleInfo& titleInfo, demo::RenderSystemDrawing* pRenderSystem) in DisplayDownload() argument
582 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayDownload()
583 pRenderSystem->Clear(); in DisplayDownload()
586 DisplayDownloadInfo(status, pRenderSystem); in DisplayDownload()
589 DisplayCube(pRenderSystem, 385, 225); in DisplayDownload()
590 pRenderSystem->SwapBuffers(); in DisplayDownload()
592 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayDownload()
593 pRenderSystem->Clear(); in DisplayDownload()
596 DisplayTitleInfo(titleInfo, pRenderSystem); in DisplayDownload()
600 DisplayServerInfo(s_ServerInfo, pRenderSystem); in DisplayDownload()
603 DisplayNodeInfo(s_ServerInfo.nodeInfo, s_ServerInfo.nodeNum, pRenderSystem); in DisplayDownload()
604 pRenderSystem->SwapBuffers(); in DisplayDownload()
620 void DisplayReboot(demo::RenderSystemDrawing* pRenderSystem) in DisplayReboot() argument
625 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayReboot()
626 pRenderSystem->Clear(); in DisplayReboot()
627 pRenderSystem->SetColor(WHITE_COLOR); in DisplayReboot()
628 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "STARTING FAKE CHILD"); in DisplayReboot()
629 pRenderSystem->SwapBuffers(); in DisplayReboot()
631 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayReboot()
632 pRenderSystem->Clear(); in DisplayReboot()
633 pRenderSystem->SwapBuffers(); in DisplayReboot()
653 void DisplayError(demo::RenderSystemDrawing* pRenderSystem) in DisplayError() argument
658 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY0); in DisplayError()
659 pRenderSystem->Clear(); in DisplayError()
660 pRenderSystem->SetColor(WHITE_COLOR); in DisplayError()
662 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "ERROR"); in DisplayError()
665 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "PRESS A TO RESTART"); in DisplayError()
666 pRenderSystem->SwapBuffers(); in DisplayError()
668 pRenderSystem->SetRenderTarget(NN_GX_DISPLAY1); in DisplayError()
669 pRenderSystem->Clear(); in DisplayError()
670 pRenderSystem->SwapBuffers(); in DisplayError()
720 …n::dlp::TitleInfo* titleList, int titleNum, int selected, demo::RenderSystemDrawing* pRenderSystem) in Display() argument
725 DisplayStart(pRenderSystem); in Display()
728 DisplayScan(titleList, titleNum, selected, pRenderSystem); in Display()
731 DisplayWaitingConnect(pRenderSystem); in Display()
735 DisplayWaitingDownload(titleList[selected], pRenderSystem); in Display()
739 DisplayDownload(clientStatus, titleList[selected], pRenderSystem); in Display()
744 DisplayReboot(pRenderSystem); in Display()
748 DisplayError(pRenderSystem); in Display()