Enhance graphics library functionality and structure

Added new function signatures in `assimp-vc143-mt.lib` for improved logging, parsing, and vector operations.
Added new metadata and configuration information in `assimp-vc143-mt.dll` for versioning and licensing compliance.
Added Sobol sequence generation in `Sobol.c` for quasi-random sampling.
Added window message handling in `Window.c` for rendering graphics.
Added ray-triangle intersection tests in `RayIntersection.c` for collision detection.
Added functions for loading mesh data in `Mesh.c` to support 3D model import.
Added functions for managing triangle collections in `Triangle.c` to enhance geometric data handling.
Added light evaluation functions in `LightEvaluation.c` and `SkyLight.c` for realistic rendering.
Added sampling and evaluation functions for simple lit materials in `SimpleLit.c`.
Changed various header files to include copyright and licensing information.
Changed existing functions in multiple files to improve performance and clarity.
Removed unused code in several files to streamline the library.
This commit is contained in:
2025-04-18 01:54:26 +09:00
parent b915d56f73
commit bfc94f0008
138 changed files with 28915 additions and 534 deletions

22
header/Window.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef WINDOW_H
#define WINDOW_H
#include "Common.h"
#include <windows.h>
#include <stdint.h>
// 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 HDC hdc_mem;
static HBITMAP bitmap;
static BITMAPINFO bitmap_info;
static int window_width;
static int window_height;
static unsigned char* pixel_buffer;
int window_create(const char* title, HINSTANCE hInst, const int width, const int height);
void window_update_pixels(const vec4s color, const int pixel_x, const int pixel_y);
void window_refresh_region(const int pixel_x, const int pixel_y, const int region_width, const int region_height);
#endif // WINDOW_H