示例#1
0
        /// <summary>
        /// Initialise
        /// </summary>
        public void Initialise()
        {
            // Clear Color
            GL.ClearColor(0.2f, 0.2f, 0.2f, 1f);

            m_Demo01.Initialise();
            m_Demo02.Initialise();
        }
示例#2
0
        /// <summary>
        /// Initialise
        /// </summary>
        public override void Initialise()
        {
            base.Initialise();

            m_TriangleDemo.Initialise();

            m_Shader.Initialise();

            // create a frame buffer object.
            GL.GenFramebuffers(1, out m_Fbo);
            GL.GenTextures(1, out m_FboColorTexture);
            GL.GenRenderbuffers(1, out m_FboDepthBuffer);

            // create FBO
            InitialiseFBO();

            // create buffers for displaying cube.
            GL.GenBuffers(1, out m_CubBuffer);

            // Load buffers for display FBO texture
            LoadBuffers();
        }