public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Import Static and LWJGL
@ 2017-09-28 10:39 Peter
  2017-09-28 13:38 ` Per Bothner
  0 siblings, 1 reply; 2+ messages in thread
From: Peter @ 2017-09-28 10:39 UTC (permalink / raw)
  To: kawa mailing list

Hello ;)

I'm fooling around with LWJGL (https://www.lwjgl.org/guide), which puts
the OpenGL functions as static methods into objects like GL11, GL15,
GL30 (depending on in which OpenGL version they were introduced).

On the homepage (link above), they suggest using "import static
org.lwjgl.opengl.GL11.*" etc. to handle this gracefully. Is there a way
to achieve this effect in kawa? Can I somehow import all static methods
of GL11 into my (interaction-environment)?

Thanks for any help!

Greetings, Peter

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Import Static and LWJGL
  2017-09-28 10:39 Import Static and LWJGL Peter
@ 2017-09-28 13:38 ` Per Bothner
  0 siblings, 0 replies; 2+ messages in thread
From: Per Bothner @ 2017-09-28 13:38 UTC (permalink / raw)
  To: Peter, kawa mailing list

On 09/28/2017 03:39 AM, Peter wrote:

> I'm fooling around with LWJGL (https://www.lwjgl.org/guide), which puts
> the OpenGL functions as static methods into objects like GL11, GL15,
> GL30 (depending on in which OpenGL version they were introduced).
> 
> On the homepage (link above), they suggest using "import static
> org.lwjgl.opengl.GL11.*" etc. to handle this gracefully. Is there a way
> to achieve this effect in kawa? Can I somehow import all static methods
> of GL11 into my (interaction-environment)?

Hopefully this will give you some ideas:
https://www.gnu.org/software/kawa/FAQs.html


-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-28 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28 10:39 Import Static and LWJGL Peter
2017-09-28 13:38 ` Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).