Add gfx::draw_buffer
This commit is contained in:
parent
73711b8ffa
commit
20574e23e3
1 changed files with 12 additions and 0 deletions
|
|
@ -79,4 +79,16 @@ namespace psemek::gfx
|
||||||
explicit framebuffer(std::nullptr_t);
|
explicit framebuffer(std::nullptr_t);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <typename ... Args>
|
||||||
|
void draw_buffers(Args ... args)
|
||||||
|
{
|
||||||
|
GLenum buffers[] = {args...};
|
||||||
|
gl::DrawBuffers(sizeof...(Args), buffers);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void draw_buffers()
|
||||||
|
{
|
||||||
|
gl::DrawBuffers(0, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue