This class represents the Program object in GPU memory.
More...
#include <Luminous/ProgramGL.hpp>
This class represents the Program object in GPU memory.
| LUMINOUS_API Luminous::ProgramGL::ProgramGL |
( |
StateGL & |
state, |
|
|
const Program & |
program |
|
) |
| |
Constructor.
- Parameters
-
| state | OpenGL state |
| program | program object in CPU |
| LUMINOUS_API Luminous::ProgramGL::ProgramGL |
( |
ProgramGL && |
program | ) |
|
Move constructor.
- Parameters
-
| program | program object to move |
| LUMINOUS_API int Luminous::ProgramGL::attributeLocation |
( |
const QByteArray & |
name | ) |
|
Get the location of the given attribute.
- Parameters
-
- Returns
- index of the attribute location or -1 if not found
| LUMINOUS_API void Luminous::ProgramGL::bind |
( |
const Program & |
program | ) |
|
Bind the program optinally linking it.
- Parameters
-
| program | program object on CPU |
| LUMINOUS_API void Luminous::ProgramGL::link |
( |
const Program & |
program | ) |
|
Link the program.
- Parameters
-
| program | program object on CPU |
Move assignment operator.
- Parameters
-
| program | program object to move |
| LUMINOUS_API int Luminous::ProgramGL::uniformBlockLocation |
( |
const QByteArray & |
blockname | ) |
|
Get the location of the given uniform block.
- Parameters
-
| blockname | uniform block name |
- Returns
- index of the location of the uniform block or -1 if not found
| LUMINOUS_API int Luminous::ProgramGL::uniformLocation |
( |
const QByteArray & |
name | ) |
|
Get the location of the given uniform.
- Parameters
-
| name | uniform name to query |
- Returns
- index of the uniform location or -1 if not found
| LUMINOUS_API const VertexDescription& Luminous::ProgramGL::vertexDescription |
( |
| ) |
const |
|
inline |
Get the vertex description associated with the program.
- Returns
- vertex description