コード例 #1
0
ファイル: GLUCube.cs プロジェクト: Wiladams/NewTOAPIA
        protected override void  RenderContent(GraphicsInterface gi)
        {
            int i;

            for (i = 5; i >= 0; i--) 
            {
                gi.Begin((BeginMode)fStyle);
                gi.Normal(n[i]);
                //gl.glNormal3fv(n[i]);
                gi.Vertex3(v[faces[i][0]]);
                gi.Vertex3(v[faces[i][1]]);
                gi.Vertex3(v[faces[i][2]]);
                gi.Vertex3(v[faces[i][3]]);
                gi.End();
            }
        }