VCV Rack API
v2
Loading...
Searching...
No Matches
OpenGlWidget.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
widget/FramebufferWidget.hpp
>
3
4
5
namespace
rack
{
6
namespace
widget {
7
8
10
struct
OpenGlWidget
:
FramebufferWidget
{
14
void
step
()
override
;
18
void
drawFramebuffer
()
override
;
19
};
20
21
22
}
// namespace widget
23
}
// namespace rack
FramebufferWidget.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::widget::FramebufferWidget
Caches its children's draw() result to a framebuffer image.
Definition
FramebufferWidget.hpp:12
rack::widget::OpenGlWidget
A FramebufferWidget that can be drawn on with OpenGL commands.
Definition
OpenGlWidget.hpp:10
rack::widget::OpenGlWidget::drawFramebuffer
void drawFramebuffer() override
Draws to the framebuffer.
rack::widget::OpenGlWidget::step
void step() override
Draws every frame by default Override this and call FramebufferWidget::step() to restore the default ...
include
widget
OpenGlWidget.hpp
Generated by
1.12.0