[Scummvm-git-logs] scummvm master -> 309632fe50f6763b5ed637fa7c88d2ec025c8457
dreammaster
dreammaster at scummvm.org
Tue Mar 16 01:42:55 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
309632fe50 AGS: Plugin stubs for Nickenstien's NGFX Graphics Library
Commit: 309632fe50f6763b5ed637fa7c88d2ec025c8457
https://github.com/scummvm/scummvm/commit/309632fe50f6763b5ed637fa7c88d2ec025c8457
Author: kyandora (71771686+kyandora at users.noreply.github.com)
Date: 2021-03-15T18:42:07-07:00
Commit Message:
AGS: Plugin stubs for Nickenstien's NGFX Graphics Library
Changed paths:
A engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.cpp
A engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.h
engines/ags/module.mk
engines/ags/plugins/plugin_base.cpp
diff --git a/engines/ags/module.mk b/engines/ags/module.mk
index 1f7f88cd2b..0dc81b3995 100644
--- a/engines/ags/module.mk
+++ b/engines/ags/module.mk
@@ -295,6 +295,7 @@ MODULE_OBJS = \
plugins/ags_galaxy_steam/ags_blackwell_steam.o \
plugins/ags_galaxy_steam/ags_galaxy_steam.o \
plugins/ags_joy/ags_joy.o \
+ plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.o \
plugins/ags_pal_render/ags_pal_render.o \
plugins/ags_pal_render/raycast.o \
plugins/ags_parallax/ags_parallax.o \
diff --git a/engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.cpp b/engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.cpp
new file mode 100644
index 0000000000..5ed2979c37
--- /dev/null
+++ b/engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.cpp
@@ -0,0 +1,525 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or(at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.h"
+
+namespace AGS3 {
+namespace Plugins {
+namespace AGSNickenstienGFX {
+
+IAGSEngine *AGSNickenstienGFX::_engine;
+
+AGSNickenstienGFX::AGSNickenstienGFX() : PluginBase() {
+ _engine = nullptr;
+
+ DLL_METHOD(AGS_GetPluginName);
+ DLL_METHOD(AGS_EngineStartup);
+}
+
+const char *AGSNickenstienGFX::AGS_GetPluginName() {
+ return "Nickenstien\'s NGFX Graphics Library.";
+}
+
+void AGSNickenstienGFX::AGS_EngineStartup(IAGSEngine *engine) {
+ _engine = engine;
+
+ if (_engine->version < 3)
+ _engine->AbortGame("Engine interface is too old, need newer version of AGS.");
+
+ SCRIPT_METHOD(NGFX_GRAPHICS_Initialise);
+ SCRIPT_METHOD(NGFX_GRAPHICS_Enable);
+ SCRIPT_METHOD(NGFX_GRAPHICS_SetTimeScalar);
+ SCRIPT_METHOD(NGFX_GRAPHICS_FullScreenFadeOut);
+ SCRIPT_METHOD(NGFX_GRAPHICS_FullScreenFadeIn);
+ SCRIPT_METHOD(NGFX_GRAPHICS_FullScreenFadeOut_2);
+ SCRIPT_METHOD(NGFX_GRAPHICS_FullScreenFadeOut_2_SetBackgroundColour);
+ SCRIPT_METHOD(NGFX_GRAPHICS_FullScreenFadeIn_2);
+ SCRIPT_METHOD(NGFX_GRAPHICS_SetAnisotropicFilter);
+ SCRIPT_METHOD(NGFX_TEXTURE_Load);
+ SCRIPT_METHOD(NGFX_TEXTURE_Release);
+ SCRIPT_METHOD(NGFX_TEXTURE_GetWidth);
+ SCRIPT_METHOD(NGFX_TEXTURE_GetHeight);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_Create);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_Release);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetType);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetLife);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEmittionRate);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetParticlesPerEmittion);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetPosition1);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetPosition2);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartVelocity);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartVelocity_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndVelocity);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndVelocity_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartWidth);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartWidth_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndWidth);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndWidth_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartHeight);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartHeight_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndHeight);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndHeight_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartAngle);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartAngle_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetRotation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetRotation_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartColour);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetStartColour_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndColour);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetEndColour_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetBlendMode);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetTexture);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetForce);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetParticleLife);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetParticleLife_Deviation);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetNoTimeOut);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetDrawOrderReversed);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetProcessWhenOffScreen);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetUseVelocityParticles);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_SetChannelID);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_Start);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_Clone);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_ReleaseAll);
+ SCRIPT_METHOD(NGFX_PARTICLE_EMITTER_Evolve);
+ SCRIPT_METHOD(NGFX_HasGameRoomChanged);
+ SCRIPT_METHOD(NGFX_HasGameRoomChanged_SecondTest);
+ SCRIPT_METHOD(NGFX_SPRITE_ResetForNewRoom);
+ SCRIPT_METHOD(NGFX_SPRITE_Create);
+ SCRIPT_METHOD(NGFX_SPRITE_Release);
+ SCRIPT_METHOD(NGFX_SPRITE_SetChannelID);
+ SCRIPT_METHOD(NGFX_SPRITE_SetPosition);
+ SCRIPT_METHOD(NGFX_SPRITE_SetPivot);
+ SCRIPT_METHOD(NGFX_SPRITE_SetTexture);
+ SCRIPT_METHOD(NGFX_SPRITE_SetBlendMode);
+ SCRIPT_METHOD(NGFX_SPRITE_SetWidth);
+ SCRIPT_METHOD(NGFX_SPRITE_SetHeight);
+ SCRIPT_METHOD(NGFX_SPRITE_SetAngle);
+ SCRIPT_METHOD(NGFX_SPRITE_SetColour_1);
+ SCRIPT_METHOD(NGFX_SPRITE_SetColour_2);
+ SCRIPT_METHOD(NGFX_SPRITE_SetColour_3);
+ SCRIPT_METHOD(NGFX_SPRITE_SetColour_4);
+ SCRIPT_METHOD(NGFX_SPRITE_SetClipRectangle);
+ SCRIPT_METHOD(NGFX_SPRITE_SetGourard);
+ SCRIPT_METHOD(NGFX_SPRITE_SetFlipped_H);
+ SCRIPT_METHOD(NGFX_SPRITE_SetFlipped_V);
+ SCRIPT_METHOD(NGFX_SPRITE_AddToDrawList);
+ SCRIPT_METHOD(NGFX_InitForNewGameLoop);
+ // TODO unnamed functions?
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_Initialise(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, GameNativeScreenWidth, int, GameNativeScreenHeight);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_Enable(ScriptMethodParams ¶ms) {
+ //PARAMS1(bool, OnOff);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_SetTimeScalar(ScriptMethodParams ¶ms) {
+ //PARAMS1(float, TimeScalar);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_FullScreenFadeOut(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, Time);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_FullScreenFadeIn(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, Time);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_FullScreenFadeOut_2(ScriptMethodParams ¶ms) {
+ //PARAMS9(int, Time, int, BlendMode, int, R, int, G, int, B, int, NumLayers, float, BackSpeed, float, FrontSpeed, Common::String, TextureFilename);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_FullScreenFadeOut_2_SetBackgroundColour(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, Back_R, int, Back_G, int, Back_B);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_FullScreenFadeIn_2(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, Time);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_GRAPHICS_SetAnisotropicFilter(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_TEXTURE_Load(ScriptMethodParams ¶ms) {
+ //PARAMS1(Common::String, Filename);
+ // TODO rest of the owl
+ params._result = 0; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_TEXTURE_Release(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, TextureHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_TEXTURE_GetWidth(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, TextureHandle);
+ // TODO rest of the owl
+ params._result = 0; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_TEXTURE_GetHeight(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, TextureHandle);
+ // TODO rest of the owl
+ params._result = 0; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_Create(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, MaxParticlesForThisEmitter);
+ // TODO rest of the owl
+ params._result = 0; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_Release(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, ParticleEmitterHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetType(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, ParticleEmitterHandle, int, EmitterType);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetLife(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, EmitterLife);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEmittionRate(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, EmittionRate);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetParticlesPerEmittion(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, ParticlesPerEmittion);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetPosition1(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, PosX, float, PosY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetPosition2(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, PosX, float, PosY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartVelocity(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, VelocityX, float, VelocityY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartVelocity_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, VelocityDeviationX, float, VelocityDeviationY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndVelocity(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, VelocityX, float, VelocityY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndVelocity_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, VelocityDeviationX, float, VelocityDeviationY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartWidth(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Width);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartWidth_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, WidthDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndWidth(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Width);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndWidth_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, WidthDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartHeight(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Height);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartHeight_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, HeightDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndHeight(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Height);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndHeight_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, HeightDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartAngle(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Angle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartAngle_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, AngleDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetRotation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Rotation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetRotation_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, RotationDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartColour(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, ParticleEmitterHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetStartColour_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, ParticleEmitterHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndColour(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, ParticleEmitterHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetEndColour_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, ParticleEmitterHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetBlendMode(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, BlendMode);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetTexture(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, TextureHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetForce(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, ParticleEmitterHandle, float, ForceX, float, ForceY);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetParticleLife(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, Life);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetParticleLife_Deviation(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, LifeDeviation);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetNoTimeOut(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetDrawOrderReversed(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetProcessWhenOffScreen(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetUseVelocityParticles(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_SetChannelID(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, int, ChannelID);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_Start(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, ParticleEmitterHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_Clone(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, SourceParticleEmitterHandle);
+ // TODO rest of the owl
+ params._result = 0; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_ReleaseAll(ScriptMethodParams ¶ms) {
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_PARTICLE_EMITTER_Evolve(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, ParticleEmitterHandle, float, TimeToEvolveBy);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_HasGameRoomChanged(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, CurrentGameRoom);
+ // TODO rest of the owl
+ params._result = true; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_HasGameRoomChanged_SecondTest(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, CurrentGameRoom);
+ // TODO rest of the owl
+ params._result = true; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_ResetForNewRoom(ScriptMethodParams ¶ms) {
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_Create(ScriptMethodParams ¶ms) {
+ // TODO rest of the owl
+ params._result = 0; // HACK stub
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_Release(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, SpriteHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetChannelID(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, int, ChannelID);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetPosition(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, SpriteHandle, float, x, float, y);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetPivot(ScriptMethodParams ¶ms) {
+ //PARAMS3(int, SpriteHandle, float, x, float, y);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetTexture(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, int, TextureHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetBlendMode(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, int, BlendMode);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetWidth(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, float, Width);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetHeight(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, float, Height);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetAngle(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, float, Angle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetColour_1(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, SpriteHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetColour_2(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, SpriteHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetColour_3(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, SpriteHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetColour_4(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, SpriteHandle, int, R, int, G, int, B, int, A);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetClipRectangle(ScriptMethodParams ¶ms) {
+ //PARAMS5(int, SpriteHandle, float, x, float, y, float, x2, float, y2);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetGourard(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetFlipped_H(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_SetFlipped_V(ScriptMethodParams ¶ms) {
+ //PARAMS2(int, SpriteHandle, int, TrueFalse);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_SPRITE_AddToDrawList(ScriptMethodParams ¶ms) {
+ //PARAMS1(int, SpriteHandle);
+ // TODO rest of the owl
+}
+
+void AGSNickenstienGFX::NGFX_InitForNewGameLoop(ScriptMethodParams ¶ms) {
+ // TODO rest of the owl
+}
+
+} // namespace AGSNickenstienGFX
+} // namespace Plugins
+} // namespace AGS3
diff --git a/engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.h b/engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.h
new file mode 100644
index 0000000000..0abd8b51d8
--- /dev/null
+++ b/engines/ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.h
@@ -0,0 +1,126 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or(at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef AGS_PLUGINS_AGS_NICKENSTIEN_GFX_AGS_NICKENSTIEN_GFX_H
+#define AGS_PLUGINS_AGS_NICKENSTIEN_GFX_AGS_NICKENSTIEN_GFX_H
+
+#include "common/str.h"
+#include "ags/plugins/plugin_base.h"
+
+namespace AGS3 {
+namespace Plugins {
+namespace AGSNickenstienGFX {
+
+class AGSNickenstienGFX : public PluginBase {
+private:
+ static IAGSEngine *_engine;
+ static const char *AGS_GetPluginName();
+ static void AGS_EngineStartup(IAGSEngine *engine);
+
+ static void NGFX_GRAPHICS_Initialise(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_Enable(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_SetTimeScalar(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_FullScreenFadeOut(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_FullScreenFadeIn(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_FullScreenFadeOut_2(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_FullScreenFadeOut_2_SetBackgroundColour(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_FullScreenFadeIn_2(ScriptMethodParams ¶ms);
+ static void NGFX_GRAPHICS_SetAnisotropicFilter(ScriptMethodParams ¶ms);
+ static void NGFX_TEXTURE_Load(ScriptMethodParams ¶ms);
+ static void NGFX_TEXTURE_Release(ScriptMethodParams ¶ms);
+ static void NGFX_TEXTURE_GetWidth(ScriptMethodParams ¶ms);
+ static void NGFX_TEXTURE_GetHeight(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_Create(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_Release(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetType(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetLife(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEmittionRate(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetParticlesPerEmittion(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetPosition1(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetPosition2(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartVelocity(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartVelocity_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndVelocity(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndVelocity_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartWidth(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartWidth_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndWidth(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndWidth_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartHeight(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartHeight_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndHeight(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndHeight_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartAngle(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartAngle_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetRotation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetRotation_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartColour(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetStartColour_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndColour(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetEndColour_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetBlendMode(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetTexture(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetForce(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetParticleLife(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetParticleLife_Deviation(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetNoTimeOut(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetDrawOrderReversed(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetProcessWhenOffScreen(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetUseVelocityParticles(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_SetChannelID(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_Start(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_Clone(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_ReleaseAll(ScriptMethodParams ¶ms);
+ static void NGFX_PARTICLE_EMITTER_Evolve(ScriptMethodParams ¶ms);
+ static void NGFX_HasGameRoomChanged(ScriptMethodParams ¶ms);
+ static void NGFX_HasGameRoomChanged_SecondTest(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_ResetForNewRoom(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_Create(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_Release(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetChannelID(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetPosition(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetPivot(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetTexture(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetBlendMode(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetWidth(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetHeight(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetAngle(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetColour_1(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetColour_2(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetColour_3(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetColour_4(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetClipRectangle(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetGourard(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetFlipped_H(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_SetFlipped_V(ScriptMethodParams ¶ms);
+ static void NGFX_SPRITE_AddToDrawList(ScriptMethodParams ¶ms);
+ static void NGFX_InitForNewGameLoop(ScriptMethodParams ¶ms);
+
+public:
+ AGSNickenstienGFX();
+};
+
+} // namespace AGSNickenstienGFX
+} // namespace Plugins
+} // namespace AGS3
+
+#endif
diff --git a/engines/ags/plugins/plugin_base.cpp b/engines/ags/plugins/plugin_base.cpp
index 62f188626f..d5cdc82d7c 100644
--- a/engines/ags/plugins/plugin_base.cpp
+++ b/engines/ags/plugins/plugin_base.cpp
@@ -29,6 +29,7 @@
#include "ags/plugins/ags_galaxy_steam/ags_blackwell_steam.h"
#include "ags/plugins/ags_galaxy_steam/ags_galaxy_steam.h"
#include "ags/plugins/ags_joy/ags_joy.h"
+#include "ags/plugins/ags_nickenstien_gfx/ags_nickenstien_gfx.h"
#include "ags/plugins/ags_pal_render/ags_pal_render.h"
#include "ags/plugins/ags_snow_rain/ags_snow_rain.h"
#include "ags/plugins/ags_sprite_font/ags_sprite_font.h"
@@ -89,6 +90,9 @@ void *pluginOpen(const char *filename) {
fname.equalsIgnoreCase("agsgalaxy-disjoint"))
return new AGSGalaxySteam::AGSGalaxy();
+ if (fname.equalsIgnoreCase("ags_Nickenstien_GFX"))
+ return new AGSNickenstienGFX::AGSNickenstienGFX();
+
if (fname.equalsIgnoreCase("agsteam") && version == ::AGS::kBlackwell)
return new AGSGalaxySteam::AGSBlackwellSteam();
More information about the Scummvm-git-logs
mailing list