Home
last modified time | relevance | path

Searched refs:row (Results 1 – 3 of 3) sorted by relevance

/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingVertex/
DLightingVertex.cpp104 for(int row = 0; row < ROW_NUM; row++) in LoadSphere() local
109 s_Vtx.pos[row * COL_NUM + col][0] =(GLfloat)sin(deltaROW * row) * cos(deltaCOL * col); in LoadSphere()
110 s_Vtx.pos[row * COL_NUM + col][1] =(GLfloat)cos(deltaROW * row); in LoadSphere()
111 s_Vtx.pos[row * COL_NUM + col][2] =(GLfloat)sin(deltaROW * row) * sin(deltaCOL * col); in LoadSphere()
113 s_Vtx.nor[row * COL_NUM + col][0] =(GLfloat)sin(deltaROW * row) * cos(deltaCOL * col); in LoadSphere()
114 s_Vtx.nor[row * COL_NUM + col][1] =(GLfloat)cos(deltaROW * row); in LoadSphere()
115 s_Vtx.nor[row * COL_NUM + col][2] =(GLfloat)sin(deltaROW * row) * sin(deltaCOL * col); in LoadSphere()
120 for(int i = 0, row = 0; row < ROW_NUM - 1; row++) in LoadSphere() local
125 s_Idx[i++] = __INDEX(row + 1, col); in LoadSphere()
126 s_Idx[i++] = __INDEX(row, col); in LoadSphere()
/CTR-SDK-4.2.7-SampleDemos/demo2/
Dgraphics.cpp97 for(int row = 0; row < ROW_NUM; row++) in LoadSphere() local
102 …s_Vtx.pos[row * COL_NUM + col][0] =0.5f * (GLfloat)nn::math::SinRad(deltaROW * row) * nn::math::Co… in LoadSphere()
103 s_Vtx.pos[row * COL_NUM + col][1] =0.5f * (GLfloat)nn::math::CosRad(deltaROW * row); in LoadSphere()
104 …s_Vtx.pos[row * COL_NUM + col][2] =0.5f * (GLfloat)nn::math::SinRad(deltaROW * row) * nn::math::Si… in LoadSphere()
106 …s_Vtx.nor[row * COL_NUM + col][0] =0.5f * (GLfloat)nn::math::SinRad(deltaROW * row) * nn::math::Co… in LoadSphere()
107 s_Vtx.nor[row * COL_NUM + col][1] =0.5f * (GLfloat)nn::math::CosRad(deltaROW * row); in LoadSphere()
108 …s_Vtx.nor[row * COL_NUM + col][2] =0.5f * (GLfloat)nn::math::SinRad(deltaROW * row) * nn::math::Si… in LoadSphere()
113 for(int i = 0, row = 0; row < ROW_NUM - 1; row++) in LoadSphere() local
118 s_Idx[i++] = __INDEX(row + 1, col); in LoadSphere()
119 s_Idx[i++] = __INDEX(row, col); in LoadSphere()
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Utility/
Ddemo_TextureConverter.cpp117 for (s32 row = 0; row < textureInformation.blocksInCol; row++) in ConvertGLTextureToNative() local
123 ReadBlock(row * textureInformation.blocksInRow + col, blockBuf, &textureInformation); in ConvertGLTextureToNative()
125 WriteBlock(row * textureInformation.blocksInRow + col, blockBuf, &textureInformation); in ConvertGLTextureToNative()
163 u32 row = (no / textureInformation->blocksInRow); in ReadBlock() local
181 (row * TEXTURE_PIXELS_IN_BLOCK * pixelByte * textureInformation->blocksInRow) + in ReadBlock()
198 u32 row = (no / textureInformation->blocksInRow); in WriteBlock() local
212 … ((textureInformation->blocksInCol - row - 1) * TEXTURE_PIXELS_IN_BLOCK * pixelByte * in WriteBlock()
218 (row * TEXTURE_PIXELS_IN_BLOCK * pixelByte * textureInformation->blocksInRow) + in WriteBlock()
233 … ((textureInformation->blocksInCol - row - 1) * textureInformation->blocksInRow + column) * in WriteBlock()