コード例 #1
0
        public GluSphere(CubeMapTexture texture, Vector3f position, float radius, int slices)
        {
            this.texture  = texture;
            this.position = position;
            this.radius   = radius;
            this.slices   = slices;

            quad = Glu.gluNewQuadric();

            Glu.gluQuadricNormals(quad, Glu.GLU_SMOOTH);                // Create Smooth Normals ( NEW )
            Glu.gluQuadricTexture(quad, Gl.GL_TRUE);                    // Create Texture Coords ( NEW )
            Glu.gluQuadricDrawStyle(quad, Glu.GLU_FILL);

            angle  = 0.0f;
            x_axis = 0.0f;
            y_axis = 0.0f;
            z_axis = 0.0f;
        }
コード例 #2
0
ファイル: GluSphere.cs プロジェクト: hyyly/teslagame
        public GluSphere(CubeMapTexture texture, Vector3f position, float radius, int slices)
        {
            this.texture = texture;
            this.position = position;
            this.radius = radius;
            this.slices = slices;

            quad = Glu.gluNewQuadric();

            Glu.gluQuadricNormals(quad, Glu.GLU_SMOOTH);	// Create Smooth Normals ( NEW )
            Glu.gluQuadricTexture(quad, Gl.GL_TRUE);		// Create Texture Coords ( NEW )
            Glu.gluQuadricDrawStyle(quad, Glu.GLU_FILL);

            angle  = 0.0f;
            x_axis = 0.0f;
            y_axis = 0.0f;
            z_axis = 0.0f;
        }
コード例 #3
0
 public SkyBox(CubeMapTexture texture)
 {
     this.texture = texture;
 }