Creating a texture with the whole text for each business card would be slow and take up a lot of texture memory. Instead you should create one texture that has all the characters needed from the font. To draw the whole text for any business card you then, for each character of that text, use a pair of triangles with texture coordinates such that they display one character from the texture. There are countless tools and tutorials out there for doing text in OpenGL in this manner.
Similarly, to have the photo on one half of the card and the text on the other, you would just use more triangles, or in your case, pairs of triangles to make rectangles. The card is one large rectangle, perhaps not even textured, just colored white to start with. Then a smaller rectangle in front of that to show the picture. This rectangle needs to be drawn with the texture object with the picture bound and have the texture coordinates to show the picture. Then on the other half a bunch of small rectangles for each character of the text, also in front of the large rectangle that makes up the card. This ones needs the texture object with the font bound, although that can be the same one if you are using an atlas texture and all photos and font characters happen to fit into it. On Apr 20, 2:41 am, tina lincon <tina.theresalin...@wipro.com> wrote: > any idea??? > > On Apr 15, 4:47 pm, Yahel <kaye...@gmail.com> wrote: > > > > > Sorry to be that guy.... > > > Most people on the list including me are not native english speakers. > > > Your text seems to be in some kind of text message gibberish, can you > > try that again ? > > > Yahel > > > On 15 avr, 12:45, tina lincon <tina.theresalin...@wipro.com> wrote: > > > > Hi, > > > I'm presently working with 3d contacts in open gles..the contact > > > photos are being takn frm contacts via content provider and is being > > > displayed as 3d contacts like a stack of cards....d pattern is wrking > > > fine but presently in my application,the whole contact photo is being > > > mapped into one square using texturing.What i want is to have a > > > buisinesscardlike effect for my application like the photo size shud > > > reduce n come on left side and on the right side of thecardi shud > > > have the details like name,phoneno,email,ringtone,officeno > > > etc..........since der is image n text to b textured @ d same time in > > > a single square or rectangle,shud i use the concept of multitexturing > > > for this or is der any other simpler way todesignthecardin open > > > gles???pls help me out. > > > thanks in advance...- Hide quoted text - > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en