├── .gitignore ├── ColorkeyMaskDLL.sln ├── ColorkeyMaskDLL.vcxproj ├── ColorkeyMaskDLL.vcxproj.filters ├── ExampleProject ├── ExampleProject.resource_order ├── ExampleProject.yyp ├── datafiles │ └── ColorkeyMaskDLL.dll ├── extensions │ └── ColorKeyMask │ │ ├── ColorKeyMask.yy │ │ └── ColorkeyMaskDLL.dll ├── objects │ └── obj_test │ │ ├── Create_0.gml │ │ ├── Draw_64.gml │ │ └── obj_test.yy ├── options │ ├── android │ │ └── options_android.yy │ ├── extensions │ │ └── ColorKeyMask.json │ ├── html5 │ │ └── options_html5.yy │ ├── ios │ │ └── options_ios.yy │ ├── linux │ │ └── options_linux.yy │ ├── mac │ │ └── options_mac.yy │ ├── main │ │ └── options_main.yy │ ├── operagx │ │ └── options_operagx.yy │ ├── tvos │ │ └── options_tvos.yy │ └── windows │ │ └── options_windows.yy └── rooms │ └── Room1 │ └── Room1.yy ├── README.md ├── dllmain.cpp ├── framework.h ├── pch.cpp └── pch.h /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml -------------------------------------------------------------------------------- /ColorkeyMaskDLL.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.6.33815.320 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ColorkeyMaskDLL", "ColorkeyMaskDLL.vcxproj", "{BA28C5C2-F76A-420E-8797-6F740D43472B}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Debug|x64.ActiveCfg = Debug|x64 17 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Debug|x64.Build.0 = Debug|x64 18 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Debug|x86.ActiveCfg = Debug|Win32 19 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Debug|x86.Build.0 = Debug|Win32 20 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Release|x64.ActiveCfg = Release|x64 21 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Release|x64.Build.0 = Release|x64 22 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Release|x86.ActiveCfg = Release|Win32 23 | {BA28C5C2-F76A-420E-8797-6F740D43472B}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {EDE45914-6BDB-4BA5-ADF2-6FBDA74E8E90} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /ColorkeyMaskDLL.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 16.0 23 | Win32Proj 24 | {ba28c5c2-f76a-420e-8797-6f740d43472b} 25 | ColorkeyMaskDLL 26 | 10.0 27 | 28 | 29 | 30 | DynamicLibrary 31 | true 32 | v143 33 | Unicode 34 | 35 | 36 | DynamicLibrary 37 | false 38 | v143 39 | true 40 | Unicode 41 | 42 | 43 | DynamicLibrary 44 | true 45 | v143 46 | Unicode 47 | 48 | 49 | DynamicLibrary 50 | false 51 | v143 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | Level3 76 | true 77 | WIN32;_DEBUG;COLORKEYMASKDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 78 | true 79 | Use 80 | pch.h 81 | 82 | 83 | Windows 84 | true 85 | false 86 | 87 | 88 | 89 | 90 | Level3 91 | true 92 | true 93 | true 94 | WIN32;NDEBUG;COLORKEYMASKDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 95 | true 96 | Use 97 | pch.h 98 | 99 | 100 | Windows 101 | true 102 | true 103 | true 104 | false 105 | 106 | 107 | 108 | 109 | Level3 110 | true 111 | _DEBUG;COLORKEYMASKDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 112 | true 113 | Use 114 | pch.h 115 | 116 | 117 | Windows 118 | true 119 | false 120 | 121 | 122 | 123 | 124 | Level3 125 | true 126 | true 127 | true 128 | NDEBUG;COLORKEYMASKDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 129 | true 130 | Use 131 | pch.h 132 | 133 | 134 | Windows 135 | true 136 | true 137 | true 138 | false 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | Create 149 | Create 150 | Create 151 | Create 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /ColorkeyMaskDLL.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | Source Files 31 | 32 | 33 | -------------------------------------------------------------------------------- /ExampleProject/ExampleProject.resource_order: -------------------------------------------------------------------------------- 1 | { 2 | "FolderOrderSettings": [ 3 | {"name":"Sprites","order":1,"path":"folders/Sprites.yy",}, 4 | {"name":"Tile Sets","order":2,"path":"folders/Tile Sets.yy",}, 5 | {"name":"Sounds","order":3,"path":"folders/Sounds.yy",}, 6 | {"name":"Paths","order":4,"path":"folders/Paths.yy",}, 7 | {"name":"Scripts","order":5,"path":"folders/Scripts.yy",}, 8 | {"name":"Shaders","order":6,"path":"folders/Shaders.yy",}, 9 | {"name":"Fonts","order":7,"path":"folders/Fonts.yy",}, 10 | {"name":"Timelines","order":8,"path":"folders/Timelines.yy",}, 11 | {"name":"Objects","order":9,"path":"folders/Objects.yy",}, 12 | {"name":"Rooms","order":10,"path":"folders/Rooms.yy",}, 13 | {"name":"Sequences","order":11,"path":"folders/Sequences.yy",}, 14 | {"name":"Animation Curves","order":12,"path":"folders/Animation Curves.yy",}, 15 | {"name":"Notes","order":13,"path":"folders/Notes.yy",}, 16 | {"name":"Extensions","order":14,"path":"folders/Extensions.yy",}, 17 | {"name":"Particle Systems","order":15,"path":"folders/Particle Systems.yy",}, 18 | ], 19 | "ResourceOrderSettings": [], 20 | } -------------------------------------------------------------------------------- /ExampleProject/ExampleProject.yyp: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMProject", 3 | "resourceVersion": "1.7", 4 | "name": "ExampleProject", 5 | "AudioGroups": [ 6 | {"resourceType":"GMAudioGroup","resourceVersion":"1.3","name":"audiogroup_default","targets":-1,}, 7 | ], 8 | "configs": { 9 | "children": [], 10 | "name": "Default", 11 | }, 12 | "defaultScriptType": 1, 13 | "Folders": [ 14 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Sprites","folderPath":"folders/Sprites.yy",}, 15 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Tile Sets","folderPath":"folders/Tile Sets.yy",}, 16 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Sounds","folderPath":"folders/Sounds.yy",}, 17 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Paths","folderPath":"folders/Paths.yy",}, 18 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Scripts","folderPath":"folders/Scripts.yy",}, 19 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Shaders","folderPath":"folders/Shaders.yy",}, 20 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Fonts","folderPath":"folders/Fonts.yy",}, 21 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Timelines","folderPath":"folders/Timelines.yy",}, 22 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Objects","folderPath":"folders/Objects.yy",}, 23 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Rooms","folderPath":"folders/Rooms.yy",}, 24 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Sequences","folderPath":"folders/Sequences.yy",}, 25 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Animation Curves","folderPath":"folders/Animation Curves.yy",}, 26 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Notes","folderPath":"folders/Notes.yy",}, 27 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Extensions","folderPath":"folders/Extensions.yy",}, 28 | {"resourceType":"GMFolder","resourceVersion":"1.0","name":"Particle Systems","folderPath":"folders/Particle Systems.yy",}, 29 | ], 30 | "IncludedFiles": [ 31 | {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"ColorkeyMaskDLL.dll","CopyToMask":-1,"filePath":"datafiles",}, 32 | {"resourceType":"GMIncludedFile","resourceVersion":"1.0","name":"ColorkeyMaskDLL.dll","CopyToMask":-1,"filePath":"datafiles",}, 33 | ], 34 | "isEcma": false, 35 | "LibraryEmitters": [], 36 | "MetaData": { 37 | "IDEVersion": "2023.11.1.129", 38 | }, 39 | "resources": [ 40 | {"id":{"name":"ColorKeyMask","path":"extensions/ColorKeyMask/ColorKeyMask.yy",},}, 41 | {"id":{"name":"obj_test","path":"objects/obj_test/obj_test.yy",},}, 42 | {"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},}, 43 | ], 44 | "RoomOrderNodes": [ 45 | {"roomId":{"name":"Room1","path":"rooms/Room1/Room1.yy",},}, 46 | ], 47 | "templateType": "game", 48 | "TextureGroups": [ 49 | {"resourceType":"GMTextureGroup","resourceVersion":"1.3","name":"Default","autocrop":true,"border":2,"compressFormat":"bz2","directory":"","groupParent":null,"isScaled":true,"loadType":"default","mipsToGenerate":0,"targets":-1,}, 50 | ], 51 | } -------------------------------------------------------------------------------- /ExampleProject/datafiles/ColorkeyMaskDLL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantumV2/GMDLL-ColorKeyMask/2729d851c7549be502e52a9051d52ce09c74011d/ExampleProject/datafiles/ColorkeyMaskDLL.dll -------------------------------------------------------------------------------- /ExampleProject/extensions/ColorKeyMask/ColorKeyMask.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMExtension", 3 | "resourceVersion": "1.2", 4 | "name": "ColorKeyMask", 5 | "androidactivityinject": "", 6 | "androidclassname": "", 7 | "androidcodeinjection": "", 8 | "androidinject": "", 9 | "androidmanifestinject": "", 10 | "androidPermissions": [], 11 | "androidProps": false, 12 | "androidsourcedir": "", 13 | "author": "", 14 | "classname": "", 15 | "copyToTargets": -1, 16 | "date": "2024-02-23T18:37:54.5935288+03:00", 17 | "description": "", 18 | "exportToGame": true, 19 | "extensionVersion": "0.0.1", 20 | "files": [ 21 | {"resourceType":"GMExtensionFile","resourceVersion":"1.0","name":"ColorkeyMaskDLL.dll","constants":[],"copyToTargets":-1,"filename":"ColorkeyMaskDLL.dll","final":"","functions":[ 22 | {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"make_color_transparent","argCount":0,"args":[ 23 | 1, 24 | 2, 25 | 2, 26 | 2, 27 | ],"documentation":"","externalName":"MakeColorTransparent","help":"","hidden":false,"kind":1,"returnType":2,}, 28 | ],"init":"","kind":1,"order":[],"origname":"","ProxyFiles":[],"uncompress":false,"usesRunnerInterface":false,}, 29 | ], 30 | "gradleinject": "", 31 | "hasConvertedCodeInjection": true, 32 | "helpfile": "", 33 | "HTML5CodeInjection": "", 34 | "html5Props": false, 35 | "IncludedResources": [], 36 | "installdir": "", 37 | "iosCocoaPodDependencies": "", 38 | "iosCocoaPods": "", 39 | "ioscodeinjection": "", 40 | "iosdelegatename": "", 41 | "iosplistinject": "", 42 | "iosProps": false, 43 | "iosSystemFrameworkEntries": [], 44 | "iosThirdPartyFrameworkEntries": [], 45 | "license": "", 46 | "maccompilerflags": "", 47 | "maclinkerflags": "", 48 | "macsourcedir": "", 49 | "options": [], 50 | "optionsFile": "options.json", 51 | "packageId": "", 52 | "parent": { 53 | "name": "Extensions", 54 | "path": "folders/Extensions.yy", 55 | }, 56 | "productId": "", 57 | "sourcedir": "", 58 | "supportedTargets": -1, 59 | "tvosclassname": null, 60 | "tvosCocoaPodDependencies": "", 61 | "tvosCocoaPods": "", 62 | "tvoscodeinjection": "", 63 | "tvosdelegatename": null, 64 | "tvosmaccompilerflags": "", 65 | "tvosmaclinkerflags": "", 66 | "tvosplistinject": "", 67 | "tvosProps": false, 68 | "tvosSystemFrameworkEntries": [], 69 | "tvosThirdPartyFrameworkEntries": [], 70 | } -------------------------------------------------------------------------------- /ExampleProject/extensions/ColorKeyMask/ColorkeyMaskDLL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantumV2/GMDLL-ColorKeyMask/2729d851c7549be502e52a9051d52ce09c74011d/ExampleProject/extensions/ColorKeyMask/ColorkeyMaskDLL.dll -------------------------------------------------------------------------------- /ExampleProject/objects/obj_test/Create_0.gml: -------------------------------------------------------------------------------- 1 | var hwnd = window_handle() 2 | 3 | //Note: You can use R: 0 G: 0 B: 0, but it will break minimize, close, and maximize buttons 4 | make_color_transparent(string(hwnd), 50, 50, 50) -------------------------------------------------------------------------------- /ExampleProject/objects/obj_test/Draw_64.gml: -------------------------------------------------------------------------------- 1 | draw_set_halign(fa_center) 2 | draw_text(1366 / 2, 768 / 2, "Hello, World!") -------------------------------------------------------------------------------- /ExampleProject/objects/obj_test/obj_test.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMObject", 3 | "resourceVersion": "1.0", 4 | "name": "obj_test", 5 | "eventList": [ 6 | {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,}, 7 | {"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":64,"eventType":8,"isDnD":false,}, 8 | ], 9 | "managed": true, 10 | "overriddenProperties": [], 11 | "parent": { 12 | "name": "Objects", 13 | "path": "folders/Objects.yy", 14 | }, 15 | "parentObjectId": null, 16 | "persistent": false, 17 | "physicsAngularDamping": 0.1, 18 | "physicsDensity": 0.5, 19 | "physicsFriction": 0.2, 20 | "physicsGroup": 1, 21 | "physicsKinematic": false, 22 | "physicsLinearDamping": 0.1, 23 | "physicsObject": false, 24 | "physicsRestitution": 0.1, 25 | "physicsSensor": false, 26 | "physicsShape": 1, 27 | "physicsShapePoints": [], 28 | "physicsStartAwake": true, 29 | "properties": [], 30 | "solid": false, 31 | "spriteId": null, 32 | "spriteMaskId": null, 33 | "visible": true, 34 | } -------------------------------------------------------------------------------- /ExampleProject/options/android/options_android.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMAndroidOptions", 3 | "resourceVersion": "1.0", 4 | "name": "Android", 5 | "option_android_application_tag_inject": "", 6 | "option_android_arch_arm64": true, 7 | "option_android_arch_armv7": false, 8 | "option_android_arch_x86_64": false, 9 | "option_android_attribute_allow_backup": false, 10 | "option_android_build_tools": "", 11 | "option_android_compile_sdk": "", 12 | "option_android_device_support": 0, 13 | "option_android_display_name": "Created with GameMaker", 14 | "option_android_facebook_app_display_name": "", 15 | "option_android_facebook_id": "", 16 | "option_android_gamepad_support": true, 17 | "option_android_google_apk_expansion": false, 18 | "option_android_google_cloud_saving": false, 19 | "option_android_google_dynamic_asset_delivery": false, 20 | "option_android_google_licensing_public_key": "", 21 | "option_android_google_services_app_id": "", 22 | "option_android_icon_adaptive_generate": false, 23 | "option_android_icon_adaptive_hdpi": "${base_options_dir}/android/icons_adaptive/hdpi.png", 24 | "option_android_icon_adaptive_ldpi": "${base_options_dir}/android/icons_adaptive/ldpi.png", 25 | "option_android_icon_adaptive_mdpi": "${base_options_dir}/android/icons_adaptive/mdpi.png", 26 | "option_android_icon_adaptive_xhdpi": "${base_options_dir}/android/icons_adaptive/xhdpi.png", 27 | "option_android_icon_adaptive_xxhdpi": "${base_options_dir}/android/icons_adaptive/xxhdpi.png", 28 | "option_android_icon_adaptive_xxxhdpi": "${base_options_dir}/android/icons_adaptive/xxxhdpi.png", 29 | "option_android_icon_adaptivebg_hdpi": "${base_options_dir}/android/icons_adaptivebg/hdpi.png", 30 | "option_android_icon_adaptivebg_ldpi": "${base_options_dir}/android/icons_adaptivebg/ldpi.png", 31 | "option_android_icon_adaptivebg_mdpi": "${base_options_dir}/android/icons_adaptivebg/mdpi.png", 32 | "option_android_icon_adaptivebg_xhdpi": "${base_options_dir}/android/icons_adaptivebg/xhdpi.png", 33 | "option_android_icon_adaptivebg_xxhdpi": "${base_options_dir}/android/icons_adaptivebg/xxhdpi.png", 34 | "option_android_icon_adaptivebg_xxxhdpi": "${base_options_dir}/android/icons_adaptivebg/xxxhdpi.png", 35 | "option_android_icon_hdpi": "${base_options_dir}/android/icons/hdpi.png", 36 | "option_android_icon_ldpi": "${base_options_dir}/android/icons/ldpi.png", 37 | "option_android_icon_mdpi": "${base_options_dir}/android/icons/mdpi.png", 38 | "option_android_icon_xhdpi": "${base_options_dir}/android/icons/xhdpi.png", 39 | "option_android_icon_xxhdpi": "${base_options_dir}/android/icons/xxhdpi.png", 40 | "option_android_icon_xxxhdpi": "${base_options_dir}/android/icons/xxxhdpi.png", 41 | "option_android_install_location": 0, 42 | "option_android_interpolate_pixels": false, 43 | "option_android_launchscreen_fill": 0, 44 | "option_android_lint": false, 45 | "option_android_logcat": "yoyo:V DEBUG:V AndroidRuntime:V", 46 | "option_android_minimum_sdk": "", 47 | "option_android_orient_landscape": true, 48 | "option_android_orient_landscape_flipped": true, 49 | "option_android_orient_portrait": true, 50 | "option_android_orient_portrait_flipped": true, 51 | "option_android_package_company": "company", 52 | "option_android_package_domain": "com", 53 | "option_android_package_product": "game", 54 | "option_android_permission_bluetooth": true, 55 | "option_android_permission_internet": true, 56 | "option_android_permission_network_state": false, 57 | "option_android_permission_read_phone_state": false, 58 | "option_android_permission_record_audio": false, 59 | "option_android_permission_write_external_storage": false, 60 | "option_android_proguard_minifying": false, 61 | "option_android_proguard_shrinking": false, 62 | "option_android_scale": 0, 63 | "option_android_screen_depth": 0, 64 | "option_android_sleep_margin": 4, 65 | "option_android_splash_screens_landscape": "${base_options_dir}/android/splash/landscape.png", 66 | "option_android_splash_screens_portrait": "${base_options_dir}/android/splash/portrait.png", 67 | "option_android_splash_time": 0, 68 | "option_android_splashscreen_background_colour": 255, 69 | "option_android_support_lib": "", 70 | "option_android_sync_amazon": false, 71 | "option_android_target_sdk": "", 72 | "option_android_texture_page": "2048x2048", 73 | "option_android_tools_from_version": false, 74 | "option_android_tv_banner": "${base_options_dir}/android/tv_banner.png", 75 | "option_android_tv_isgame": true, 76 | "option_android_tv_supports_leanback": true, 77 | "option_android_use_facebook": false, 78 | "option_android_version": "1.0.0.0", 79 | } -------------------------------------------------------------------------------- /ExampleProject/options/extensions/ColorKeyMask.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMExtensionConfigSet", 3 | "configurables": null, 4 | "resourceVersion": "1.0" 5 | } -------------------------------------------------------------------------------- /ExampleProject/options/html5/options_html5.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMHtml5Options", 3 | "resourceVersion": "1.0", 4 | "name": "HTML5", 5 | "option_html5_allow_fullscreen": true, 6 | "option_html5_browser_title": "Created with GameMaker", 7 | "option_html5_centregame": false, 8 | "option_html5_display_cursor": true, 9 | "option_html5_facebook_app_display_name": "", 10 | "option_html5_facebook_id": "", 11 | "option_html5_flurry_enable": false, 12 | "option_html5_flurry_id": "", 13 | "option_html5_foldername": "html5game", 14 | "option_html5_google_analytics_enable": false, 15 | "option_html5_google_tracking_id": "", 16 | "option_html5_icon": "${base_options_dir}/html5/fav.ico", 17 | "option_html5_index": "", 18 | "option_html5_interpolate_pixels": true, 19 | "option_html5_jsprepend": "", 20 | "option_html5_loadingbar": "", 21 | "option_html5_localrunalert": true, 22 | "option_html5_outputdebugtoconsole": true, 23 | "option_html5_outputname": "index.html", 24 | "option_html5_scale": 0, 25 | "option_html5_splash_png": "${base_options_dir}/html5/splash.png", 26 | "option_html5_texture_page": "2048x2048", 27 | "option_html5_use_facebook": false, 28 | "option_html5_usebuiltinfont": true, 29 | "option_html5_usebuiltinparticles": true, 30 | "option_html5_usesplash": false, 31 | "option_html5_version": "1.0.0.0", 32 | "option_html5_webgl": 2, 33 | } -------------------------------------------------------------------------------- /ExampleProject/options/ios/options_ios.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMiOSOptions", 3 | "resourceVersion": "1.3", 4 | "name": "iOS", 5 | "option_ios_build_number": 0, 6 | "option_ios_bundle_name": "com.company.game", 7 | "option_ios_cocoapods_checkbox": true, 8 | "option_ios_defer_home_indicator": false, 9 | "option_ios_devices": 2, 10 | "option_ios_display_name": "Created with GameMaker", 11 | "option_ios_enable_broadcast": false, 12 | "option_ios_half_ipad1_textures": false, 13 | "option_ios_icon_ipad_app_152": "${base_options_dir}/ios/icons/app/ipad_152.png", 14 | "option_ios_icon_ipad_app_76": "${base_options_dir}/ios/icons/app/ipad_76.png", 15 | "option_ios_icon_ipad_notification_20": "${base_options_dir}/ios/icons/notification/ipad_20.png", 16 | "option_ios_icon_ipad_notification_40": "${base_options_dir}/ios/icons/notification/ipad_40.png", 17 | "option_ios_icon_ipad_pro_app_167": "${base_options_dir}/ios/icons/app/ipad_pro_167.png", 18 | "option_ios_icon_ipad_settings_29": "${base_options_dir}/ios/icons/settings/ipad_29.png", 19 | "option_ios_icon_ipad_settings_58": "${base_options_dir}/ios/icons/settings/ipad_58.png", 20 | "option_ios_icon_ipad_spotlight_40": "${base_options_dir}/ios/icons/spotlight/ipad_40.png", 21 | "option_ios_icon_ipad_spotlight_80": "${base_options_dir}/ios/icons/spotlight/ipad_80.png", 22 | "option_ios_icon_iphone_app_120": "${base_options_dir}/ios/icons/app/iphone_120.png", 23 | "option_ios_icon_iphone_app_180": "${base_options_dir}/ios/icons/app/iphone_180.png", 24 | "option_ios_icon_iphone_notification_40": "${base_options_dir}/ios/icons/notification/iphone_40.png", 25 | "option_ios_icon_iphone_notification_60": "${base_options_dir}/ios/icons/notification/iphone_60.png", 26 | "option_ios_icon_iphone_settings_58": "${base_options_dir}/ios/icons/settings/iphone_58.png", 27 | "option_ios_icon_iphone_settings_87": "${base_options_dir}/ios/icons/settings/iphone_87.png", 28 | "option_ios_icon_iphone_spotlight_120": "${base_options_dir}/ios/icons/spotlight/iphone_120.png", 29 | "option_ios_icon_iphone_spotlight_80": "${base_options_dir}/ios/icons/spotlight/iphone_80.png", 30 | "option_ios_icon_itunes_artwork_1024": "${base_options_dir}/ios/icons/itunes/itunes_1024.png", 31 | "option_ios_interpolate_pixels": false, 32 | "option_ios_launchscreen_fill": 0, 33 | "option_ios_launchscreen_image": "${base_options_dir}/ios/splash/launchscreen.png", 34 | "option_ios_launchscreen_image_landscape": "${base_options_dir}/ios/splash/launchscreen-landscape.png", 35 | "option_ios_min_version": "10.0", 36 | "option_ios_orientation_landscape": true, 37 | "option_ios_orientation_landscape_flipped": true, 38 | "option_ios_orientation_portrait": true, 39 | "option_ios_orientation_portrait_flipped": true, 40 | "option_ios_output_dir": "~/gamemakerstudio2", 41 | "option_ios_podfile_lock_path": "${options_dir}/ios/Podfile.lock", 42 | "option_ios_podfile_path": "${options_dir}/ios/Podfile", 43 | "option_ios_scale": 0, 44 | "option_ios_splashscreen_background_colour": 255, 45 | "option_ios_team_id": "", 46 | "option_ios_texture_page": "2048x2048", 47 | "option_ios_version": "1.0.0.0", 48 | } -------------------------------------------------------------------------------- /ExampleProject/options/linux/options_linux.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMLinuxOptions", 3 | "resourceVersion": "1.0", 4 | "name": "Linux", 5 | "option_linux_allow_fullscreen": false, 6 | "option_linux_disable_sandbox": false, 7 | "option_linux_display_cursor": true, 8 | "option_linux_display_name": "Created with GameMaker", 9 | "option_linux_display_splash": false, 10 | "option_linux_enable_steam": false, 11 | "option_linux_homepage": "http://www.yoyogames.com", 12 | "option_linux_icon": "${base_options_dir}/linux/icons/64.png", 13 | "option_linux_interpolate_pixels": true, 14 | "option_linux_long_desc": "", 15 | "option_linux_maintainer_email": "", 16 | "option_linux_resize_window": false, 17 | "option_linux_scale": 0, 18 | "option_linux_short_desc": "", 19 | "option_linux_splash_screen": "${base_options_dir}/linux/splash/splash.png", 20 | "option_linux_start_fullscreen": false, 21 | "option_linux_sync": false, 22 | "option_linux_texture_page": "2048x2048", 23 | "option_linux_version": "1.0.0.0", 24 | } -------------------------------------------------------------------------------- /ExampleProject/options/mac/options_mac.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMMacOptions", 3 | "resourceVersion": "1.0", 4 | "name": "macOS", 5 | "option_mac_allow_fullscreen": false, 6 | "option_mac_allow_incoming_network": false, 7 | "option_mac_allow_outgoing_network": false, 8 | "option_mac_app_category": "Games", 9 | "option_mac_app_id": "com.company.game", 10 | "option_mac_apple_sign_in": false, 11 | "option_mac_arm64": true, 12 | "option_mac_build_app_store": false, 13 | "option_mac_build_number": 0, 14 | "option_mac_copyright": "", 15 | "option_mac_disable_sandbox": false, 16 | "option_mac_display_cursor": true, 17 | "option_mac_display_name": "Created with GameMaker", 18 | "option_mac_enable_retina": false, 19 | "option_mac_enable_steam": false, 20 | "option_mac_icon_png": "${base_options_dir}/mac/icons/1024.png", 21 | "option_mac_installer_background_png": "${base_options_dir}/mac/splash/installer_background.png", 22 | "option_mac_interpolate_pixels": true, 23 | "option_mac_menu_dock": false, 24 | "option_mac_min_version": "10.10", 25 | "option_mac_output_dir": "~/gamemakerstudio2", 26 | "option_mac_resize_window": false, 27 | "option_mac_scale": 0, 28 | "option_mac_signing_identity": "Developer ID Application:", 29 | "option_mac_splash_png": "${base_options_dir}/mac/splash/splash.png", 30 | "option_mac_start_fullscreen": false, 31 | "option_mac_team_id": "", 32 | "option_mac_texture_page": "2048x2048", 33 | "option_mac_version": "1.0.0.0", 34 | "option_mac_vsync": false, 35 | "option_mac_x86_64": true, 36 | } -------------------------------------------------------------------------------- /ExampleProject/options/main/options_main.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMMainOptions", 3 | "resourceVersion": "1.4", 4 | "name": "Main", 5 | "option_author": "", 6 | "option_collision_compatibility": false, 7 | "option_copy_on_write_enabled": false, 8 | "option_draw_colour": 4294967295, 9 | "option_game_speed": 60, 10 | "option_gameguid": "fee6e219-55d3-4294-a03c-7d1f131ec6d1", 11 | "option_gameid": "0", 12 | "option_mips_for_3d_textures": false, 13 | "option_sci_usesci": false, 14 | "option_spine_licence": false, 15 | "option_steam_app_id": "0", 16 | "option_template_description": null, 17 | "option_template_icon": "${base_options_dir}/main/template_icon.png", 18 | "option_template_image": "${base_options_dir}/main/template_image.png", 19 | "option_window_colour": 255, 20 | } -------------------------------------------------------------------------------- /ExampleProject/options/operagx/options_operagx.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMOperaGXOptions", 3 | "resourceVersion": "1.1", 4 | "name": "operagx", 5 | "option_operagx_display_cursor": true, 6 | "option_operagx_editUrl": "", 7 | "option_operagx_game_name": "${project_name}", 8 | "option_operagx_guid": "", 9 | "option_operagx_internalShareUrl": "", 10 | "option_operagx_interpolate_pixels": true, 11 | "option_operagx_mod_editUrl": "", 12 | "option_operagx_mod_game_name": "${project_name}", 13 | "option_operagx_mod_guid": "", 14 | "option_operagx_mod_internalShareUrl": "", 15 | "option_operagx_mod_next_version": "1.0.0.0", 16 | "option_operagx_mod_publicShareUrl": "", 17 | "option_operagx_mod_team_id": "", 18 | "option_operagx_mod_team_name": "", 19 | "option_operagx_mod_version": "1.0.0.0", 20 | "option_operagx_next_version": "1.0.0.0", 21 | "option_operagx_publicShareUrl": "", 22 | "option_operagx_scale": 0, 23 | "option_operagx_team_id": "", 24 | "option_operagx_team_name": "", 25 | "option_operagx_texture_page": "2048x2048", 26 | "option_operagx_version": "1.0.0.0", 27 | } -------------------------------------------------------------------------------- /ExampleProject/options/tvos/options_tvos.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMtvOSOptions", 3 | "resourceVersion": "1.3", 4 | "name": "tvOS", 5 | "option_tvos_build_number": 0, 6 | "option_tvos_bundle_name": "com.company.game", 7 | "option_tvos_cocoapods_checkbox": true, 8 | "option_tvos_display_cursor": false, 9 | "option_tvos_display_name": "Made in GameMaker", 10 | "option_tvos_enable_broadcast": false, 11 | "option_tvos_icon_1280": "${base_options_dir}/tvos/icons/1280.png", 12 | "option_tvos_icon_400": "${base_options_dir}/tvos/icons/400.png", 13 | "option_tvos_icon_400_2x": "${base_options_dir}/tvos/icons/400_2x.png", 14 | "option_tvos_interpolate_pixels": true, 15 | "option_tvos_min_version": "10.0", 16 | "option_tvos_output_dir": "~/GameMakerStudio2/tvOS", 17 | "option_tvos_podfile_lock_path": "${options_dir}\\tvos\\Podfile.lock", 18 | "option_tvos_podfile_path": "${options_dir}\\tvos\\Podfile", 19 | "option_tvos_scale": 0, 20 | "option_tvos_splash_time": 0, 21 | "option_tvos_splashscreen": "${base_options_dir}/tvos/splash/splash.png", 22 | "option_tvos_splashscreen_2x": "${base_options_dir}/tvos/splash/splash_2x.png", 23 | "option_tvos_team_id": "", 24 | "option_tvos_texture_page": "2048x2048", 25 | "option_tvos_topshelf": "${base_options_dir}/tvos/topshelf/topshelf.png", 26 | "option_tvos_topshelf_2x": "${base_options_dir}/tvos/topshelf/topshelf_2x.png", 27 | "option_tvos_topshelf_wide": "${base_options_dir}/tvos/topshelf/topshelf_wide.png", 28 | "option_tvos_topshelf_wide_2x": "${base_options_dir}/tvos/topshelf/topshelf_wide_2x.png", 29 | "option_tvos_version": "1.0.0.0", 30 | } -------------------------------------------------------------------------------- /ExampleProject/options/windows/options_windows.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMWindowsOptions", 3 | "resourceVersion": "1.1", 4 | "name": "Windows", 5 | "option_windows_allow_fullscreen_switching": false, 6 | "option_windows_borderless": false, 7 | "option_windows_company_info": "YoYo Games Ltd", 8 | "option_windows_copy_exe_to_dest": false, 9 | "option_windows_copyright_info": "", 10 | "option_windows_description_info": "A GameMaker Game", 11 | "option_windows_disable_sandbox": false, 12 | "option_windows_display_cursor": true, 13 | "option_windows_display_name": "Created with GameMaker", 14 | "option_windows_enable_steam": false, 15 | "option_windows_executable_name": "${project_name}.exe", 16 | "option_windows_icon": "${base_options_dir}/windows/icons/icon.ico", 17 | "option_windows_installer_finished": "${base_options_dir}/windows/installer/finished.bmp", 18 | "option_windows_installer_header": "${base_options_dir}/windows/installer/header.bmp", 19 | "option_windows_interpolate_pixels": false, 20 | "option_windows_license": "${base_options_dir}/windows/installer/license.txt", 21 | "option_windows_nsis_file": "${base_options_dir}/windows/installer/nsis_script.nsi", 22 | "option_windows_product_info": "Created with GameMaker", 23 | "option_windows_resize_window": false, 24 | "option_windows_save_location": 0, 25 | "option_windows_scale": 0, 26 | "option_windows_sleep_margin": 10, 27 | "option_windows_splash_screen": "${base_options_dir}/windows/splash/splash.png", 28 | "option_windows_start_fullscreen": false, 29 | "option_windows_steam_use_alternative_launcher": false, 30 | "option_windows_texture_page": "2048x2048", 31 | "option_windows_use_splash": false, 32 | "option_windows_version": "1.0.0.0", 33 | "option_windows_vsync": false, 34 | } -------------------------------------------------------------------------------- /ExampleProject/rooms/Room1/Room1.yy: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType": "GMRoom", 3 | "resourceVersion": "1.0", 4 | "name": "Room1", 5 | "creationCodeFile": "", 6 | "inheritCode": false, 7 | "inheritCreationOrder": false, 8 | "inheritLayers": false, 9 | "instanceCreationOrder": [ 10 | {"name":"inst_1DE71BBB","path":"rooms/Room1/Room1.yy",}, 11 | ], 12 | "isDnd": false, 13 | "layers": [ 14 | {"resourceType":"GMRInstanceLayer","resourceVersion":"1.0","name":"Instances","depth":0,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"instances":[ 15 | {"resourceType":"GMRInstance","resourceVersion":"1.0","name":"inst_1DE71BBB","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"objectId":{"name":"obj_test","path":"objects/obj_test/obj_test.yy",},"properties":[],"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"x":-32.0,"y":-32.0,}, 16 | ],"layers":[],"properties":[],"userdefinedDepth":false,"visible":true,}, 17 | {"resourceType":"GMRBackgroundLayer","resourceVersion":"1.0","name":"Background","animationFPS":15.0,"animationSpeedType":0,"colour":4281479730,"depth":100,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"properties":[],"spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,}, 18 | ], 19 | "parent": { 20 | "name": "Rooms", 21 | "path": "folders/Rooms.yy", 22 | }, 23 | "parentRoom": null, 24 | "physicsSettings": { 25 | "inheritPhysicsSettings": false, 26 | "PhysicsWorld": false, 27 | "PhysicsWorldGravityX": 0.0, 28 | "PhysicsWorldGravityY": 10.0, 29 | "PhysicsWorldPixToMetres": 0.1, 30 | }, 31 | "roomSettings": { 32 | "Height": 768, 33 | "inheritRoomSettings": false, 34 | "persistent": false, 35 | "Width": 1366, 36 | }, 37 | "sequenceId": null, 38 | "views": [ 39 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 40 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 41 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 42 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 43 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 44 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 45 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 46 | {"hborder":32,"hport":768,"hspeed":-1,"hview":768,"inherit":false,"objectId":null,"vborder":32,"visible":false,"vspeed":-1,"wport":1366,"wview":1366,"xport":0,"xview":0,"yport":0,"yview":0,}, 47 | ], 48 | "viewSettings": { 49 | "clearDisplayBuffer": true, 50 | "clearViewBackground": false, 51 | "enableViews": false, 52 | "inheritViewSettings": false, 53 | }, 54 | "volume": 1.0, 55 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GMDLL-ColorKeyMask 2 | 3 | ## Compiling 4 | Just use Visual Studio. 5 | 6 | ## Usage 7 | Check the ExampleProject located in the root folder. -------------------------------------------------------------------------------- /dllmain.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | BOOL SetTransparent(HWND hwnd, COLORREF colorKey) { 8 | LONG_PTR exStyle = GetWindowLongPtr(hwnd, GWL_EXSTYLE); 9 | SetWindowLongPtr(hwnd, GWL_EXSTYLE, exStyle | WS_EX_LAYERED); 10 | return SetLayeredWindowAttributes(hwnd, colorKey, 0, LWA_COLORKEY); 11 | } 12 | 13 | extern "C" __declspec(dllexport) double MakeColorTransparent(const char* hwndString, double r, double g, double b) { 14 | HWND hwnd = reinterpret_cast(std::stoull(hwndString, nullptr, 16)); 15 | if (!IsWindow(hwnd)) { 16 | MessageBoxA(NULL, "Invalid HWND", "Error", MB_ICONERROR); 17 | return 0.0; 18 | } 19 | COLORREF colorKey = RGB((int)r, (int)g, (int)b); 20 | return (double)SetTransparent(hwnd, colorKey); 21 | } 22 | 23 | //TODO: Fix these functions 24 | 25 | /*BOOL WRAPPER_RemoveTransparency(HWND hwnd) { 26 | LONG_PTR exStyle = GetWindowLongPtr(hwnd, GWL_EXSTYLE); 27 | SetWindowLongPtr(hwnd, GWL_EXSTYLE, exStyle & ~WS_EX_LAYERED); 28 | RedrawWindow(hwnd, NULL, NULL, RDW_ERASE | RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN); 29 | return FALSE; 30 | } 31 | 32 | extern "C" __declspec(dllexport) double RemoveTransparency(const char* hwndString) { 33 | HWND hwnd = reinterpret_cast(std::stoull(hwndString, nullptr, 16)); 34 | WRAPPER_RemoveTransparency(hwnd); 35 | return 0.0; 36 | }*/ -------------------------------------------------------------------------------- /framework.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 4 | // Windows Header Files 5 | #include 6 | -------------------------------------------------------------------------------- /pch.cpp: -------------------------------------------------------------------------------- 1 | // pch.cpp: source file corresponding to the pre-compiled header 2 | 3 | #include "pch.h" 4 | 5 | // When you are using pre-compiled headers, this source file is necessary for compilation to succeed. 6 | -------------------------------------------------------------------------------- /pch.h: -------------------------------------------------------------------------------- 1 | // pch.h: This is a precompiled header file. 2 | // Files listed below are compiled only once, improving build performance for future builds. 3 | // This also affects IntelliSense performance, including code completion and many code browsing features. 4 | // However, files listed here are ALL re-compiled if any one of them is updated between builds. 5 | // Do not add files here that you will be updating frequently as this negates the performance advantage. 6 | 7 | #ifndef PCH_H 8 | #define PCH_H 9 | 10 | // add headers that you want to pre-compile here 11 | #include "framework.h" 12 | 13 | #endif //PCH_H 14 | --------------------------------------------------------------------------------