Author Topic: Framework: A bunch of small LWJGL help classes...  (Read 6399 times)

Offline RedFlames

  • New Foal
  • *
  • Posts: 2
  • Blank flank
Framework: A bunch of small LWJGL help classes...
« on: 2012-October 05, 23:45:25 »
Nothing fancy here, but I guess I should post these anyways.

I'm not bothering with git right now, as these are 3 small java classes. So I just threw them into pastebin...

LWJGL_Texture.java
Loads an image as a texture and contains some basic values / functions.

LWJGL_Sprite.java
A simple Sprite class that loads a texture and can be pasted to the screen via a Quad.

LWJGL_Font.java
A very basic class for drawing text to the screen. I needed something, so this just loads a texture like this and does some U/V Coordinate magical thingymagik. I'd somehow not recommend this to anyone but me, as it is a pretty restricted font system xD

And that's all I have as a framework... *looks through old projects* Oh hey hold on, there's more useable stuff actually!

GameTime.java
Just a few functions to calculate the FPS and enable timer-based movement (sorta, I guess?)

Renderer.java
Wraps up the initialization of LWJGL and loads the font, gives you a "print" function and other stuff.


...These are mainly all there to make the main file less messy I guess.

Offline Hifagata

  • New Foal
  • *
  • Posts: 2
  • Blank flank
Re: Framework: A bunch of small LWJGL help classes...
« Reply #1 on: 2015-February 03, 11:12:11 »
I want everyone to get involved. Harmony and well.

Offline Gastoner

  • New Foal
  • *
  • Posts: 2
  • Blank flank
Re: Framework: A bunch of small LWJGL help classes...
« Reply #2 on: 2016-July 23, 10:27:16 »
Well done. It's so good for knowledge

Offline Chrsitavorius

  • New Foal
  • *
  • Posts: 2
  • Blank flank
Re: Framework: A bunch of small LWJGL help classes...
« Reply #3 on: 2018-January 25, 10:13:31 »
We need to post new posts for new members.