mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
|
|
#include "gx/CGVideoOptions.hpp"
|
||
|
|
#include "ui/FrameScript.hpp"
|
||
|
|
#include "util/Unimplemented.hpp"
|
||
|
|
|
||
|
|
int32_t Script_GetCurrentResolution(lua_State* L) {
|
||
|
|
WHOA_UNIMPLEMENTED(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t Script_GetScreenResolutions(lua_State* L) {
|
||
|
|
WHOA_UNIMPLEMENTED(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t Script_GetRefreshRates(lua_State* L) {
|
||
|
|
WHOA_UNIMPLEMENTED(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t Script_GetCurrentMultisampleFormat(lua_State* L) {
|
||
|
|
WHOA_UNIMPLEMENTED(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t Script_GetMultisampleFormats(lua_State* L) {
|
||
|
|
WHOA_UNIMPLEMENTED(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t Script_IsStereoVideoAvailable(lua_State* L) {
|
||
|
|
WHOA_UNIMPLEMENTED(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
FrameScript_Method CGVideoOptions::s_ScriptFunctions[] = {
|
||
|
|
{ "GetCurrentResolution", &Script_GetCurrentResolution },
|
||
|
|
{ "GetScreenResolutions", &Script_GetScreenResolutions },
|
||
|
|
{ "GetRefreshRates", &Script_GetRefreshRates },
|
||
|
|
{ "GetCurrentMultisampleFormat", &Script_GetCurrentMultisampleFormat },
|
||
|
|
{ "GetMultisampleFormats", &Script_GetMultisampleFormats },
|
||
|
|
{ "IsStereoVideoAvailable", &Script_IsStereoVideoAvailable },
|
||
|
|
{ nullptr, nullptr }
|
||
|
|
};
|
||
|
|
|
||
|
|
void CGVideoOptions::RegisterScriptFunctions() {
|
||
|
|
FrameScript_Method* item = s_ScriptFunctions;
|
||
|
|
while (item->name) {
|
||
|
|
FrameScript_RegisterFunction(item->name, item->method);
|
||
|
|
item++;
|
||
|
|
}
|
||
|
|
}
|