Textures problem

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

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.

Have a look at http://nehe.gamedev.net
This is a great place for any OpenGL beginners.

nobody can understand your seemingly frantic post
Please speak for yourself :slight_smile:

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…)

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.

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 ?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.