- Added generate_new_uuid function for unique identifier generation - Included stduuid/uuid.h and declared generate_new_uuid in pch.h - Added bindTexture overload to accept Texture object and texture unit - Implemented texture unit validation and OpenGL texture activation - Added Texture class declaration in RenderSystem header - Updated project files to include new model and utility headers/sources - Configured C++20 standard in Vivid2D project settings - Fixed namespace references in Vivid2D.cpp for Buffer classes
27 lines
618 B
C++
27 lines
618 B
C++
// dllmain.cpp : 定义 DLL 应用程序的入口点。
|
|
#include "pch.h"
|
|
|
|
uuids::uuid generate_new_uuid() {
|
|
static std::random_device rd;
|
|
static std::mt19937 engine(rd());
|
|
static uuids::uuid_random_generator generator(engine);
|
|
return generator();
|
|
}
|
|
|
|
BOOL APIENTRY DllMain( HMODULE hModule,
|
|
DWORD ul_reason_for_call,
|
|
LPVOID lpReserved
|
|
)
|
|
{
|
|
switch (ul_reason_for_call)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
case DLL_THREAD_ATTACH:
|
|
case DLL_THREAD_DETACH:
|
|
case DLL_PROCESS_DETACH:
|
|
break;
|
|
}
|
|
return TRUE;
|
|
}
|
|
|