We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeBuffer
Currently the AttributeBuffer's render method takes an array of tuples to specify the layout of the attributes.
render
Maybe we should have a separate class for doing this, e.g. AttributeBuffer.Layout that takes a sequence of name and size tuples:
AttributeBuffer.Layout
AttributeBuffer.Layout( "position" -> 3, // or even some datatype describing vec3, at some point "normal" -> 3, "textureCoord" -> 2 )
This layout should be the constructor parameter for the AttributeBuffer.
When the buffer is used with a particular shader, which attributes are used should be specified explictily:
// cached somewhere val myShaderAttributes = List("position", "textureCoord") // during rendering buffer.render(mode, myShaderAttributes)
From the myShaderAttributes list and the Layout, the render call should set the appropriate attribute buffer pointers.
myShaderAttributes
Layout
The text was updated successfully, but these errors were encountered:
@storm-enroute-bot
Sorry, something went wrong.
No branches or pull requests
Currently the
AttributeBuffer
'srender
method takes an array of tuples to specify the layout of the attributes.Maybe we should have a separate class for doing this, e.g.
AttributeBuffer.Layout
that takes a sequence of name and size tuples:This layout should be the constructor parameter for the
AttributeBuffer
.When the buffer is used with a particular shader, which attributes are used should be specified explictily:
From the
myShaderAttributes
list and theLayout
, therender
call should set the appropriate attribute buffer pointers.The text was updated successfully, but these errors were encountered: