Geogram
Version 1.9.1
A programming library of geometric algorithms
|
Filters primitives based on their id and on an attribute. More...
#include <geogram_gfx/mesh/mesh_gfx.h>
Public Member Functions | |
bool | begin (AttributesManager &attributes_manager, bool hw_primitive_filtering=true) |
Begins rendering with primitive filtering. More... | |
void | end () |
Needs to be called after rendering. | |
void | deallocate () |
Deallocates GPU objects. | |
bool | test (index_t primitive_id) const |
Tests an individual primitive. More... | |
Public Attributes | |
std::string | attribute_name |
Attribute< Numeric::uint8 > | attribute |
GLuint | VBO |
GLuint | texture |
bool | dirty |
Filters primitives based on their id and on an attribute.
Definition at line 946 of file mesh_gfx.h.
bool GEO::MeshGfx::Filter::begin | ( | AttributesManager & | attributes_manager, |
bool | hw_primitive_filtering = true |
||
) |
Begins rendering with primitive filtering.
[in] | attributes_manager | a reference to the attributes manager where the property is stored |
[in] | hw_primitive_filtering | if set, uses hardware primitive fitering (GLUP_PRIMITIVES_FILTERING), else one may use the function test() instead. |
true | if attribute filtering is active, that is, if attribute name is not the empty string and if an the attribute exists |
false | otherwise |
|
inline |
Tests an individual primitive.
true | if the primitive should be displayed |
false | otherwise |
Definition at line 984 of file mesh_gfx.h.