Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [newbie alert] 2D drawing on top of canvas  (Read 1156 times)
0 Members and 1 Guest are viewing this topic.
Offline quintesse

Junior Member




Java games rock!


« Posted 2003-08-27 19:14:58 »

Any way to draw on top of the canvas? Does have to be the "proper" way of doing as long as it works, I only need it for frmae counting. I tried just doing drawString() to the GLCanvas.getGraphics() but the text isn't visible most of the time and when it does it only shows a fraction of a second.
Offline tortoise

Junior Member




<3 Shmups


« Reply #1 - Posted 2003-08-27 21:31:46 »

In my experience, you're gonna wanna stay over on the video hardware side of things. Mixing in AWT is problematic, and using GL calls like glDrawPixels() or glBitmap() can be painfully slow.

You might want to give this code snippet that Java Cool Dude posted a try:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1060061548
Offline quintesse

Junior Member




Java games rock!


« Reply #2 - Posted 2003-09-15 06:27:59 »

Works like a charm, thanks  Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (15 views)
2014-08-29 12:26:30

CopyableCougar4 (25 views)
2014-08-23 13:31:30

atombrot (38 views)
2014-08-20 03:29:53

Tekkerue (33 views)
2014-08-17 00:45:27

Tekkerue (32 views)
2014-08-17 00:22:17

Tekkerue (20 views)
2014-08-17 00:20:21

Tekkerue (29 views)
2014-08-17 00:12:11

Rayexar (66 views)
2014-08-11 20:49:23

BurntPizza (42 views)
2014-08-10 15:09:32

BurntPizza (34 views)
2014-08-08 20:01:56
List of Learning Resources
by Longor1996
2014-08-17 04:40:00

List of Learning Resources
by SilverTiger
2014-08-06 13:33:27

Resources for WIP games
by CogWheelz
2014-08-02 10:20:17

Resources for WIP games
by CogWheelz
2014-08-02 10:19:50

List of Learning Resources
by SilverTiger
2014-08-01 10:29:50

List of Learning Resources
by SilverTiger
2014-08-01 10:26:06

List of Learning Resources
by SilverTiger
2014-08-01 05:54:12

HotSpot Options
by dleskov
2014-07-08 19:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!