I am currently working my way through βGetting Started in C #β and run into a problem in Chapter 7 when drawing textures.
I used the same code as on the demo CD, and although I had to change the texture path to be absolute, it appears gray when rendering.
I debugged the program for writing the loaded texture to the file, and this is normal - there are no problems. So something after this happens wrong.
Here are some code snippets:
public void InitializeGraphics() {
I can not understand what is happening here. Obviously, if I load the texture into the windows, it displays normally - so there is something wrong with the code examples in the book. This really doesn't work, and there must be something wrong with my environment presumably.
source share