VASUDEVAN's picture

How to Load a Background Image in Game window using OpenTK?

I would like to load a Background image in Game window... (ie) I have to load Background image and behind that i have to load a object,, I have Loaded the object already.. now how can i load a background image? Also How can i Change the Background image dynamically


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

In OpenTK, you display graphics using OpenGL. OpenGL does not have a "BackgroundImage" property like WinForms.

Instead, you create an OpenGL texture and render a fullscreen-sized quad using that texture.

Example code: