[gui4gl-devel] [patch] Image Widget

  • From: "Gertjan Assies" <Gertjan.Assies@xxxxxxxxxxxxxx>
  • To: <gui4gl-devel@xxxxxxxxxxxxx>
  • Date: Mon, 26 Jan 2004 21:45:52 +0100

Daar in het 'splash' window van BDash steeds de text 'insert splash
image here' verscheen 

besloot ik in de trein vanmiddag aan een image widget te beginnen

 

hier is de patch

 

Usage:

 

Ergens in je window class :

 

Image i = new Image(_lTextureID);

i.setBounds(0, 0, 400, 160);

add(i);

 

** _lTextureID is de integer die de glGenTextures() function teruggeeft

 

 

en in je ThemeConfig class:

 

Theme.setValue(Image.class, "renderer", new ImageRenderer());

 

That's it

 

 

very funny scotty, now beam down my clothes

Gertjan Assies

 




BackStream(R)
Willem de Zwijgerlaan 350-352
1055 RD Amsterdam
The Netherlands
tel. +31 20 386 8365
fax +31 20 386 8948 

Post Office Address: 
Postbus 58385
1040 HJ Amsterdam

BackStream: The Digital Delivery Company
www.backstream.com

This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified 
that no part of the e-mail or any attachment may be disclosed, copied or 
distributed, and that any other action related to this e-mail or attachment is 
strictly prohibited, and may be unlawful. If you have received this e-mail by 
error, please notify the sender immediately by return e-mail, and delete this 
message. BackStream, its subsidiaries and/or its employees shall not be liable 
for the incorrect or incomplete transmission of this e-mail or any attachments, 
nor responsible for any delay in receipt.

Other related posts:

  • » [gui4gl-devel] [patch] Image Widget