| /CTR-SDK-4.2.7-SampleDemos/common/libraries/scene/ |
| D | GuiUtil.cpp | 49 void util::DrawBox(f32 x, f32 y, f32 width, f32 height, f32 lineWidth) in DrawBox() argument 54 s_pRenderSystem->DrawLine(x, y, x + width, y); in DrawBox() 56 s_pRenderSystem->DrawLine(x + width, y, x + width, y + height); in DrawBox() 58 s_pRenderSystem->DrawLine(x + width, y + height, x, y + height); in DrawBox() 60 s_pRenderSystem->DrawLine(x, y + height, x, y); in DrawBox()
|
| D | GuiControlManager.cpp | 25 m_touchStatusOld.y = 0; in ControlManager() 104 u16 nowY = m_touchStatus.y; in Update() 108 u16 prevY = m_touchStatusOld.y; in Update() 119 s32 y = (*it)->GetY(); in Update() local 134 if (nowX >= x && nowX <= x + width && nowY >= y && nowY <= y + height) in Update() 144 m_pCallback(CONTROL_EVENT_PENDOWN, *it, nowX - x, nowY - y, m_pParam); in Update() 154 m_pCallback(CONTROL_EVENT_SLIDE, *it, nowX - x, nowY - y, m_pParam); in Update() 161 m_pCallback(CONTROL_EVENT_CHANGE_STATE, *it, nowX - x, nowY - y, m_pParam); in Update() 169 bool isIn = (prevX >= x && prevX <= x + width && prevY >= y && prevY <= y + height); in Update() 178 m_pCallback(CONTROL_EVENT_SLIDE, *it, nowX - x, nowY - y, m_pParam); in Update() [all …]
|
| D | Util.cpp | 163 void DrawBusyIcon(TextWriter* pTextWriter, u16 x, u16 y, u32 counter) in DrawBusyIcon() argument 177 pTextWriter->Printf(x + offset, y, busyIcon); in DrawBusyIcon() 195 f32 y = ((f32)NN_GX_DISPLAY1_WIDTH - 45.0f) / 2.0f - (height + 1.0f); in DrawConfirmMessage() local 197 pTextWriter->Printf(x, y, pMessage1); in DrawConfirmMessage() 205 f32 y = ((f32)NN_GX_DISPLAY1_WIDTH - 45.0f) / 2.0f + 1.0f; in DrawConfirmMessage() local 207 pTextWriter->Printf(x, y, pMessage2); in DrawConfirmMessage()
|
| D | GuiLabel.cpp | 22 Label::Label(u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText, void* pExtraData, f… in Label() argument 23 : ControlBase(CONTROL_TYPE_LABEL, id, x, y, width, height, pText, pExtraData, fontScale) in Label()
|
| /CTR-SDK-4.2.7-SampleDemos/dlp/SimpleServer/ |
| D | SimpleServer.cpp | 57 void DisplayClientState(u16 x, u16 y, nn::dlp::ClientState state, in DisplayClientState() argument 63 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "WAIT INVITE"); in DisplayClientState() 66 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "WAIT ACCEPT"); in DisplayClientState() 69 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "JOINED"); in DisplayClientState() 72 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "DOWNLOADING"); in DisplayClientState() 75 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "COMPLETE"); in DisplayClientState() 78 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "INVALID"); in DisplayClientState() 83 u16 DisplayClientList(u16 selected, u16 x, u16 y, demo::RenderSystemDrawing* pRenderSystem) in DisplayClientList() argument 89 pRenderSystem->DrawText(FONT_SIZE * (x + 3), FONT_SIZE * y, "CLIENT NAME"); in DisplayClientList() 90 pRenderSystem->DrawText(FONT_SIZE * (x + 15), FONT_SIZE * y, "STATE"); in DisplayClientList() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/demo1/ |
| D | tp.cpp | 21 void MakeTouchMark(demo::RenderSystemDrawing* p_RenderSystem, u16 x, u16 y, u16 length) in MakeTouchMark() argument 23 p_RenderSystem->DrawLine(x - length, y, x + length + 1, y); in MakeTouchMark() 24 p_RenderSystem->DrawLine(x, y - length, x, y + length + 1); in MakeTouchMark() 38 MakeTouchMark(mp_RenderSystem, tpStatus.x, tpStatus.y, 5); in DrawFrame()
|
| /CTR-SDK-4.2.7-SampleDemos/dlp/FakeClient/ |
| D | FakeClient.cpp | 66 void DisplayCube(demo::RenderSystemDrawing* pRenderSystem, u16 x, u16 y) in DisplayCube() argument 71 u16 y; in DisplayCube() member 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() 101 u16 y = 2; in DisplayTitleList() local 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() 108 y += 2; 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() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/shaders/ |
| D | VShader1.vsh | 36 #define dmp_PartSys_center c63 // 4*(x,y,z,w) control point positions 37 #define dmp_PartSys_radii c71 // 4*(x,y,z,?) box radii around each control points 44 #define CONST_1 CONSTANT[0].y 54 mul r1.y, r2.x, uModelView[1].x 60 mul r1.x, r2.y, uModelView[0].y 61 mul r1.y, r2.y, uModelView[1].y 62 mul r1.z, r2.y, uModelView[2].y 64 …dp4 dmp_Position.y, r0, uProjection[1] //control poin… 65 dp3 dmp_PMVS_Radii0.y, uProjection[0], r1 66 dp3 dmp_PMVS_Radii1.y, uProjection[1], r1 [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/applet/phtsel/ |
| D | PhtselMenu.h | 129 virtual void Draw( demo::RenderSystemDrawing& df, s32 x, s32 y, bool bSelectItem ) const in Draw() argument 131 DrawItemNameCommon( df, x, y, bSelectItem ); in Draw() 135 DrawParam( df, x2, y, "%04d", Param_Year ); x2 += 8*4; in Draw() 136 df.DrawText( x2, y, "-" ); x2 += 8; in Draw() 137 DrawParam( df, x2, y, "%02d", Param_Month ); x2 += 8*2; in Draw() 138 df.DrawText( x2, y, "-" ); x2 += 8; in Draw() 139 DrawParam( df, x2, y, "%02d", Param_Day ); x2 += 8*2; in Draw() 143 DrawParam( df, x2, y, "%02d", Param_Hour ); x2 += 8*2; in Draw() 144 df.DrawText( x2, y, ":" ); x2 += 8; in Draw() 145 DrawParam( df, x2, y, "%02d", Param_Min ); x2 += 8*2; in Draw() [all …]
|
| D | Menu.h | 161 virtual void Draw( demo::RenderSystemDrawing& df, s32 x, s32 y, bool bSelectItem ) const = 0; 165 void DrawItemNameCommon( demo::RenderSystemDrawing& df, s32 x, s32 y, bool bSelectItem ) const in DrawItemNameCommon() argument 171 df.DrawText( x, y, "%s", GetItemName() ); in DrawItemNameCommon() 175 df.DrawText( x+160-8*2, y, IsDetailEditMode() ? "B<" : "A>" ); in DrawItemNameCommon() 222 virtual void Draw( demo::RenderSystemDrawing& df, s32 x, s32 y, bool bSelectItem ) const in Draw() argument 224 DrawItemNameCommon( df, x, y, bSelectItem ); in Draw() 227 df.DrawText( x+160, y, "%s", GetSelectValueName() ); in Draw() 288 virtual void Draw( demo::RenderSystemDrawing& df, s32 x, s32 y, bool bSelectItem ) const in Draw() argument 290 DrawItemNameCommon( df, x, y, bSelectItem ); in Draw() 292 df.DrawText( x+160, y, "%d", GetSelectValue() ); in Draw()
|
| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Body/ |
| D | demo_Cylinder.cpp | 77 f32 y = (- halfHeight); in InitializeCylinder() local 81 SetPosition(vertexIndex, x, y, z); in InitializeCylinder() 84 x, y, z); in InitializeCylinder() 86 x, y, z); in InitializeCylinder() 89 y = halfHeight; in InitializeCylinder() 91 x, y, z); in InitializeCylinder() 94 x, y, z); in InitializeCylinder() 96 x, y, z); in InitializeCylinder() 143 normal0.x, normal0.y, normal0.z); in InitializeCylinder() 145 normal1.x, normal1.y, normal1.z); in InitializeCylinder() [all …]
|
| D | demo_Particle.cpp | 100 m_Sphere.SetWorldPosition(m_Position.x, m_Position.y, m_Position.z); in Update() 110 …m_Velocity.y = s_RandomVelocityScale.y * (static_cast<f32>(::std::rand() % 256) / 256.0f - 0.5f) +… in Spawn()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Common/ |
| D | Common.vsh | 18 dp4 gl_Position.y, TEMP_VIEW, dmp_projection_matrix[1] 28 dp3 TEMP_NORM.y, dmp_normal, dmp_local_to_view_matrix[1] 31 dp4 gl_Position.y, TEMP_VIEW, dmp_projection_matrix[1] 54 dp3 TEMP_NORM.y, dmp_normal, dmp_local_to_view_matrix[1] 61 dp4 gl_Position.y, TEMP_VIEW, dmp_projection_matrix[1] 85 dp3 gl_TexCoord0.y, TEMP0, dmp_local_to_world_matrix[1] 94 dp3 TEMP_NORM.y, dmp_normal, dmp_local_to_view_matrix[1] 97 dp3 TEMP_TANG.y, dmp_tangent, dmp_local_to_view_matrix[1] 101 dp4 gl_Position.y, TEMP_VIEW, dmp_projection_matrix[1] 110 add r6.w, TEMP_NORM.z, r5.y [all …]
|
| D | Tga.cpp | 46 unsigned short x, y; member 69 tga->y = data[11] * 256 + data[10]; in _setTGAHeader() 95 data[10] = tga->y & 0xff; 96 data[11] = (tga->y & 0xff00) >> 8; 229 int y; in dmpLoadTGA() local 313 for(y = 0; y < tga.height; y++) { in dmpLoadTGA() 317 (_upper ? tga.height - y - 1 : y); in dmpLoadTGA()
|
| D | Commonasm.h | 82 #define CONST_1 CONSTANT[0].y 90 #define CONST_1__256 CONSTANT[1].y
|
| /CTR-SDK-4.2.7-SampleDemos/cec/cec_demo2/ |
| D | cec_Main.cpp | 437 u16 x,y; in DisplayCreation() local 440 x = 0; y = 0; in DisplayCreation() 444 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "PRESS A TO CREATE MESSAGEBOX"); in DisplayCreation() 452 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "ERROR:MESSAGEBOX NUM IS FULL"); in DisplayCreation() 456 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "ERROR:PRIVATEID DO NOT MATCH"); in DisplayCreation() 460 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "ERROR:BUSY"); in DisplayCreation() 464 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y++, "ERROR:"); in DisplayCreation() 470 x = 0; y = BOTTOM_DISP; in DisplayCreation() 474 pRenderSystem->DrawText(FONT_SIZE * x, FONT_SIZE * y, "A:CREATE_BOX"); in DisplayCreation() 532 u16 y; in DisplayWriting() local [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/demo2/ |
| D | graphics.cpp | 210 nn::math::VEC3 v_g(v_acc.x, -1.f, v_acc.y); // Gravitational acceleration in UpdateParams() 218 v_deg->y = nn::math::AsinDeg(v_g.z); // Incline of z-axis in UpdateParams() 245 v_g.y = 0; in UpdateParams() 246 v_s.y = 0; in UpdateParams() 250 v_degSphere->y = v_deg->y; in UpdateParams() 252 else if( v_pos->y > -50.f ) in UpdateParams() 255 v_v.y += v_g.y * SPEED; in UpdateParams() 264 v_pos->y = 0.f; in UpdateParams() 267 v_v.y = 0.f; in UpdateParams() 317 nn::math::Vector3 fall(0.f, v_pos.y, 0.f); in DrawObjects() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/ |
| D | gx_CaptureUtil.cpp | 204 int x, y; in SaveDisplayBufferSD() local 220 for (y = j = 0; y < height; ++y) in SaveDisplayBufferSD() 244 for (y = 0; y < height; ++y) in SaveDisplayBufferSD()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingAniso/shaders/ |
| D | VShader.vsh | 55 … add r6.w, TEMP_NORM.z, r5.y // m11+m22 in r6.w 66 …mov r6.y, -CONST_1 // 1,-1,?,1+m00+m11… 69 …add r7.y, TEMP_NORM.x, -TEMP_TANG.z // m21-m12,m02-m20,… 80 … add r8.x, CONST_1, -r5.y // 1-m11,m10,m20,-m21 in r8 87 … add r8.x, CONST_1, -r5.y // 1-m11,m10,m20,-m21 in r8 95 add r9, r5.x, -r5.y // m22-m11 in r9 105 … add r8.y, CONST_1, -r5.z // m10,1-m00,m21,-m20 in r8 106 add r9, r5.y, -r5.x // m11-m22 in r9 108 …add r8.y, r9, r8 // m01+m10,1+m11-m22-m00,m12+m… 112 add r9, r5.x, -r5.y [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingFresnel/shaders/ |
| D | VShader.vsh | 58 … add r6.w, TEMP_NORM.z, r5.y // m11+m22 in r6.w 69 …mov r6.y, -CONST_1 // 1,-1,?,1+m00+m11… 72 …add r7.y, TEMP_NORM.x, -TEMP_TANG.z // m21-m12,m02-m20,… 83 … add r8.x, CONST_1, -r5.y // 1-m11,m10,m20,-m21 in r8 90 … add r8.x, CONST_1, -r5.y // 1-m11,m10,m20,-m21 in r8 98 add r9, r5.x, -r5.y // m22-m11 in r9 108 … add r8.y, CONST_1, -r5.z // m10,1-m00,m21,-m20 in r8 109 add r9, r5.y, -r5.x // m11-m22 in r9 111 …add r8.y, r9, r8 // m01+m10,1+m11-m22-m00,m12+m… 115 add r9, r5.x, -r5.y
|
| /CTR-SDK-4.2.7-SampleDemos/common/include/scene/ |
| D | TextWriter.h | 77 void Printf(f32 x, f32 y, const wchar_t* pFormat, ...); 86 void PutString(f32 x, f32 y, const wchar_t* pString);
|
| D | GuiUtil.h | 59 void DrawBox(f32 x, f32 y, f32 width, f32 height, f32 lineWidth = 1.0f);
|
| /CTR-SDK-4.2.7-SampleDemos/fs/Streaming/ |
| D | FsSampleStreamingFrame.cpp | 95 u16 y = orgY - MEMO_Y; in DrawPoint() local 96 …u32 id = y / TEXTURE_BLOCK_SIZE * MEMO_WIDTH * TEXTURE_BLOCK_SIZE + x / TEXTURE_BLOCK_SIZE * TEXTU… in DrawPoint() 100 (((y >> 0) & 1) << 1) + in DrawPoint() 101 (((y >> 1) & 1) << 3) + in DrawPoint() 102 (((y >> 2) & 1) << 5); in DrawPoint() 113 s32 diffY = now.y - previous.y; in DrawLine() 119 DrawPoint(now.x, now.y); in DrawLine() 125 DrawPoint(previous.x + i * diffX / absDiffY, previous.y + i * diffY / absDiffY); in DrawLine() 132 DrawPoint(previous.x + i * diffX / absDiffX, previous.y + i * diffY / absDiffX); in DrawLine()
|
| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/shaders/ |
| D | DecalTextureVShader.vsh | 40 #define CONST_1 CONSTANT[0].y 48 #define CONST_1__256 CONSTANT[1].y 69 dp4 vPosition.y, TEMP_VIEW, MATRIX_Proj1
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Demo/DrawTexture2d/ |
| D | gx_DrawTexture2d.cpp | 282 for (u32 y = 0; y < textureHeight; y++) in GetTextureDataFromBmpFileData() local 287 textureDataPtr += 3 * ((static_cast<u32>(textureWidth) * y) + x); in GetTextureDataFromBmpFileData() 288 if ( ( x >= bmpWidth ) || ( y >= bmpHeight ) ) in GetTextureDataFromBmpFileData() 301 bmpDataPtr += 3 * (bmpWidth * y + x); in GetTextureDataFromBmpFileData()
|