27 lines
615 B
C++
27 lines
615 B
C++
|
|
#include <Magnum/GL/DefaultFramebuffer.h>
|
||
|
|
#include <Magnum/Platform/Sdl2Application.h>
|
||
|
|
|
||
|
|
using namespace Magnum;
|
||
|
|
|
||
|
|
class Chocolate: public Platform::Application {
|
||
|
|
public:
|
||
|
|
explicit Chocolate(const Arguments& arguments);
|
||
|
|
|
||
|
|
private:
|
||
|
|
void drawEvent() override;
|
||
|
|
};
|
||
|
|
|
||
|
|
Chocolate::Chocolate(const Arguments& arguments): Platform::Application{arguments} {
|
||
|
|
/* TODO: Add your initialization code here */
|
||
|
|
}
|
||
|
|
|
||
|
|
void Chocolate::drawEvent() {
|
||
|
|
GL::defaultFramebuffer.clear(GL::FramebufferClear::Color);
|
||
|
|
|
||
|
|
/* TODO: Add your drawing code here */
|
||
|
|
|
||
|
|
swapBuffers();
|
||
|
|
}
|
||
|
|
|
||
|
|
MAGNUM_APPLICATION_MAIN(Chocolate)
|