Click here to Skip to main content
15,891,375 members
Articles / Multimedia / OpenGL

Creating a Window - Building a 3D Engine

Rate me:
Please Sign up or sign in to vote.
3.67/5 (4 votes)
7 Feb 2009CPOL4 min read 50.4K   2K   35  
This article describes the creation of an OpenGL window or OpenGL control with C# and Tao Framework
namespace AGE_Engine3D
{
    partial class OpenGLControl
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // OpenGLControl
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "OpenGLControl";
            this.Size = new System.Drawing.Size(497, 334);
            this.Load += new System.EventHandler(this.OpenGLControl_Load);
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.OpenGLControl_Paint);
            this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OpenGLControl_KeyUp);
            this.Resize += new System.EventHandler(this.OpenGLControl_Resize);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OpenGLControl_KeyDown);
            this.ResumeLayout(false);

        }

        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer Lea+Elliott, Inc.
United States United States
I am a licensed Electrical Engineer at Lea+Elliott, Inc. We specialize in the planning, procurement and implementation of transportation systems, with special emphasis on automated and emerging technologies.

Comments and Discussions