[Gambas-user] rendering text in a GLArea

terco IDE tercoide at ...67...
Sat Jan 11 02:28:45 CET 2014


> >> Le 10/01/2014 16:56, terco IDE a ?crit :
> >>> Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL?
> >>>
> >>> tnx!
> >>>
> >>> Saludos
> >>> Martin
> >>>
> >>
> >> Look at the PdfPresentation example, it uses a GLArea. And I don't know
> >> what you mean by *not* using OpenGL to draw in a GLArea.
> >>
> >> --
> >> Beno?t Minisini
> >>
> >
> > funny, it's the only OpenGL example I can't run: program freezes while showing the Openfile dialog.
> 
> Indeed, with gb.gtk. But it works with gb.qt4...
> 
> > Tried this workaround:
> >
> > Dialog.Title = ("Select a PDF file")
> > Dialog.Filter = ["*.pdf", ("PDF files")]
> >    'If Dialog.OpenFile() Then Return   ' FREEZES HERE
> >    'workaround (its a valid path)
> >   sPath = User.home &/ "CIRSOC tablas de perfiles.pdf" 'Dialog.Path
> >   txtPath.Text = sPath
> >
> > but only shows a rotating cube with the gambas logo.
> 
> You must press the SPACE key then.
> 
> -- 
> Beno?t Minisini
> 

Just thougt about a little hidden Picturebox to print the text with usual methods and then past the image from memory into the GLArea when rendering. Do you think that would work?
 		 	   		  


More information about the User mailing list