Skip to main content
gamedev.net
🔒 Locked

Just some compile errors

Started by mehoron 3 replies 350+ views
Original Post
mehoron
mehoron
Terrain.cpp(164) : error C2065: ''glTextCoord2f'' : undeclared identifier Terrain.cpp(183) : error C2065: ''glColor'' : undeclared identifier Terrain.cpp(188) : error C2065: ''waterHeight'' : undeclared identifier I get these errors and its only with these certain tags there are other tags just like these i dont get that error with. anyone know the problem? "Game design requiers an open mind. In this biz there are endless possibilitys, and the same, one thing, can be seen from millions of angles."
"Game design requiers an open mind. In this biz there are endless possibilitys, and the same, one thing, can be seen from millions of angles."
HellRaiZer
HellRaiZer
Assuming that you didn''t typed those errors by hand in your post, and you copy-paste them, then :

Change :
1) glTextCoord2f -> glTexCoord2f. There is no TextCoord in OGL
2) glColor -> glColor3f.
3) About waterHeight, i don''t know. Just check the spelling.

HellRaiZer
HellRaiZer
mehoron
mehoron
	glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f);
glVertex3f(terrain[0][0][0], waterHeight, terrain[0][0][2]);

glTexCoord2f(10.0f, 0.0f);
glVertex3f(terrain[MAP_X-1][0][0], waterHeight, terrain[MAP_X-1][0][2]);

glTexCoord2f(10.0, 10.0f);
glVertex3f(terrain[MAP_X-1][MAP_Z-1][0], waterHeight, terrain[MAP_X-1][MAP_Z-1][2]);

glTexCoord2f(0.0, 10.0f);
glVertex3f(terrain[0][MAP_Z-1][0], waterHeight, terrain[0][MAP_Z-1][2]);


Thats the code i have the error is only in the first one so far.

"Game design requiers an open mind. In this biz there are endless possibilitys, and the same, one thing, can be seen from millions of angles."
"Game design requiers an open mind. In this biz there are endless possibilitys, and the same, one thing, can be seen from millions of angles."
HellRaiZer
HellRaiZer
Doesn''t the above changes (previous post) solved the first two errors?

HellRaiZer
HellRaiZer
mehoron
mehoron
yea it does, but just have the waterHeight error....as for now my only problems now are these


warning C4018: ''<'' : signed/unsigned mismatch
(205) : warning C4244: ''='' : conversion from ''double'' to ''float'', possible loss of data
(206) : warning C4244: ''='' : conversion from ''double'' to ''float'', possible loss of data
"Game design requiers an open mind. In this biz there are endless possibilitys, and the same, one thing, can be seen from millions of angles."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.