windows窗口和D3D设备
This commit is contained in:
20
example/src/main.cpp
Normal file
20
example/src/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by Administrator on 25-2-26.
|
||||
//
|
||||
|
||||
#include "mirage.h"
|
||||
#include "core/render_window.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
mirage_app app;
|
||||
mirage_window window;
|
||||
window.create_window(800, 600, L"Hello, World!");
|
||||
window.show();
|
||||
|
||||
while (!mirage_window::get_windows().empty()) {
|
||||
mirage_window::poll_events();
|
||||
}
|
||||
|
||||
app.init();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user