Upload files to "/"
This commit is contained in:
45
glfwVulkan.c
Normal file
45
glfwVulkan.c
Normal file
@@ -0,0 +1,45 @@
|
||||
#include <stdio.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
const uint32_t WIDTH = 1920;
|
||||
const uint32_t HEIGHT = 1080;
|
||||
GLFWwindow* window = NULL;
|
||||
|
||||
const char test[] = "window";
|
||||
|
||||
void initWindow(){
|
||||
glfwInit();
|
||||
|
||||
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
|
||||
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
|
||||
|
||||
window = glfwCreateWindow(WIDTH, HEIGHT, test, nullptr, nullptr);
|
||||
|
||||
}
|
||||
void initVulkan(){
|
||||
|
||||
}
|
||||
|
||||
void mainLoop(){
|
||||
while(!glfwWindowShouldClose(window)){
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
||||
}
|
||||
void cleanUp(){
|
||||
glfwDestroyWindow(window);
|
||||
glfwTerminate();
|
||||
}
|
||||
|
||||
void run(){
|
||||
initWindow();
|
||||
initVulkan();
|
||||
mainLoop();
|
||||
cleanUp();
|
||||
}
|
||||
|
||||
int main(){
|
||||
run();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user