0
ポイントスキャッタをLWJGLに表示しようとしています。しかし、LWJGLがポイント・サイズを設定したり、スプライトを追加する方法を見つけることができません。ポイントサイズまたはポイントスプライトをLWJGLで調整する
インターネットで見つけたチュートリアルは、すべてC++ OpenGLバインディングを使用しています。どの方法を使うのか分かりません。
シーンをレンダリングするために呼び出されるメソッドです。何とかポイントサイズを設定するコマンドを含める必要があります。
public void loopCycle() {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
GL20.glUseProgram(pId);
// Bind to the VAO that has all the information about the vertices
GL30.glBindVertexArray(vaoId);
GL20.glEnableVertexAttribArray(0);
GL20.glEnableVertexAttribArray(1);
// Draw the vertices and adjust size....
GL11.glDrawArrays(GL11.GL_POINTS, 0, vertexCount);
// Put everything back to default (deselect)
GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, 0);
GL20.glDisableVertexAttribArray(0);
GL20.glDisableVertexAttribArray(1);
GL30.glBindVertexArray(0);
GL20.glUseProgram(0);
}