Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FL/Fl.H>
- #include <FL/Fl_Window.H>
- #include <FL/Fl_Box.H>
- #include <vulkan/vulkan.h>
- #include <iostream>
- #include <stdexcept>
- #include <cstdlib>
- const uint32_t WIDTH = 800;
- const uint32_t HEIGHT = 600;
- class HelloTriangleApplication{
- public:
- void run(){
- initWindow();
- initVulkan();
- mainLoop();
- cleanup();
- }
- private:
- Fl_Window *window;
- void initWindow(){
- window = new Fl_Window(WIDTH,HEIGHT, "Hello Triangle");
- }
- void initVulkan(){
- }
- void mainLoop(){
- }
- void cleanup(){
- window->end();
- window->show();
- }
- };
- int main() {
- HelloTriangleApplication app;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement