This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-01-26 18:53:58

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Graphics in Java or C++

Can anyone help me learn to program graphics in either Java or C++ (I don't care which) without having to download an external plug-in or framework or engine or something?  My computer recognizes Graphics and Graphics2D classes in Java, and I know that my computer support OpenGL, but I don't know if I really NEED GLUT to make things work.  I'm used to not using common tools.

Offline

 

#2 2012-01-26 19:12:03

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Graphics in Java or C++

Tell me if you find something. I was looking for the same thing.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#3 2012-01-27 10:00:41

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Graphics in Java or C++

nickbrickmaster wrote:

Tell me if you find something. I was looking for the same thing.

Or you could just check this topic every once in a while.

Offline

 

#4 2012-01-27 10:01:49

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Graphics in Java or C++

Java has it built in, C++ needs a library.

Offline

 

#5 2012-01-27 11:00:28

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: Graphics in Java or C++

If you want really basic (and I mean DOS like) graphics, try <graphics.h> in Turbo C++ (There's also a port for Dev C++).
For some rudimentary graphics (2D sprites), sound,keyboard and mouse support you could try HIVE.
http://hiveforwindows.tripod.com/
Other wise, SDL or OpenGL are better.

Offline

 

#6 2012-01-27 11:15:01

piggy12345
Scratcher
Registered: 2010-12-05
Posts: 26

Re: Graphics in Java or C++

Get eclipse (http://eclipse.org/), it helps A LOT! Also, if you can get "Java All-in-One for Dummies"! (Available irl or as an e-book!) It helps TONS! If you need anymore hep just comment on one of my project  wink


http://mcserverstatus.com/serverprofileimage/6980/Minecraft-banner-2.jpg

Offline

 

#7 2012-01-27 14:46:26

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Graphics in Java or C++

piggy12345 wrote:

Get eclipse (http://eclipse.org/), it helps A LOT! Also, if you can get "Java All-in-One for Dummies"! (Available irl or as an e-book!) It helps TONS! If you need anymore hep just comment on one of my project  wink

So far, I've been fine with TextEdit, and I use Xcode occasionally, and I don't really feel that I need a book when I have Google.  I just want a straight answer about how to do this.

Last edited by maxskywalker (2012-01-27 14:47:08)

Offline

 

#8 2012-01-27 15:21:40

piggy12345
Scratcher
Registered: 2010-12-05
Posts: 26

Re: Graphics in Java or C++

maxskywalker wrote:

piggy12345 wrote:

Get eclipse (http://eclipse.org/), it helps A LOT! Also, if you can get "Java All-in-One for Dummies"! (Available irl or as an e-book!) It helps TONS! If you need anymore hep just comment on one of my project  wink

So far, I've been fine with TextEdit, and I use Xcode occasionally, and I don't really feel that I need a book when I have Google.  I just want a straight answer about how to do this.

The book helps tons! I can't explain it well.


http://mcserverstatus.com/serverprofileimage/6980/Minecraft-banner-2.jpg

Offline

 

#9 2012-01-27 15:44:12

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Graphics in Java or C++

Not completely on-topic, but can someone help me get javac to work from command line? I've tried editing the PATH variable and everything, but it still doesn't work.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#10 2012-01-27 20:37:36

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Graphics in Java or C++

16Skittles wrote:

Not completely on-topic, but can someone help me get javac to work from command line? I've tried editing the PATH variable and everything, but it still doesn't work.

Javac never worked for me either. I have to type in the file path to use it.
"C:\program files\java\bin\javac.exe"
Use quotes if there are spaces.
Make sure that you are at the correct file which contains the .java file first.
You command should look something like this.
C:\Users\username\Documents\ "C:\program files\java\bin\javac.exe" myjavaprogram.java


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#11 2012-01-27 23:57:16

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Graphics in Java or C++

what-the wrote:

16Skittles wrote:

Not completely on-topic, but can someone help me get javac to work from command line? I've tried editing the PATH variable and everything, but it still doesn't work.

Javac never worked for me either. I have to type in the file path to use it.
"C:\program files\java\bin\javac.exe"
Use quotes if there are spaces.
Make sure that you are at the correct file which contains the .java file first.
You command should look something like this.
C:\Users\username\Documents\ "C:\program files\java\bin\javac.exe" myjavaprogram.java

Ugh that seems like a chore. Also, isn't Javac located in C:/Program Files (x86 (on windows 7))/java/jdk(version number)/bin/javac.exe?


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

Board footer