|
|
| Object ()=default |
| | Constructs an empty pipeline object; attributes become available after assignment from createObject().
|
| void | render (GLsizei p_instanceCount=1) |
| | Issues a draw call using the object's buffers and configured attributes.
|
| std::shared_ptr< spk::OpenGL::BufferSetObject > & | bufferSet () |
| | Provides mutable access to the buffer set associated with this object.
|
| const std::shared_ptr< spk::OpenGL::BufferSetObject > & | bufferSet () const |
| | Provides read-only access to the object's buffer set.
|
| void | setBufferSet (const std::shared_ptr< spk::OpenGL::BufferSetObject > &p_bufferSet) |
| | Replaces the buffer set used by this object.
|
| Attribute & | attribute (const std::wstring &p_name) |
| | Retrieves a named attribute configured on the pipeline.
|
| const Attribute & | attribute (const std::wstring &p_name) const |
| | Retrieves a named attribute configured on the pipeline.
|
Represents a drawable entity configured with pipeline attributes.
auto object = pipeline.createObject();
object.bufferSet()->vertexBufferObject().setData(vertices);
object.render();