2 quick questions
I have two unrelated questions that I can''t seem to figure out. First, I was going to use the terrain engine at fatech.com and experiment with it.. But when I try to compile it, I get the error "..include\stdlib.h(249): error C2381: ''exit'' : redefinition; __declspec(noreturn) differs ...include\gl\glut.h(140) : see declaration of ''exit''"
I''ve linked glut.lib, is there something else I need linked?
Secondly, if instead of doing a simple RTS in 3D, how would I set the 45 degree angle to view the playing field in DirectDraw? I''m surely missing something here.. Do you have to use 3D to do this, or do you just use flat tiles and make slanted images?
Thanks,
Calypso
The first error is a redefinition error - if it''s from code you''re writting it usually means your prototype/forward declaration doesn''t match up to the actually code it found.
Since that redefintion error is from glut (which is likely tested & proven code) it''s probably not a declaration/definition problem - but a conflict of header files; in this case between an exit function in stdlib.h and an exit function in glut.h
It seems very odd to me that the authors of glut would have named a function "exit". You need to trace down where the bonus exit definition is.
...
If you want a 45o view using 2D graphics then you have to draw everything from a 45o view - which involves a little more than just skewing the images in order to make them look right.
If you make a 3D game, then you need 3D models for everything; but then you can move the view around all you''d like.
Since that redefintion error is from glut (which is likely tested & proven code) it''s probably not a declaration/definition problem - but a conflict of header files; in this case between an exit function in stdlib.h and an exit function in glut.h
It seems very odd to me that the authors of glut would have named a function "exit". You need to trace down where the bonus exit definition is.
...
If you want a 45o view using 2D graphics then you have to draw everything from a 45o view - which involves a little more than just skewing the images in order to make them look right.
If you make a 3D game, then you need 3D models for everything; but then you can move the view around all you''d like.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement