OpenGL/OpenTK C# give shapes different texture or shaders. Programming Software Development by Vin vin …;); window.Run(60.0f); } } } } Window.cs using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Input; using System; using System.Drawing; namespace… Re: OpenGL/OpenTK C# give shapes different texture or shaders. Programming Software Development by Vin vin this might help me: https://stackoverflow.com/questions/18580712/opentk-opengl-texture-not-drawing btw, I am going to use the newest version of opengl. I am not going to use the "using OpenTK.Graphics.OpenGL;", but the "using OpenTK.Graphics.OpenGL4;". Re: (C#) OpenTK adding basic shapes/textures and shaders Programming Game Development by Vin vin …;); window.Run(60.0f); } } } } Window.cs using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Input; using System; using System.Drawing; namespace… (C#) OpenTK adding basic shapes/textures and shaders Programming Game Development by Vin vin I am now learning OpenTK. I have some trouble learning how buffers, vectors and how … I have seen and read about it: https://github.com/opentk/LearnOpenTK https://github.com/giawa/opengl4tutorials https://www.youtube.com….blogspot.com/2017/01/opengl-4-with-opentk-in-c-part-1.html https://opentk.net/learn/index.html http://www.siltutorials… Re: OpenGL/OpenTK C# give shapes different texture or shaders. Programming Software Development by Vin vin an extra tutorial that I read about it is: http://neokabuto.blogspot.com/p/tutorials.html https://github.com/neokabuto/OpenTKTutorialContent Re: (C#) OpenTK adding basic shapes/textures and shaders Programming Game Development by Vin vin btw, if someones knows how to change the icon of the window, then tell me how, I am really curious how to set the icon for the window. Problem casting a returned structure Programming Software Development by Yamachi …") 'ModelLibrary = Assembly.LoadFrom("ShardM2.dll") GLView1.MakeCurrent() OpenTK.Graphics.GL.ClearColor(Color.SkyBlue) SetupViewport() AddHandler Application.Idle, AddressOf… OpenGL/OpenTK texture and blending issue Programming Game Development by The_Purple_Mask After the program passes the following code lines GL.Begin(BeginMode.Quads); { // passing arguments separately, for performance GL.TexCoord2(0, 0); GL.Vertex2(left, top); GL.TexCoord2(0, maxV); GL.Vertex2(left, bottom); GL.TexCoord2(maxU, maxV); GL.Vertex2(right, bottom); GL.TexCoord2(maxU, 0); GL.Vertex2(right, … Re: Audio mix/fade Programming Software Development by gusano79 …](http://en.wikipedia.org/wiki/OpenAL) (usable from .NET via [OpenTK](http://www.opentk.com/) and probably some other wrappers). Re: A multilingual coded Hello World! thread Programming Software Development by mawe … () [/code] And one with Tk: [code]open Tk let top = openTk () let l = Label.create top ~text:"Hello World"… Re: Problem casting a returned structure Programming Software Development by Teme64 In fact you have two different types. One Vertex type in your DLL namespace and another Vertex type in your main program's namespace. Since those are different types you can't do direct assignment. One way to get around "different types" problem could be following: [CODE=VB.NET]Dim VertObj As Object = DirectCast(method.Invoke(o, oo), … Re: Problem casting a returned structure Programming Software Development by Yamachi Hmm, I'm still getting the same error :S The strange thing is, when I look at the exception details, TargetSite -> Return Type = {Name = "Void" FullName = "System.Void"} >_O I know that VertArray is not null, so is it an issue that occurs when trying to return a structure object using method.invoke? P.S. Thanks for … Re: Problem casting a returned structure Programming Software Development by Teme64 No, that's not the problem. After [ICODE]Dim VertObj As Object = DirectCast(method.Invoke(o, oo), Object)[/ICODE] VertObj contains a System.Array. For the System.Array instances, IsArray returns False and GetElementType return Nothing, that's why [ICODE]Return Type = {Name = "Void" FullName = "System.Void"}[/ICODE] when you/I … Re: Problem casting a returned structure Programming Software Development by Yamachi Thanks for all your help :) I was thinking of trying it that way (1 structure that is shared between the two). I'll see what I can do. Again, thank you for all your help.