PDA

View Full Version : texturing under os X



Eddywards
09-30-2006, 10:06 PM
please could anybody help me, im trying to texture a triangle with a tga, or jpg or whatever you want under OS X (10.4.8).

thanx in advance !

Frogblast
10-01-2006, 12:52 PM
You haven't described where your problem is. Are you having difficulty loading the image data (from where? disk?), or actually creating the GL texture object?

Eddywards
10-01-2006, 02:03 PM
both ! thats why i didnt specify ! :(

Brolingstanz
10-01-2006, 06:16 PM
http://www.rush3d.com/reference/opengl-redbook-1.1/chapter09.html

arekkusu
10-02-2006, 07:49 AM
Mac-specific documentation (http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/chapter_10_section_1.html#//apple_ref/doc/uid/TP40001987-CH407-SW1) .

Eddywards
10-02-2006, 12:32 PM
yeah thank you so much guys !
But i m programming in C++ ! None of the links you gave me talka bout c++ OpengL for mac...
Could any of you post a sample of a program written in C++ usin OpenGL and texturing... lets say a triangle please ?

Brolingstanz
10-02-2006, 01:05 PM
http://www.c-for-dummies.com/

10-03-2006, 12:00 PM
interesting link... but i do know C++ !

darkrappey
10-03-2006, 05:37 PM
No ofence. calm down...

I recomend a library called SDL. SDL allows you to use openGL on any OS with out porting the code.

http://www.libsdl.org/download-1.2.php

To set up SDL I recomend the tutorials from:
http://lazyfooproductions.com/SDL_tutorials/index.php

I also recomend nehe.gamedev.net.
At the buttom of many of their tutorials you will find a version of the code for SDL. They have plenty of tutorials on making triangles and texturing.

If you any problems trying to do wat you are trying to do, tell us specifcally wat you are having problems with.

Eddywards
10-04-2006, 05:44 AM
okay thank you very much !!

Eddywards
10-18-2006, 06:17 AM
there is one prob .. I dont manage to install it...

Eddywards
10-26-2006, 01:28 AM
no more problem...