////////////////////////////////////////////////////////////////////////////////// Copyright (c) 2011, Computer Graphics Group RWTH Aachen University //// All rights reserved. //////////////////////////////////////////////////////////////////////////////////#include <ACGL/OpenGL/Objects/UniformBuffer.hh>
{reserveMemory(_shaderProgram->getUniformBlockSize(_uboName));setUniformOffsets(_shaderProgram->getUniformOffsetsOfBlock(_uboName));// to enable intuitive setUniform functionsbindBufferBase(_shaderProgram->getUniformBlockBinding(_uboName));// bind the UBO to the binding point where the shader expects it}