Managers.hh 1.01 KB
Newer Older
1
/***********************************************************************
2
 * Copyright 2011-2013 Computer Graphics Group RWTH Aachen University. *
3 4 5
 * All rights reserved.                                                *
 * Distributed under the terms of the MIT License (see LICENSE.TXT).   *
 **********************************************************************/
Robert Menzel's avatar
Robert Menzel committed
6

7
#pragma once
8 9 10 11

/*
 * A shortcut to include all manager of OpenGL objects.
 */
Robert Menzel's avatar
Robert Menzel committed
12 13

#include <ACGL/ACGL.hh>
14
#include <ACGL/OpenGL/Objects.hh>
Robert Menzel's avatar
Robert Menzel committed
15 16 17 18 19 20
#include <ACGL/Resource/NameManager.hh>
#include <ACGL/Resource/FileManager.hh>

namespace ACGL{
namespace OpenGL{

21
// useful for automatically updating shader programs:
22
typedef Resource::MultiFileManager<ShaderProgram> ShaderProgramFileManager;
23 24 25 26

// same for meshes:
typedef Resource::FileManager<VertexArrayObject> VAOFileManager;

27 28 29
// for simple 2D (mip-mapped) textures
typedef Resource::FileManager<Texture2D> Texture2DFileManager;

30
// used internally:
31 32
typedef Resource::FileManager<Shader> ShaderFileManager;

Robert Menzel's avatar
Robert Menzel committed
33 34 35
} // OpenGL
} // ACGL