rayjs/src/main.cpp

28 lines
636 B
C++
Raw Normal View History

2023-05-02 19:33:02 +00:00
#include <Magnum/GL/DefaultFramebuffer.h>
2023-05-03 09:57:23 +00:00
#include <Magnum/Platform/Sdl2Application.h>
2023-05-02 19:33:02 +00:00
using namespace Magnum;
2023-05-03 09:57:23 +00:00
class MyApplication: public Platform::Application {
public:
explicit MyApplication(const Arguments& arguments);
private:
void drawEvent() override;
};
MyApplication::MyApplication(const Arguments& arguments):
Platform::Application{arguments}
{
// TODO: Add your initialization code here
}
void MyApplication::drawEvent() {
GL::defaultFramebuffer.clear(GL::FramebufferClear::Color);
// TODO: Add your drawing code here
swapBuffers();
}
MAGNUM_APPLICATION_MAIN(MyApplication)