| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,25 @@ |
| 1 |
+#include <string> |
|
| 2 |
+ |
|
| 3 |
+#include <glbase.hpp> |
|
| 4 |
+#include <globject.hpp> |
|
| 5 |
+ |
|
| 6 |
+ |
|
| 7 |
+struct GLObjectTest : protected GLObject<GL_TEXTURE> |
|
| 8 |
+{
|
|
| 9 |
+ explicit GLObjectTest(std::string const & label) |
|
| 10 |
+ : |
|
| 11 |
+ GLObject(label) |
|
| 12 |
+ {}
|
|
| 13 |
+}; |
|
| 14 |
+ |
|
| 15 |
+ |
|
| 16 |
+int main() |
|
| 17 |
+{
|
|
| 18 |
+ static_assert( |
|
| 19 |
+ sizeof(GLObjectTest) == sizeof(GLuint), |
|
| 20 |
+ "GLObject must be the same size as GLuint" |
|
| 21 |
+ ); |
|
| 22 |
+ |
|
| 23 |
+ GLBase::debug(2); |
|
| 24 |
+ GLObjectTest("Test object");
|
|
| 25 |
+} |