Files
Vivid2DRenderer/Vivid2DRenderer/dllmain.cpp
tzdwindows 7 6dcd006f0e feat(renderer): implement texture binding with texture unit support
- 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
2025-11-15 16:22:14 +08:00

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;
}