[gameprogrammer] Re: textured shapes and 3d objects.



Yasser Gonzalez escribió:
I mean to draw a circle and fill it with an image instead a color.
With VC++ it could be easier if you made the image as part of a resource file (.res). I want to load the image from file and fill the circle (or polygon) with it. How I do it??
Again, Nehe texture tutorial. It is very basic. Also, you cant fill a circle, GL (and also Direct 3D) works with non-convex polygons. I guess a trick could be to have a circular image with a transparent out of circle area and apply it to a polygon.

Use openGL or SDL is only the way??? I don't think so.
You should use both. SDL is used to initialize screen and manage events. GL is used for drawing primitives. All Nehe tutorials have an SDL version that runs in both Linux and Windows. Give me a couple of days and I will make some basic example for you. Also Im sending you by mail a simple demo in SDL that loads a bmp and moves it, commented in spanish.


--
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can’t take the sky from me

                
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m�es desde 1 c�imo por minuto. http://es.voice.yahoo.com

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: