Commit 6b3ae696 authored by Janis Born's avatar Janis Born

add LocationMappingsControl, LocationMappingsNameManager

parent 17dc9832
......@@ -37,5 +37,6 @@
#include <ACGL/OpenGL/Controller/VertexArrayObjectControlFile.hh>
#include <ACGL/OpenGL/Controller/UniformControl.hh>
#include <ACGL/OpenGL/Controller/ViewportControl.hh>
#include <ACGL/OpenGL/Controller/LocationMappingsControl.hh>
#endif // ACGL_OPENGL_CONTROLLER_HH
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012, Computer Graphics Group RWTH Aachen University //
// All rights reserved. //
////////////////////////////////////////////////////////////////////////////////
#ifndef ACGL_OPENGL_CONTROLLER_LOCATIONMAPPINGSCONTROL_HH
#define ACGL_OPENGL_CONTROLLER_LOCATIONMAPPINGSCONTROL_HH
#include <ACGL/ACGL.hh>
#include <ACGL/Resource/BasicCreateController.hh>
#include <ACGL/OpenGL/Data/LocationMappings.hh>
#include <ACGL/OpenGL/GL.hh>
namespace ACGL{
namespace OpenGL{
class LocationMappingsControl : public Resource::BasicCreateController<LocationMappings>
{
// ========================================================================================================= \/
// ============================================================================================ CONSTRUCTORS \/
// ========================================================================================================= \/
public:
LocationMappingsControl() {}
virtual ~LocationMappingsControl() {}
// ==================================================================================================== \/
// ============================================================================================ METHODS \/
// ==================================================================================================== \/
public:
// ===================================================================================================== \/
// ============================================================================================ OVERRIDE \/
// ===================================================================================================== \/
public:
virtual SharedLocationMappings create()
{
return SharedLocationMappings(new LocationMappings());
}
// =================================================================================================== \/
// ============================================================================================ FIELDS \/
// =================================================================================================== \/
protected:
};
} // OpenGL
} // ACGL
#endif // ACGL_OPENGL_CONTROLLER_RENDERBUFFERCONTROL_HH
......@@ -55,6 +55,8 @@ typedef Resource::NameManager<UniformTexture> UniformTextureNameManager;
typedef Resource::NameManager<Viewport> ViewportNameManager;
typedef Resource::NameManager<LocationMappings> LocationMappingsNameManager;
#if (ACGL_OPENGL_VERSION >= 30)
typedef Resource::NameManager<RenderObject> RenderObjectNameManager;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment