please
-
The program in OpenGL with Texture just didnot work in my cimputer,which work well in others' computer. where is the crux,any help is appreciated. The code is in the former message.
I can't give a good answer for this, but I can comiserate: If I use a rectangle to exclude an area from a Graphics drawing area in C#, on some machines it also excludes the pixel before and the pixel after the intended exclude area, but only for the horizontal axis. Same video chip set on all machines, various drivers. I just worked around it, but what a pain.
Silver member by constant and unflinching longevity.
-
The program in OpenGL with Texture just didnot work in my cimputer,which work well in others' computer. where is the crux,any help is appreciated. The code is in the former message.
From your code, it looked like the program gets the texture from a separate file. Did you copy the texture file to your computer along with the .exe?
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
-
From your code, it looked like the program gets the texture from a separate file. Did you copy the texture file to your computer along with the .exe?
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
-
First! Thanks for you help! then, how could i copy the texture file to my compter along with the .exe! I could not understand you say.
Hi, it looks like
pFile = fopen("桌面.bmp", "rb");
is opening an image file; so you need to have that present next to your EXE file. one way is to copy the files manually (you probably only copied the EXE so far); another way (more complex) would be to create an installer; and finally you could turn the BMP file into a resource, that would then be stored inside the EXE (that requires some code changes to use it). :)Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages