Change project structure;

Added new c# binding;
This commit is contained in:
2025-12-30 20:54:05 +09:00
parent 5f5404268c
commit f1d3dddb9a
392 changed files with 2694 additions and 360462 deletions

27
native/header/Window.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef WINDOW_H
#define WINDOW_H
#include "Common.h"
#include "Rendering/Renderer.h"
#include <stdint.h>
#include <windows.h>
#define WM_USER_TILE_DONE (WM_USER + 1)
// TODO: This is just a temporary solution. We may move to C# Windows SDK for easier GUI handling in the future.
static HWND hwnd;
static HANDLE render_thread;
static HDC hdc_mem;
static HBITMAP bitmap;
static BITMAPINFO bitmap_info;
static int window_width;
static int window_height;
static unsigned char* pixel_buffer;
bool window_create(const char* title, HINSTANCE hInst, int width, int height, render_job_t* render_job);
void window_update_pixel(vec4s color, int pixel_x, int pixel_y);
void window_refresh_region(int pixel_x, int pixel_y, int region_width, int region_height);
void window_close();
#endif // WINDOW_H