private void InitOpenGLResources() { String fragSource = Properties.Resources.ps_FrontBack; String vertSource = Properties.Resources.vs_FrontBack; shader_frontback = GLEx.CreateShaderProgramStrings(vertSource, fragSource); GL.ClearColor(0.0f, 0.0f, 0.0f, 0f); GL.Enable(EnableCap.DepthTest); // Setup VBO state GL.EnableClientState(ArrayCap.VertexArray); GL.EnableClientState(ArrayCap.IndexArray); try { codeText = new QFont("consolab.ttf", Properties.Resources.consolab, 10, FontStyle.Bold); } catch (System.Exception ex) { Debug.WriteLine(ex.ToString()); } GL.BindTexture(TextureTarget.Texture2D, 0); }
private void CreateShaders() { String fragSource = Properties.Resources.ps_FrontBack; String vertSource = Properties.Resources.vs_FrontBack; shader_frontback = GLEx.CreateShaderProgramStrings(vertSource, fragSource); }