示例#1
0
 public AxisSystem(SharpGLForm fp, float dim)
     : base(fp)
 {
     lenght     = dim;
     TexturaXOZ = new Texture();
     TexturaXOY = new Texture();
     TexturaZOY = new Texture();
     TexturaXOZ.Create(fp.GetGLForm(), "..\\..\\Texturas\\Fundo1.jpg");
     TexturaXOY.Create(fp.GetGLForm(), "..\\..\\Texturas\\Lateral.jpg");
     TexturaZOY.Create(fp.GetGLForm(), "..\\..\\Texturas\\Lateral.jpg");
     MessageBox.Show("Exisos!");
 }
示例#2
0
        public Cubo(SharpGLForm fp, float l, float dx, float dy, float dz,
                    float rotx, float roty, float rotz)
            : base(fp)
        {
            lado  = l;
            TX    = dx; TY = dy; TZ = dz;
            incrx = rotx; incry = roty; incrz = rotz;
            PC    = new Ponto[8];
            PC[0] = new Ponto(fp, 0.0f, 0.0f, 0.0f);
            PC[1] = new Ponto(fp, lado, 0.0f, 0.0f);
            PC[2] = new Ponto(fp, lado, lado, 0.0f);
            PC[3] = new Ponto(fp, 0, lado, 0.0f);

            PC[4]         = new Ponto(fp, 0.0f, 0.0f, lado);
            PC[5]         = new Ponto(fp, lado, 0.0f, lado);
            PC[6]         = new Ponto(fp, lado, lado, lado);
            PC[7]         = new Ponto(fp, 0, lado, lado);
            TexturaActiva = new Texture();
            TexturaActiva.Create(fp.GetGLForm(), "..\\..\\Texturas\\Crate.bmp");
        }