PDA

View Full Version : Textures problem



Eddywards
10-18-2006, 07:10 AM
Please ! I dont manage to put textures on a sqaure or whatever you want in C++... Someone told me i could use SDL but i cant install it... Any ideas ?
Thanx

ce110ut
10-18-2006, 07:38 AM
Honestly, nobody can understand your seemingly frantic post. Please describe in detail [1] what you're trying to do and [2] what problems you've encountered.

k_szczech
10-19-2006, 02:23 AM
Have a look at http://nehe.gamedev.net
This is a great place for any OpenGL beginners.


nobody can understand your seemingly frantic postPlease speak for yourself :)

Eddywards
10-21-2006, 12:58 AM
yeah nice link thx a lot !
But ive stilla problem... In fact in the site,
there is no example for C++ under Mac OS X, so i tried to download a MacOS code, but ive a few problems to manage to get it working... I get 10 errors :
- main.cpp:181: error: 'FILE' was not declared in this scope
- main.cpp:181: error: 'file' was not declared in this scope
-main.cpp:184: error: 'fread' was not declared in this scope
(the same a few times of course...)
- main.cpp:185: error: 'memcmp' was not declared in this scope

and a few other ones... These problems only come from the function "GLvoid LoadGLTextures(GLvoid)"...

(Its the 6th lesson of NeHe's tutorials...)

Komat
10-21-2006, 04:35 AM
You did not include necessary headers. The file manipulation functions are declared within the <stdio.h> header. The memcmp is declared within <memory.h> or <string.h> headers.

Eddywards
10-26-2006, 02:27 AM
very nice thank you soooo much !
Just when i try to run it with Xcode, it launches the debugger but not my app !! Any ideas ?