Exemplo n.º 1
0
        public TextRenderer(GLGraphicsContext context, int height, int width, String text)
        {
            this.text = text;

            texture = context.NewEmptyTexture(OpenTK.Graphics.OpenGL.TextureMinFilter.Linear, OpenTK.Graphics.OpenGL.TextureMagFilter.Linear,
                OpenTK.Graphics.OpenGL.TextureWrapMode.ClampToBorder, OpenTK.Graphics.OpenGL.TextureWrapMode.ClampToBorder,
                width, height,
                OpenTK.Graphics.OpenGL.PixelFormat.Rgba, OpenTK.Graphics.OpenGL.PixelType.UnsignedByte);

            texRenderer = new TextureRenderer(context, texture);

            Resize (width, height);
        }