Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The Lightweight Java Game Library (LWJGL) provides access to high performance, cross-platform libraries OpenGL and OpenAL. Additionally LWJGL provides access to controllers such as Gamepads, Steering wheel and Joysticks.
0
votes
1
answer
70
views
glDrawElements not acting as expected
code
Vertices are created by an .obj file. (loading/OBJFile.java)
I draw a cube perfectly fine with glDrawArrays. (VertexModel.java)
created like this:
new VertexModel(square.getIndexedVertexBuff …
3
votes
3
answers
942
views
glDrawElements/Arrays not working
Given the following OpenGL call stack.
According to my knowlegde, the calls to glDrawElements/Arrays are ok.(?)
But, they do not draw anything. (There is no triangle)
The calls to glBegin() and glVe …
1
vote
Accepted
glDrawElements/Arrays not working
Turns out LWJGL does not allow the use of .wrap() to create a FloatBuffer?
Use BufferUtils.createFloatBuffer(), then put() and flip().
Ive created an issue on their github to see the answer …