Advertisement

Help!!!!!!!

Started by October 16, 2001 06:37 PM
3 comments, last by Bravolino 23 years, 1 month ago
My computer keeps saying "Press any key..." where''s the any key? I can''t find it. I have cereal(crtl), alt, and a flying window! where''s teh anykey??!?!!?!?!?!?! Hehe. but seriously, i was wondering how do i use the methods in api''s like directx and OPenGl in Java? doesanyone know? thanx p.s. i have all the tutorials by Nehe, so i don''t need links to them, i need to know how to call them in Java
Ehm... somebody else can correct me if I''m wrong, but:

You can''t use DirectX in Java, period, as far as I know. Java is designed as a cross-platform language, but DirectX libraries are only available on windoze machines. Beyond that, the code for DX would probably have to be greatly altered and then changed into java-style libraries.

I don''t know, but I don''t think OpenGL is supported in Java yet. It seems like I read somewhere that the Java SDK 1.4 would introduce support for OGL, but it''s not there yet.

So if you want to use 3d in java, you''ll probably have to use the java 3d libraries for now.
WNDCLASSEX Reality;......Reality.lpfnWndProc=ComputerGames;......RegisterClassEx(&Reality);Unable to register Reality...what's wrong?---------Dan Uptonhttp://0to1.orghttp://www20.brinkster.com/draqza
Advertisement
OpenGL is unofficially supported via GL4Java. In NeHe''s tutorials, at the bottom of the pages are Java versions of the code.
-- Supercytro
quote: Original post by Supercytro
OpenGL is unofficially supported via GL4Java. In NeHe''s tutorials, at the bottom of the pages are Java versions of the code.


JDK 1.4 officially supports OpenGL, doesn''t it?
WNDCLASSEX Reality;......Reality.lpfnWndProc=ComputerGames;......RegisterClassEx(&Reality);Unable to register Reality...what's wrong?---------Dan Uptonhttp://0to1.orghttp://www20.brinkster.com/draqza
There''s nothing that prevents you to write native methods (C or C++ code) that wraps DirectX.

But the easiest way to use DirectX in Java is simply to use Java3D. This is a huge scene management API and it is really great. It is portable because you can have the Java3D API in two flavor, Direct3D and OpenGL. You download the right binaries for the API (OGL or D3D) but the interfaces are the same..

Anyway have a look at Sun''s site.

This topic is closed to new replies.

Advertisement