Home
last modified time | relevance | path

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

/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingVertex/
DLightingVertex.cpp83 #define COL_NUM (50) /* NUM in COLUMN */ macro
85 #define deltaCOL (2 * DMP_PI / (COL_NUM - 1))
88 GLfloat pos[ROW_NUM * COL_NUM][3];
89 GLfloat nor[ROW_NUM * COL_NUM][3];
91 GLushort s_Idx[COL_NUM * (ROW_NUM - 1) * 2];
106 for(int col = 0; col < COL_NUM; col++) in LoadSphere()
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()
[all …]
/CTR-SDK-4.2.7-SampleDemos/demo2/
Dgraphics.cpp68 #define COL_NUM (50) /* NUM in COLUMN */ macro
70 #define deltaCOL (2 * DMP_PI / (COL_NUM - 1))
73 GLfloat pos[ROW_NUM * COL_NUM][3];
74 GLfloat nor[ROW_NUM * COL_NUM][3];
76 GLushort s_Idx[COL_NUM * (ROW_NUM - 1) * 2];
99 for(int col = 0; col < COL_NUM; col++) in LoadSphere()
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()
[all …]