Questions tagged [lwjgl]

The Lightweight Java Game Library (LWJGL) allows access to high performance crossplatform libraries such as OpenGL, OpenCL and OpenAL to write state of the art 2D and 3D applications with Java.

The Lightweight Java Game Library (LWJGL) is an open source Java software library for computer game developers. In particular, it provides an interface for accessing OpenGL, OpenCL, OpenAL and GLFW functionality.

3245 questions
35
votes
8 answers

java and libGDX / LWJGL game fullscreen wrong size for multiple monitors on Ubuntu

I'm working on a libGDX (library on top of LWJGL) game project, and use the Intellij IDEA IDE from several different workstations: Windows 7 x64 laptop with two displays (1920x1080 and 1600x1200), nVidia GT540M. Ubuntu 12.04 LTS on a laptop with…
Shad
  • 576
  • 6
  • 7
32
votes
2 answers

Slick2D vs Straight LWJGL

I've been delving into game programming with Slick2D, and I've began to wonder if in the long run, knowing LWJGL would be more helpful. On one hand, Slick2D is fast and simple, but it seems LWJGL is more adaptable in the sense that it has both 2D…
platypirates
  • 331
  • 1
  • 4
  • 5
30
votes
4 answers

Is there a Clojure wrapper for (modern) OpenGL?

The only thing I found was Penumbra, which seems to wrap OpenGL 1.1, which I don't care for in the least. It doesn't really have to do anything fancy, a wrapper around LWJGL that exposes OpenGL 3.3/core or OpenGL 4.x/core in a single namespace would…
Cubic
  • 14,902
  • 5
  • 47
  • 92
24
votes
2 answers

How to view memory usage in eclipse (beginner)

I have been working on a game in java using eclipse for a few months now and I have been trying to figure out how to view the memory usage and what is using the most memory. Can anyone please give me a step by step answer on how I would go about…
chooky1441
  • 269
  • 1
  • 2
  • 5
23
votes
4 answers

Getting 'java.lang.UnsatisfiedLinkError': no lwjgl in java.library.path

Note this is different from this question because it does not deal with linking because it's not asking how to link it via the CLI, but the GUI in Eclipse. I have been trying to write a simple program using LWJGL. When I add the library to Eclipse…
Nic
  • 6,211
  • 10
  • 46
  • 69
20
votes
2 answers

How to set the application icon for a libGDX desktop application?

I am trying to setup an application icon from the -desktop specific class with: package org.osgameseed.games.animalflip; import com.badlogic.gdx.Files; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import…
João Pinto
  • 5,521
  • 5
  • 21
  • 35
17
votes
1 answer

What does the -XstartOnFirstThread VM Argument do / mean?

I can't find documentation for the VM argument -XstartOnFirstThread. Seems necessary for me to run JOGL through LWJGL on my Mac. What does it mean? It seems to be that some process wants thread 0. Is this correct? Please note: I have a run() method…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
17
votes
2 answers

Converting quadriladerals in an OBJ file into triangles?

At first, it seemed obvious... Make 2 triangles per face wherever 4 indices were found, right? Meaning, the following: v 1.000000 1.000000 0.000000 v -1.000000 1.000000 -0.000000 v 1.000000 -1.000000 0.000000 v -1.000000 -1.000000 -0.000000 f -4 -3…
RectangleEquals
  • 1,825
  • 2
  • 25
  • 44
16
votes
4 answers

LWJGL port to android

Is there a LWJGL port for Android available? (does not matter if the phone needs to rooted)
Deniz Zoeteman
  • 9,691
  • 26
  • 70
  • 97
16
votes
2 answers

How to resolve this JNI error when trying to run LWJGL "Hello World"?

I'm trying to run the sample "Hello World" from the LWJGL website From this link: LWJGL "Getting Started" I'm trying to do this via the command line, just so I understand the "behind the scenes" a bit better. I've managed to compile without any…
yoonsi
  • 754
  • 3
  • 10
  • 23
16
votes
1 answer

OpenGL fbo blitting inconsistent between Intel and Nvidia

I am rendering a scene in OpenGL in a low resolution into a framebuffer. Then I intend to draw this version onto the whole screen (upscaled with GL_NEAREST). I do this using texture blitting (glBlitFramebuffer). On my Nvidia GPU this works, but when…
Jannis Froese
  • 1,347
  • 2
  • 10
  • 23
16
votes
2 answers

LWJGL Textures and Strings

Is it possible to load PNG Textures and draw Strings in LWJGL WITHOUT using the Slick Framework? Everytime I google "how to load png images in lwjgl" I get answers like this -> "hey just use the textureloader from the slick framework". Same for…
Michael Malura
  • 1,131
  • 2
  • 13
  • 30
14
votes
1 answer

Horrible performance loss when using Opengl FBO

I have successfully implemented a simple 2-d game using lwjgl (opengl) where objects fade away as they get further away from the player. This fading was initially implemented by computing distance to origin of each object from the player and using…
Scarzzurs
  • 191
  • 8
14
votes
2 answers

Exporting Eclipse project causes incorrect texturing and crashes,

This issue is now fixed. My shader attributes were not bound correctly. I have got a game, which when ran from the IDE looks like this: However, when I export it from Eclipse with these settings, The texturing is completely incorrect. The textures…
Joehot200
  • 1,070
  • 15
  • 44
13
votes
1 answer

Javafx Platform.runLater never running

I basically want to be able to launch a new Javafx window (stage) after (and inside) my LWJGL/GLFW thread starts. I am basically doing: Thread thread = new Thread(()->Platform.runLater(()->{ Stage stage = new Stage(); //Stage setup …
user2513924
  • 2,070
  • 3
  • 15
  • 23
1
2 3
99 100