Hot answers tagged

2

OpenTK is discouraging the use of immediate mode. But it is still supported. To use it, you need to set NativeWindowSettings.Profile to ContextProfile.Compatability. That is, you want an entry point that looks something like this: using OpenTK.Windowing.Common; using OpenTK.Windowing.Desktop; namespace tktest2 { internal static class Program { ...


1

a[i] contains the values 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 in some random order. So when you use that as the index into texture, you're only ever loading textures into the first 10 locations in the texture array. To see this more clearly, comment out the code between step 3 & step 4 and then manually step through the code in step 4. What you have ...


Only top voted, non community-wiki answers of a minimum length are eligible