OGLplus (0.52.0) a C++ wrapper for OpenGL

name.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_OBJECT_NAME_1107121519_HPP
14 #define OGLPLUS_OBJECT_NAME_1107121519_HPP
15 
16 #include <oglplus/fwd.hpp>
18 #include <oglplus/object/tags.hpp>
19 
20 namespace oglplus {
21 
22 typedef ObjectName<tag::Renderbuffer> RenderbufferName;
23 typedef ObjectName<tag::Framebuffer> FramebufferName;
24 typedef ObjectName<tag::Texture> TextureName;
25 typedef ObjectName<tag::Buffer> BufferName;
26 typedef ObjectName<tag::Query> QueryName;
27 typedef ObjectName<tag::ProgramPipeline> ProgramPipelineName;
28 typedef ObjectName<tag::Program> ProgramName;
29 typedef ObjectName<tag::TransformFeedback> TransformFeedbackName;
30 typedef ObjectName<tag::Sampler> SamplerName;
31 typedef ObjectName<tag::VertexArray> VertexArrayName;
32 typedef ObjectName<tag::Shader> ShaderName;
33 typedef ObjectName<tag::PerfMonitorAMD> PerfMonitorAMDName;
34 typedef ObjectName<tag::PathNV> PathNVName;
35 
37 template <typename ObjTag>
38 inline GLuint GetGLName(ObjectName<ObjTag> named)
39 {
40  return GetName(named);
41 }
42 
43 } // namespace oglplus
44 
45 #endif // include guard
Forward declarations.
GLuint GetGLName(ObjectName< ObjTag > named)
Returns the GLuint OpenGL name assigned to named object.
Definition: name.hpp:38
GL Object tag types.
ObjTag::NameType GetName(ObjectName< ObjTag >)
Returns the base name assigned to named object.
Definition: name_tpl.hpp:128
Base template for all "named" objects.
A common template for "named" objects like textures, buffers, etc.
Definition: fwd.hpp:136

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).