Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/engine/platform/common/platform.hpp
2024-01-03 16:05:02 -05:00

25 lines
No EOL
430 B
C++

#pragma once
class Platform
{
public:
//used to pass windowing handles
static void SetUserData(void* pointer)
{
m_pointer = pointer;
}
static void* GetUserData()
{
return m_pointer;
}
//random misc functions
static void WarpMouse(double x, double y);
static float GetTime();
static void* GetProcAddress(const char* procname);
private:
static void* m_pointer;
};