Skip to content

InvalidOperation in OpenGL Tutorials/Tutorial 1.3 - Textures #1969

Closed Answered by bamfbamf
bamfbamf asked this question in Q&A
Discussion options

You must be logged in to vote

Here is fully modified code of the tutorial, that properly passes error checking:

using System;
using System.Drawing;
using System.IO;
using Silk.NET.Maths;
using Silk.NET.Windowing;
using Silk.NET.OpenGL;
using StbImageSharp;

// Textures!
// In this tutorial, you'll learn how to load and render textures.

namespace Tutorial
{
    public class Program
    {
        private static IWindow _window;
        private static GL _gl;

        private static uint _vao;
        private static uint _vbo;
        private static uint _ebo;

        private static uint _program;

        private static uint _texture;

        public static void Main(string[] args)
        {
            WindowOptions o…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bamfbamf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
1 participant
Converted from issue

This discussion was converted from issue #1968 on March 04, 2024 15:47.