A common template for "named" objects like textures, buffers, etc. More...
#include </home/chochlik/devel/oglplus/include/oglplus/object/name_tpl.hpp>
Public Member Functions | |
ObjectName (void) | |
Constructs wrapper for name 0 (zero). | |
ObjectName (NameT name) | |
Constructs wrapper for the specified name . | |
Friends | |
NameT | GetName (ObjectName) |
Returns the base name assigned to named object. | |
bool | operator== (ObjectName a, ObjectName b) |
Equality comparison. | |
bool | operator!= (ObjectName a, ObjectName b) |
Inequality comparison. | |
bool | operator< (ObjectName a, ObjectName b) |
Ordering. | |
A common template for "named" objects like textures, buffers, etc.
This is a common template for all GL/AL/VG/etc. object wrappers which are identified by a (uint typed) name, i.e. object like Textures, Buffer, VAOs, Queries, etc. but also Shaders, Programs, and so on. ObjectName
adds static object type information and allows to distinguish between objects of different type with the same name value.