[gameprogrammer] Re: textured shapes and 3d objects.
- From: Roger D Vargas <luo_hei@xxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Fri, 23 Mar 2007 14:07:15 -0500
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
- Follow-Ups:
- [gameprogrammer] Re: textures
- From: Yasser Gonzalez
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: Jason Zaphyr
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: bhrigu pandey
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: bhrigu pandey
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: bhrigu pandey
- References:
- [gameprogrammer] Free textures
- From: Breton Julien
- [gameprogrammer] Re: drwing shapes
- From: Yasser Gonzalez
- [gameprogrammer] Re: drwing shapes
- From: Scott Harper
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: Yasser Gonzalez
Other related posts:
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
- » [gameprogrammer] Re: textured shapes and 3d objects.
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??
Use openGL or SDL is only the way??? I don't think so.
- [gameprogrammer] Re: textures
- From: Yasser Gonzalez
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: Jason Zaphyr
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: bhrigu pandey
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: bhrigu pandey
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: bhrigu pandey
- [gameprogrammer] Free textures
- From: Breton Julien
- [gameprogrammer] Re: drwing shapes
- From: Yasser Gonzalez
- [gameprogrammer] Re: drwing shapes
- From: Scott Harper
- [gameprogrammer] Re: textured shapes and 3d objects.
- From: Yasser Gonzalez