i work on opengl and GPU programming for several month . i need to see a professional 3d code running that it run first on computer then on supercomputer … and 3 months search it on all of internet … but can’t found that be executable and be very very professional (it should have shader that source light and object that have action , for example one people that gait in inclination and have shader that change with gait)
ohh i think that i don’t explain completly thus i’m soory
i not want that anybody do my work . my project is not that write a program opengl , yea i should deliver one projct that exist on internet , but this program should be very very vocation .
i work with opengl (with c++) but i am not in level that write this program and my professor wan’t that i write yea he want that i found program that be prefect and i explain it .
when i run this code that have for you in previous topic , of
this two line:
gluTessCallback(tobj, GLU_BEGIN, glBegin);
gluTessCallback(tobj, GLU_VERTEX, glVertex2fv);
give error. and when i delete its , it run wrong .
You really need to learn how to ask for help.
I just downloaded this dinoshade.c and it compiled out of the box on my linux simply with :
gcc dinoshade.c -o dinoshade -lglut -lGL
what dev environment are you using ?
are you sure you set the project to C and not C++ ?
with the error message there must be the exact line number where it happens, which line is that ? Besides, it is not when you run it, it is when you compile it, big difference.
you can try to add an explicit cast if your compiler is very strict :