Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 81) sorted by relevance

1234

/CTR-SDK-4.2.7-SampleDemos/common/libraries/scene/
DGuiUtil.cpp49 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()
DGuiControlManager.cpp24 m_touchStatusOld.x = 0; in ControlManager()
103 u16 nowX = m_touchStatus.x; in Update()
107 u16 prevX = m_touchStatusOld.x; in Update()
118 s32 x = (*it)->GetX(); 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 …]
DGuiControlBase.cpp38 ControlBase::ControlBase(ControlType type, u32 id, s32 x, s32 y, u32 width, u32 height, const wchar… in ControlBase() argument
42 m_x = x; in ControlBase()
129 s32 x = 0; in CalculateTextX() local
135 x = m_x + offsetL; in CalculateTextX()
140 x = m_x - offsetR + m_width - m_textWidth; in CalculateTextX()
147 x = m_x + offsetL + ((m_width - offsetC) - m_textWidth) / 2; in CalculateTextX()
152 return x; in CalculateTextX()
DTenKey.cpp43 scene::Label* CreateInputBox(u32 id, u16 x, const wchar_t* pText) in CreateInputBox() argument
46 scene::Label* pLabel = new scene::Label(id, x, 8, BOX_SIZE, 36, pText); in CreateInputBox()
57 scene::Label* CreateHyphen(u16 x) in CreateHyphen() argument
60 … scene::Label* pLabel = new scene::Label(scene::CONTROL_ID_UNUSED, x, 12, HYPHEN_SIZE, 30, L"-"); in CreateHyphen()
131 u16 x = (NN_GX_DISPLAY1_HEIGHT - fieldWidth) / 2; in Initialize() local
137 m_controlManager.Add(CreateInputBox(id, x, L"")); in Initialize()
138 x += BOX_SIZE + margin; in Initialize()
142 m_controlManager.Add(CreateHyphen(x)); in Initialize()
143 x += HYPHEN_SIZE + margin; in Initialize()
238 void TenKey::MyControlEventCallback(scene::ControlEvent event, scene::ControlBase* pControl, s16 x,… in MyControlEventCallback() argument
[all …]
DUtil.cpp163 void DrawBusyIcon(TextWriter* pTextWriter, u16 x, u16 y, u32 counter) in DrawBusyIcon() argument
177 pTextWriter->Printf(x + offset, y, busyIcon); in DrawBusyIcon()
194 f32 x = ((f32)NN_GX_DISPLAY1_HEIGHT - width) / 2.0f; in DrawConfirmMessage() local
197 pTextWriter->Printf(x, y, pMessage1); in DrawConfirmMessage()
204 f32 x = ((f32)NN_GX_DISPLAY1_HEIGHT - width) / 2.0f; in DrawConfirmMessage() local
207 pTextWriter->Printf(x, y, pMessage2); in DrawConfirmMessage()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/shaders/
DVShader1.vsh26 #pragma bind_symbol(attrCtrPointIndex.x, v0, v0) //expecting only input 0,1,2,3
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
43 #define CONST_0 CONSTANT[0].x
49 …mova a0.x, v0.x //this is the …
50 mov r1, dmp_PartSys_center[a0.x]
52 mov r2, dmp_PartSys_radii[a0.x]
53 …mul r1.x, r2.x, uModelView[0].x //Projection o…
54 mul r1.y, r2.x, uModelView[1].x
55 mul r1.z, r2.x, uModelView[2].x
[all …]
/CTR-SDK-4.2.7-SampleDemos/demo1/
Dtp.cpp21 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/gx/DMPGL/Common/
DCommon.vsh17 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
27 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
30 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
38 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0))…
41 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in…
53 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
60 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
75 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1…
78 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) i…
84 dp3 gl_TexCoord0.x, TEMP0, dmp_local_to_world_matrix[0]
[all …]
DTga.cpp46 unsigned short x, y; member
68 tga->x = data[9] * 256 + data[8]; in _setTGAHeader()
93 data[8] = tga->x & 0xff;
94 data[9] = (tga->x & 0xff00) >> 8;
111 int x; in _LoadTGAScanline() local
115 for(x = 0; x < tga->width; x++) { in _LoadTGAScanline()
140 int x; in _LoadTGAScanlineRLE() local
146 x = 0; in _LoadTGAScanlineRLE()
148 while(x < tga->width && !errFlag) { in _LoadTGAScanlineRLE()
156 if (x >= tga->width) { in _LoadTGAScanlineRLE()
[all …]
/CTR-SDK-4.2.7-SampleDemos/dlp/SimpleServer/
DSimpleServer.cpp57 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/dlp/FakeClient/
DFakeClient.cpp66 void DisplayCube(demo::RenderSystemDrawing* pRenderSystem, u16 x, u16 y) in DisplayCube() argument
70 u16 x; 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()
100 u16 x = 1; 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()
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()
[all …]
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Body/
Ddemo_Cylinder.cpp76 f32 x = m_Radius * sinValue; in InitializeCylinder() local
81 SetPosition(vertexIndex, x, y, z); in InitializeCylinder()
84 x, y, z); in InitializeCylinder()
86 x, y, z); 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()
152 normal0.x, normal0.y, normal0.z); in InitializeCylinder()
[all …]
Ddemo_Particle.cpp100 m_Sphere.SetWorldPosition(m_Position.x, m_Position.y, m_Position.z); in Update()
109 …m_Velocity.x = s_RandomVelocityScale.x * (static_cast<f32>(::std::rand() % 256) / 256.0f - 0.5f) +… in Spawn()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingAniso/shaders/
DVShader.vsh58 …add r6.w, TEMP_TANG.x, r6 // m00+m11+m22 in r…
60 mov r5.z, TEMP_TANG.x // m00 in r5.z
62 mov TEMP_NORM.w, r5.x // m01 in norm.w
63 …mov r5.x, TEMP_NORM.z // m22 in r5.x -> m…
65 mov r6.x, CONST_1
69 …add r7.y, TEMP_NORM.x, -TEMP_TANG.z // m21-m12,m02-m20,…
72 rsq r6, r6.x
80 … add r8.x, CONST_1, -r5.y // 1-m11,m10,m20,-m21 in r8
81 add r9, r5.z, -r5.x // m00-m22 in r9
83 …add r8.x, r9, r8 // 1+m00-m22-m11,m10+m01,m20+m…
[all …]
/CTR-SDK-4.2.7-SampleDemos/applet/phtsel/
DMenu.h161 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/cec/cec_demo2/
Dcec_Main.cpp437 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()
531 u16 x; in DisplayWriting() local
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingFresnel/shaders/
DVShader.vsh61 …add r6.w, TEMP_TANG.x, r6 // m00+m11+m22 in r…
63 mov r5.z, TEMP_TANG.x // m00 in r5.z
65 mov TEMP_NORM.w, r5.x // m01 in norm.w
66 …mov r5.x, TEMP_NORM.z // m22 in r5.x -> m…
68 mov r6.x, CONST_1
72 …add r7.y, TEMP_NORM.x, -TEMP_TANG.z // m21-m12,m02-m20,…
75 rsq r6, r6.x
83 … add r8.x, CONST_1, -r5.y // 1-m11,m10,m20,-m21 in r8
84 add r9, r5.z, -r5.x // m00-m22 in r9
86 …add r8.x, r9, r8 // 1+m00-m22-m11,m10+m01,m20+m…
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/
Dgx_CaptureUtil.cpp204 int x, y; in SaveDisplayBufferSD() local
217 for (x = 0; x < width; ++x) in SaveDisplayBufferSD()
219 i = x * 3; in SaveDisplayBufferSD()
241 for (x = j = 0; x < width; ++x) in SaveDisplayBufferSD()
243 i = x * 3; in SaveDisplayBufferSD()
/CTR-SDK-4.2.7-SampleDemos/dlp/include/
DdlpDemo.h44 #define DLP_ROUNDUP(x, base) (((x) + ((base)-1)) & ~((base)-1)) argument
/CTR-SDK-4.2.7-SampleDemos/demo2/
Dgraphics.cpp210 nn::math::VEC3 v_g(v_acc.x, -1.f, v_acc.y); // Gravitational acceleration in UpdateParams()
213 if(v_g.x > 1.f) v_g.x = 1.f; in UpdateParams()
214 else if(v_g.x < -1.f) v_g.x = -1.f; in UpdateParams()
217 v_deg->x = nn::math::AsinDeg(v_g.x); // Incline of x-axis in UpdateParams()
241 if(v_pos->x > -4.f && v_pos->x < 4.f && v_pos->z > -4.f && v_pos->z < 4.f) in UpdateParams()
249 v_degSphere->x = v_deg->x; in UpdateParams()
263 v_pos->x = 0.f; in UpdateParams()
266 v_v.x = 0.f; in UpdateParams()
316 nn::math::Vector3 trans(v_pos.x, posYforSphere, v_pos.z); in DrawObjects()
319 nn::math::MTX34RotXYZDeg(&arr[1], v_degSphere.y, 0.f, -v_degSphere.x); in DrawObjects()
[all …]
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasCessna/shaders/
DVShader0.vsh38 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
41 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
48 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0)…
50 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0))…
53 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in…
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSpotAtte/shaders/
DVShader.vsh38 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
41 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
48 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0)…
50 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0))…
53 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in…
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingDistanceAtte/shaders/
DVShader.vsh38 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
41 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
48 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0)…
50 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0))…
53 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in…
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandBufferJump/shaders/
DVShader.vsh38 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
42 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
48 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0)…
50 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0))…
53 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in…
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingMicrofacet/shaders/
DVShader.vsh38 dp3 TEMP_NORM.x, dmp_normal, dmp_local_to_view_matrix[0]
41 dp4 gl_Position.x, TEMP_VIEW, dmp_projection_matrix[0]
48 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0)…
50 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0))…
53 …rcp dmp_lrQuat.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in…

1234