Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Ro

[java] Using a Windows GDI function and Java

This topic is 6915 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a library that was built for outputing to the Windows GDI. I was wondering if it''s at all possible for redirecting the graphics output to a Java frame? Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
I''m guessing you are the type of person that likes challenges...

This is a little out of my league, but I did run across the fact that Sun''s newly released 1.3 SDK has new C headers to allow native code to access AWT components. I suppose this includes the Frame component. You might be able to write something that would intercept the calls from the graphics library and translate them into the neccesary instructions to render to the Frame (an ''Adapter'' pattern construct).

Even if it''s ''possible'' this doesn''t seem very ''feasible'' = (

Share this post


Link to post
Share on other sites
Yup, doesn''t sound too feasible. You didn''t say in you message, but do you have some specific reason for doing this "render to java.awt.Frame" thing? Why don''t you just use JNI (Java Native Interface) to interface your Java code to your native code library. That way you can have the library code as it is and just use it from the Java side.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!