示例#1
0
        private void InitNoiseTexture()
        {
            if (texture3D == null)
            {
                texture3D = new CRawDataProcessor();
                texture3D.ReadFile("head256x256x109", 256, 256, 109);
            }

            this.NoiseTextureID = texture3D.GetTexture3D();
        }
示例#2
0
        public FormVolumeRendering00()
        {
            InitializeComponent();

            processor.ReadFile(textureFilename, 256, 256, 109);
            m_Renderer.Initialize(processor, m_pTransform);

            this.glCanvas1.MouseWheel += glCanvas1_MouseWheel;
            this.glCanvas1.KeyPress   += glCanvas1_KeyPress;
            this.glCanvas1.MouseDown  += glCanvas1_MouseDown;
            this.glCanvas1.MouseMove  += glCanvas1_MouseMove;
            this.glCanvas1.MouseUp    += glCanvas1_MouseUp;
            this.glCanvas1.OpenGLDraw += glCanvas1_OpenGLDraw;
            this.glCanvas1.Resize     += glCanvas1_Resize;
        }