Home
last modified time | relevance | path

Searched refs:s_Vtx (Results 1 – 2 of 2) sorted by relevance

/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingVertex/
DLightingVertex.cpp90 } s_Vtx; variable
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()
136 glBufferData(GL_ARRAY_BUFFER, sizeof(s_Vtx), &s_Vtx, GL_STATIC_DRAW); in LoadSphere()
/CTR-SDK-4.2.7-SampleDemos/demo2/
Dgraphics.cpp75 } s_Vtx; variable
102s_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()
104s_Vtx.pos[row * COL_NUM + col][2] =0.5f * (GLfloat)nn::math::SinRad(deltaROW * row) * nn::math::Si… in LoadSphere()
106s_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()
108s_Vtx.nor[row * COL_NUM + col][2] =0.5f * (GLfloat)nn::math::SinRad(deltaROW * row) * nn::math::Si… in LoadSphere()
129 glBufferData(GL_ARRAY_BUFFER, sizeof(s_Vtx), &s_Vtx, GL_STATIC_DRAW); in LoadSphere()