| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Render/ |
| D | demo_CommandList.cpp | 30 for (u32 index = 0; index < DEMO_COMMAND_LIST_NUM; index++) in CommandList() local 32 m_CommandListIdArray[index] = 0; in CommandList() 55 for (u32 index = 0; index < DEMO_COMMAND_LIST_NUM; index++) in Initialize() local 57 GLuint id = m_CommandListIdArray[index]; in Initialize() 92 for (u32 index = 0; index < DEMO_COMMAND_LIST_NUM; index++) in Finalize() local 94 m_CommandListIdArray[index] = 0; in Finalize()
|
| D | demo_FrameBuffer.cpp | 102 for (u32 index = 0; index < DEMO_RENDER_BUFFER_NUM; index++) in FrameBufferDescription() local 104 m_RenderBufferDescriptionArray[index] = rhs.m_RenderBufferDescriptionArray[index]; in FrameBufferDescription() 113 for (u32 index = 0; index < DEMO_RENDER_BUFFER_NUM; index++) in operator =() local 115 m_RenderBufferDescriptionArray[index] = rhs.m_RenderBufferDescriptionArray[index]; in operator =()
|
| D | demo_DisplayBuffers.cpp | 172 GLuint DisplayBuffers::GetDisplayBufferId(const u32 index) const in GetDisplayBufferId() 174 if ( index < m_DisplayBufferNum ) in GetDisplayBufferId()
|
| D | demo_RenderSystemDrawing.cpp | 35 for (u32 index = 0; index < 4; index++) in RenderSystemDrawing() local 37 m_ClearColorArray[displayIndex][index] = 0.0f; in RenderSystemDrawing()
|
| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/RenderData/ |
| D | demo_TrianglesRenderData.cpp | 510 void TrianglesRenderData::SetPosition(const u32 index, in SetPosition() argument 513 if ( ( m_VertexAttributes & VERTEX_POSITION_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetPosition() 515 m_PositionArray[4 * index] = positionX; in SetPosition() 516 m_PositionArray[4 * index + 1] = positionY; in SetPosition() 517 m_PositionArray[4 * index + 2] = positionZ; in SetPosition() 518 m_PositionArray[4 * index + 3] = 1.0f; in SetPosition() 526 void TrianglesRenderData::SetPosition(const u32 index, in SetPosition() argument 530 if ( ( m_VertexAttributes & VERTEX_POSITION_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetPosition() 532 m_PositionArray[4 * index] = positionX; in SetPosition() 533 m_PositionArray[4 * index + 1] = positionY; in SetPosition() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/CommandCache/ |
| D | demo_CommandCache.cpp | 241 for (u32 index = 0; index < 4; index++) in EndSave() local 246 … m_VertexShaderUniformMatrixArray2d[modelIndex][uniformMatrixIndex].m_RegisterIndex + index, in EndSave() 247 … &m_VertexShaderUniformMatrixArray2d[modelIndex][uniformMatrixIndex].m_Offset[index][0]); in EndSave() 283 for (u32 index = 0; index < 16; index++) in UpdateVSUniformMatrix() local 285 matrixArray[index] = matrix.m[index & 3][index >> 2]; in UpdateVSUniformMatrix() 288 for (u32 index = 0; index < 4; index++) in UpdateVSUniformMatrix() local 290 …ferAddr[m_VertexShaderUniformMatrixArray2d[modelIndex][uniformMatrixIndex].m_Offset[index][3]])) = in UpdateVSUniformMatrix() 291 *(reinterpret_cast<u32*>(&matrixArray[0 + index])); in UpdateVSUniformMatrix() 292 …ferAddr[m_VertexShaderUniformMatrixArray2d[modelIndex][uniformMatrixIndex].m_Offset[index][2]])) = in UpdateVSUniformMatrix() 293 *(reinterpret_cast<u32*>(&matrixArray[4 + index])); in UpdateVSUniformMatrix() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/VertexBuffer/ |
| D | gx_VertexBuffer.cpp | 287 for (u32 index = 0; index < 3; index++) in InitializeCube() local 289 s_ArrayBufferIdArray[index] = 0; in InitializeCube() 361 for (u32 index = 0; index < 3; index++) in SetCube() local 363 s_CubeHalfEdge[index] = 0.5f; in SetCube() 366 for (u32 index = 0; index < 3; index++) in SetCube() local 368 s_Position[index] = 0.0f; in SetCube() 369 s_Angle[index] = 0.0f; in SetCube() 548 for (u32 index = 0; index < 4; index++) in SetCubeNormal() local 557 for (u32 index = 0; index < 4; index++) in SetCubeNormal() local 566 for (u32 index = 0; index < 4; index++) in SetCubeNormal() local [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/camera/Stereo/ |
| D | main.cpp | 62 bool Y2rConversion(s32 index); 71 void DrawCameraImage(s32 index); 171 s32 index; // Right or left member 314 s32 another = p_Req->index ^ 1; in nnMain() 347 if (Y2rConversion(p_Req->index)) in nnMain() 350 a_LatestTime[p_Req->index] = p_Req->time; in nnMain() 351 a_IsComplete[p_Req->index] = true; in nnMain() 354 s_IsUpdateRgbImage[p_Req->index] = true; in nnMain() 356 s_ExistRgbImage[p_Req->index] = true; in nnMain() 361 s_ExistRgbImage[p_Req->index] = false; in nnMain() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/common/include/demo/RenderData/ |
| D | demo_TrianglesRenderData.h | 287 void SetPosition(const u32 index, 301 void SetPosition(const u32 index, 315 void SetColor(const u32 index, 329 void SetColor(const u32 index, 365 void SetTexcoord(const u32 index, 378 void SetTexcoord(const u32 index, 391 void SetNormal(const u32 index, 404 void SetTangent(const u32 index, 417 void SetIndex(const u32 index,
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/ |
| D | gx_CaptureUtil.cpp | 103 int SaveDisplayBufferSD(const wchar_t *dirname, const wchar_t *filename, u32 index, in SaveDisplayBufferSD() argument 164 path[i ] = (index/10000) + 48; index %= 10000; in SaveDisplayBufferSD() 165 path[i+1] = (index/1000 ) + 48; index %= 1000; in SaveDisplayBufferSD() 166 path[i+2] = (index/100 ) + 48; index %= 100; in SaveDisplayBufferSD() 167 path[i+3] = (index/10 ) + 48; in SaveDisplayBufferSD() 168 path[i+4] = (index%10 ) + 48; in SaveDisplayBufferSD()
|
| D | TriangleSimple.cpp | 45 extern int SaveDisplayBufferSD(const wchar_t *dirname, const wchar_t *filename, u32 index,
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandListDouble/ |
| D | gx_CommandListDouble.cpp | 112 for (u32 index = 0; index < 2; index++) in RenderSystemDouble() local 114 m_Display0BufferIdArray[index] = 0; in RenderSystemDouble() 115 m_Display1BufferIdArray[index] = 0; in RenderSystemDouble() 117 m_CommandListIdArray[index] = 0; in RenderSystemDouble() 155 for (u32 index = 0; index < 2; index++) in Initialize() local 157 m_Display0BufferIdArray[index] = m_DisplayBuffers0.GetDisplayBufferId(index); in Initialize() 158 m_Display1BufferIdArray[index] = m_DisplayBuffers1.GetDisplayBufferId(index); in Initialize() 180 for (u32 index = 0; index < 2; index++) in CreateCommandListDouble() local 182 nngxBindCmdlist(m_CommandListIdArray[index]); in CreateCommandListDouble()
|
| /CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Body/ |
| D | demo_Particle.cpp | 92 for (u32 index = 0; index < 3; index++) in Update() local
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandBufferJump/ |
| D | CommandBufferJump.cpp | 516 int index = 0; in DrawFrame() local 517 modelViewCommand[index++] = 0x80000004; in DrawFrame() 518 modelViewCommand[index++] = 0x000f02c0; in DrawFrame() 524 modelViewCommand[index++] = *(unsigned*)&v; in DrawFrame() 526 modelViewCommand[index++] = 0x00ff02c1; in DrawFrame() 528 modelViewCommand[index++] = 0x00000000; // Pad the last four bytes of the burst. in DrawFrame() 529 if ((index & 2) == 0) in DrawFrame() 532 modelViewCommand[index++] = 0x00000000; in DrawFrame() 533 modelViewCommand[index++] = 0x00000200; in DrawFrame() 536 modelViewCommand[index++] = 0x00000001; in DrawFrame() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Api/FragmentLightingSimple/ |
| D | gx_FragmentLightingSimple.cpp | 269 for (u32 index = 0; index < LUT_TABLE_SIZE; index++) in InitializeD0Lut() local 271 lutArray[index] = 0.0f; in InitializeD0Lut() 363 for (u32 index = 0; index < MAX_LIGHT_NUM; index++) in UpdateLights() local 365 s_LightSphereArray[index].SetWorldPosition(s_LightArray[index].m_Position[0], in UpdateLights() 366 s_LightArray[index].m_Position[1], s_LightArray[index].m_Position[2]); in UpdateLights() 368 s_LightPhi[index] += s_LightDeltaPhi; in UpdateLights() 369 if ( s_LightPhi[index] > 360.0f ) in UpdateLights() 371 s_LightPhi[index] -= 360.0f; in UpdateLights()
|
| /CTR-SDK-4.2.7-SampleDemos/common/include/demo/Render/ |
| D | demo_DisplayBuffers.h | 72 GLuint GetDisplayBufferId(const u32 index) const;
|
| /CTR-SDK-4.2.7-SampleDemos/gx/Cmd/FragmentLightingSimpleCmd/ |
| D | gx_FragmentLightingSimpleCmd.cpp | 379 for (u32 index = 0; index < LUT_TABLE_SIZE; index++) in InitializeD0Lut() local 381 s_LutArray[index] = 0.0f; in InitializeD0Lut()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSpotAtte/ |
| D | LightingSpotAtte.cpp | 152 unsigned short index[] = in DrawPlane() local 159 glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, index); in DrawPlane()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/ |
| D | Gas.cpp | 96 GLushort index[4] = {0, 1, 2, 3}; in GasInitialize() local 99 glBufferData(GL_ELEMENT_ARRAY_BUFFER, 4 * sizeof(GLushort), &index[0], GL_STATIC_DRAW); in GasInitialize()
|
| /CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/shaders/ |
| D | VShader1.vsh | 40 #define CONSTANT c76 //starting register index for constant values
|