mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +00:00
Simple chroma effect
This commit is contained in:
parent
695d2af03a
commit
aacbdb359a
3 changed files with 8 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ void wallpaperBindingInit();
|
|||
void nikoBindingInit();
|
||||
void oneshotBindingInit();
|
||||
void steamBindingInit();
|
||||
void chromaBindingInit();
|
||||
|
||||
RB_METHOD(mriPrint);
|
||||
RB_METHOD(mriP);
|
||||
|
|
@ -112,6 +113,7 @@ static void mriBindingInit()
|
|||
nikoBindingInit();
|
||||
oneshotBindingInit();
|
||||
steamBindingInit();
|
||||
chromaBindingInit();
|
||||
|
||||
if (rgssVer >= 3)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,19 +9,23 @@ bool INIT_SUCCESS = false;
|
|||
CChromaSDKImpl* chromaImpl = NULL;
|
||||
|
||||
void _attemptLinkSdk() {
|
||||
Debug() << "Attempting to bind Chroma SDK";
|
||||
#if !defined(_WIN32) && !defined(_WIN64)
|
||||
// currently razr chroma is windows-only.
|
||||
// so, if we are not building for windows platform
|
||||
// then don't bother with chroma stuff
|
||||
Debug() << "Chroma: Unsupported Platform";
|
||||
return;
|
||||
#endif
|
||||
|
||||
chromaImpl = new CChromaSDKImpl();
|
||||
Debug() << "Chroma Impl @" << chromaImpl;
|
||||
chromaImpl->Initialize();
|
||||
INIT_SUCCESS = true;
|
||||
}
|
||||
|
||||
RB_METHOD(chromaSetBase) {
|
||||
Debug() << "Chroma: Attempting to set base colour";
|
||||
RB_UNUSED_PARAM;
|
||||
if (INIT_SUCCESS) {
|
||||
ChromaSDK::Keyboard::CUSTOM_EFFECT_TYPE effect = {};
|
||||
|
|
@ -34,6 +38,7 @@ RB_METHOD(chromaSetBase) {
|
|||
ChromaSDK::Keyboard::CHROMA_CUSTOM,
|
||||
&effect,
|
||||
NULL);
|
||||
Debug() << "Chroma: Set base colour effect";
|
||||
}
|
||||
return Qnil;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ begin
|
|||
|
||||
# Load persistent data
|
||||
Persistent.load
|
||||
Chroma.setBase
|
||||
|
||||
# Prepare for transition
|
||||
Graphics.freeze
|
||||
|
|
|
|||
Loading…
Reference in a new issue