#include <program.h>
Definition at line 121 of file program.h.
◆ AtomicCounter()
Definition at line 191 of file program.cpp.
193 glBindBuffer(GL_ATOMIC_COUNTER_BUFFER,
handle);
194 glBufferData(GL_ATOMIC_COUNTER_BUFFER,
sizeof(GLuint),
nullptr, GL_STATIC_DRAW);
static void check(const std::string &info)
◆ ~AtomicCounter()
AtomicCounter::~AtomicCounter |
( |
| ) |
|
◆ set()
void AtomicCounter::set |
( |
unsigned int |
value | ) |
|
Definition at line 204 of file program.cpp.
206 glBindBuffer(GL_ATOMIC_COUNTER_BUFFER,
handle);
207 data = (GLuint*)glMapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0,
sizeof(GLuint),
208 GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT | GL_MAP_UNSYNCHRONIZED_BIT);
210 glUnmapBuffer(GL_ATOMIC_COUNTER_BUFFER);
◆ AbstractProgram
◆ handle
handle_t Beatmup::GL::AtomicCounter::handle |
|
private |
The documentation for this class was generated from the following files: