Beispiel #1
0
        public OpenGLRenderContext()
        {
            try
            {
                _colorShader = new ColorShader();
                _colorShader.Build();

                _textureShaderA8 = new TextureShaderA8();
                _textureShaderA8.Build();

                _textureShaderRGBA = new TextureShaderRGBA();
                _textureShaderRGBA.Build();

                _textureShaderRGB = new TextureShaderRGB();
                _textureShaderRGB.Build();

                _textureShaderSDF = new TextureShaderSDF();
                _textureShaderSDF.Build();

                _textureShaderStencil = new TextureShaderStencil();
                _textureShaderStencil.Build();
            }
            catch (OpenGLException e)
            {
                Console.WriteLine($"error: {e.Message}");
                throw new ApplicationException();
            }
        }