OpenGL TransformFeedback Object.
More...
#include <TransformFeedback.hpp>
|
static void | unbind () |
| Unbinds any currently bound TransformFeedback object (back to the default one (0)). More...
|
|
static void | begin (Primitive primitiveType=Primitive::Triangles) |
| Begins a transform feedback operation, using the currently bound container object (TFO, default (0) is a valid option). More...
|
|
static void | end () |
| Ends a transform feedback operation. More...
|
|
static void | pause () |
| Pauses a transform feedback operation. More...
|
|
static void | resume () |
| Resumes a transform feedback operation. More...
|
|
static void | draw (Primitive primitiveType, GLuint transformFeedbackObject) |
| Wrapper arround glDrawTransformFeedback. More...
|
|
static void | drawInstanced (Primitive primitiveType, GLuint transformFeedbackObject, GLuint instanceCount) |
| Wrapper arround glDrawTransformFeedbackInstanced. More...
|
|
static void | drawStream (Primitive primitiveType, GLuint transformFeedbackObject, GLuint stream) |
| Wrapper arround glDrawTransformFeedbackStream. More...
|
|
static void | drawStreamInstanced (Primitive primitiveType, GLuint transformFeedbackObject, GLuint stream, GLuint instanceCount) |
| Wrapper arround glDrawTransformFeedbackStreamInstanced. More...
|
|
static void | enableRasterization () |
| Enable rasterization (default behavior). More...
|
|
static void | disableRasterization () |
| Disable rasterization (useful for TransformFeedback). More...
|
|
TransformFeedback::TransformFeedback |
( |
| ) |
|
|
default |
TransformFeedback::~TransformFeedback |
( |
| ) |
|
Begins a transform feedback operation, using the currently bound container object (TFO, default (0) is a valid option).
- Parameters
-
primitiveType | Type of primitives captured by the transform feedback. Must be Points, Lines or Triangles (default). |
- See also
- end
void TransformFeedback::bind |
( |
| ) |
const |
|
inline |
void TransformFeedback::bindBuffer |
( |
GLuint |
index, |
|
|
const Buffer & |
buffer, |
|
|
GLintptr |
offset = 0 , |
|
|
GLsizeiptr |
size = 0 |
|
) |
| |
Binds the specified buffer to index for this TransformFeedback Object.
Note: This effectively binds the TransformFeedback Object (calls bind()).
- Parameters
-
index | Binding Point |
buffer | Buffer to bind |
offset | Starting offset in basic machine unit (optional, default: 0) |
size | Amount of data in machine unit to bind (optional, default: 0, means the entire buffer) |
- See also
- bind()
void TransformFeedback::cleanup |
( |
| ) |
|
|
overridevirtual |
void TransformFeedback::disableRasterization |
( |
| ) |
|
|
inlinestatic |
Disable rasterization (useful for TransformFeedback).
- Todo:
- Move this elsewhere ? (If we have a context class one day...)
- See also
- GL_RASTERIZER_DISCARD
void TransformFeedback::draw |
( |
Primitive |
primitiveType | ) |
const |
|
inline |
Draw using this transform feedback.
- Parameters
-
primitiveType | Type of primitives to draw. |
void TransformFeedback::draw |
( |
Primitive |
primitiveType, |
|
|
GLuint |
transformFeedbackObject |
|
) |
| |
|
inlinestatic |
Wrapper arround glDrawTransformFeedback.
- Parameters
-
primitiveType | Type of primitives to draw. |
transformFeedbackObject | Name of a TransformFeedback Object from which to retrieve a primitive count (0 for the default one is a valid value). |
void TransformFeedback::drawInstanced |
( |
Primitive |
primitiveType, |
|
|
GLuint |
instanceCount |
|
) |
| const |
|
inline |
Draw using this transform feedback.
- Parameters
-
primitiveType | Type of primitives to draw. |
instanceCount | Number of instances to draw. |
void TransformFeedback::drawInstanced |
( |
Primitive |
primitiveType, |
|
|
GLuint |
transformFeedbackObject, |
|
|
GLuint |
instanceCount |
|
) |
| |
|
inlinestatic |
Wrapper arround glDrawTransformFeedbackInstanced.
- Parameters
-
primitiveType | Type of primitives to draw. |
transformFeedbackObject | Name of a TransformFeedback Object from which to retrieve a primitive count (0 for the default one is a valid value). |
instanceCount | Number of instances to draw. |
void TransformFeedback::drawStream |
( |
Primitive |
primitiveType, |
|
|
GLuint |
stream |
|
) |
| const |
|
inline |
Draw using this transform feedback.
- Parameters
-
primitiveType | Type of primitives to draw. |
stream | Stream transform buffer from which to retrieve a primitive count. |
void TransformFeedback::drawStream |
( |
Primitive |
primitiveType, |
|
|
GLuint |
transformFeedbackObject, |
|
|
GLuint |
stream |
|
) |
| |
|
inlinestatic |
Wrapper arround glDrawTransformFeedbackStream.
- Parameters
-
primitiveType | Type of primitives to draw. |
transformFeedbackObject | Name of a TransformFeedback Object from which to retrieve a primitive count (0 for the default one is a valid value). |
stream | Stream transform buffer from which to retrieve a primitive count. |
- Todo:
- add overload for Buffer (instead of raw stream).
void TransformFeedback::drawStreamInstanced |
( |
Primitive |
primitiveType, |
|
|
GLuint |
stream, |
|
|
GLuint |
instanceCount |
|
) |
| const |
|
inline |
Draw using this transform feedback.
- Parameters
-
primitiveType | Type of primitives to draw. |
stream | Stream transform buffer from which to retrieve a primitive count. |
instanceCount | Number of instances to draw. |
void TransformFeedback::drawStreamInstanced |
( |
Primitive |
primitiveType, |
|
|
GLuint |
transformFeedbackObject, |
|
|
GLuint |
stream, |
|
|
GLuint |
instanceCount |
|
) |
| |
|
inlinestatic |
Wrapper arround glDrawTransformFeedbackStreamInstanced.
- Parameters
-
primitiveType | Type of primitives to draw. |
transformFeedbackObject | Name of a TransformFeedback Object from which to retrieve a primitive count (0 for the default one is a valid value). |
stream | Stream transform buffer from which to retrieve a primitive count. |
instanceCount | Number of instances to draw. |
- Todo:
- add overload for Buffer (instead of raw stream).
void TransformFeedback::enableRasterization |
( |
| ) |
|
|
inlinestatic |
Enable rasterization (default behavior).
- Todo:
- Move this elsewhere ? (If we have a context class one day...)
- See also
- GL_RASTERIZER_DISCARD
void TransformFeedback::end |
( |
| ) |
|
|
inlinestatic |
Ends a transform feedback operation.
- See also
- begin
void TransformFeedback::init |
( |
| ) |
|
|
overridevirtual |
void TransformFeedback::pause |
( |
| ) |
|
|
inlinestatic |
Pauses a transform feedback operation.
void TransformFeedback::resume |
( |
| ) |
|
|
inlinestatic |
Resumes a transform feedback operation.
void TransformFeedback::unbind |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: