Skip to content
Snippets Groups Projects
Commit 112e3c42 authored by BATON Theau's avatar BATON Theau
Browse files

Set VBO Geometry as STATIC

parent 30ca5343
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
namespace megu {
FrameBufferGroup::FrameBufferGroup()
: _vbo(this->_vao, Plane::Layout(), Plane::Vertices().size()) {
: _vbo(this->_vao, Plane::Layout(), Plane::Vertices().size(), megu::EditMode::STATIC) {
megu::Source vert("assets/shaders/FrameBuffer-Instanced.vert", Source::Categorie::VERTEX);
this->_program.attach(vert);
......
......@@ -4,22 +4,21 @@
namespace megu {
ImageGroup::ImageGroup()
: _vbo(this->_vao, Quads::Layout(), 400) {
{
: _vbo(this->_vao, Quads::Layout(), Quads::Vertices().size(), megu::EditMode::STATIC) {
Source vert("assets/shaders/Image-Instanced-Fat.vert", Source::Categorie::VERTEX);
this->_program.attach(vert);
Source frag("assets/shaders/Texture-Fat.frag", Source::Categorie::FRAGMENT);
this->_program.attach(frag);
this->_program << vert;
this->_program << frag;
this->_program.link();
this->_vbo << Quads::Vertices();
vert.release();
frag.release();
}
this->_vbo << Quads::Vertices();
}
void ImageGroup::add(const Image & image) {
this->_images.insert(image);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment