c++

  1. mbeytekin

    Screen flickering when using an OPENGL based DLL

    I have a DLL that I wrote in C ++ that processes an image and sends it back to Gamemaker. This DLL is OpenGL based.The image comes on, but it flickers constantly.I tried something like this; If I use display_reset at every step, it doesn't flicker, but of course it causes memory leak.Also, if I...
  2. mbeytekin

    GMS 2.3+ Vertex Buffer to ID3D11ShaderResourceView... is that possible?

    I want to send an image from Gamemaker for a DLL that I have prepared in c ++. The DLL image processing is running in the format ID3D11ShaderResourceView. So I need to somehow send a surface or sprite texture in Gamemaker to the DLL as a buffer address in ID3D11ShaderResourceView format. I...
  3. E

    [SOLVED] C++ pthread (an attempt to do a multithreading function)

    Hello, i don't know what is happening right now... because i'm doing a dll function that should be doing a task in another thread. My actual attempt is to make it work after compile, because yes, it compiles... but it throws me an error "LoadLibraryA failed with error code 126" and this only...
  4. Samuel Venable

    Asset - Extension Virtual Visit Maker (for Windows, macOS, and Ubuntu)

    Description Required Ubuntu Dependencies: sudo apt-get install libsdl2-dev libglu1-mesa-dev libgl1-mesa-glx freeglut3-dev mesa-common-dev libpthread-stubs0-dev libx11-dev libprocps-dev Optional Ubuntu Dependecies: sudo apt-get install zenity kdialog Add me on Discord to get faster support...
  5. EvanSki

    SOLVED Need help with Resizing Swap chain, V-sync error, maybe an issue with .DLL?

    Alright so This is what im doing, I have a .dll that allows me to access and call windows OS functions, displaying popups, opening and closing the cd tray, ect.. When I call the cd tray to open or close, Game maker hangs and pauses until the cd tray is ready for a command. notice how the...
  6. R

    GMS 2.3+ Extension function not properly reading string return value from .dll

    Hi all. I'm having some trouble with a pathfinding extension I'm trying to write. The first real function of the extension that I'm trying to test out is the function to make the grid object for pathfinding, and I figured that I could cast a pointer to the object into a string and pass that back...
  7. mbeytekin

    SOLVED Sending a surface or buffer to a C++ DLL and getting processed image from it to a surface or buffer back

    I'm trying to send a surface to dll and process it in DLL, and after this get this processed image back. I tried send surface as buffer (argument as double) but it's not working. My mean goal is using opencv library in C++. Anyone can help please ?
  8. Bawat

    Windows Asynchronous C++ DLL Extension creation in Eclipse

    GM Version: GameMaker Studio 2.2.5.481 Target Platform: Windows Only Download: https://www.bawat.net/downloads/GameMakerStudioResources/DLLExampleUsage.yyz Links: https://forum.yoyogames.com/index.php?threads/getting-started-with-c-dll-extension-creation-in-eclipse.73728/ Links...
  9. Bawat

    GMS 2 Getting started with C++ DLL Extension creation in Eclipse

    With the aim of getting improved performance, I set out on the odyssey to create a .DLL extension in C++. With no up to date resources on how to get this set up properly, and little memory of C++ it took me 2 days to get GMS2 and the DLL to communicate. The two goals of this guide and it's...
  10. Sammi3

    Should Dlls always return a value?

    I wasted perhaps almost half a day trying to debug my dll crashing (I even built a tool during that time that can compile GameMaker projects from the terminal so that I could run my game from vscode so that I could attach a debugger to see what was happening in the dll). The return value in...
  11. Sammi3

    Using a GameMaker Texture in a DirectX11 dll

    I have a dll that uses directx11 and I wanted to get a texture (sprite_get_texture, surface_get_texture, ...) as an ID3D11ShaderResourceView so that it can be manipulated on the dll side. Is this possible? I thought those functions gave us pointers to a directx resource or are they a local...
  12. Sammi3

    Casting D3DX11Device from os_get_info into valid data type

    I wanted to cast the D3DX11Device and D3DX11Context from the map provided by os_get_info into the correct type using the correct formating. On the C++ side, I currently have my dll setup as follows: fn_export double Init(void* dx11Device, void* dx11Context, void* windowHwnd) { //Cast void...
  13. Edwin

    GML How to add C++ functions into GameMaker using dll's?

    Hello, I want to use one of the functions from c++ that returns the string. Is this possible and how do I do that? Sadly but I couldn't find any good tutorials about making c++ dll extensions for GM:S.
  14. vdweller

    GMS 2 Putting a n-bytes C++ value in a buffer for GM to read

    Hi all! I am working on a C++ dll's ability to return a char array. My first question is: The template specifies a return type of char pointer . Is there a problem if the function returns an unsigned char pointer? I did some tests and it seems like it has no problem, but maybe it won't be OK...
  15. kraifpatrik

    GMS 2 Custom C++ in YYC without DLLs

    Hello everyone, recently I got into going through C++ source files generated by YYC, trying to get some understanding of how GameMaker works behind the hood. I'm putting this together and sharing with you in hopes to pontentially enable the community to make custom tools that could improve the...
  16. kraifpatrik

    GMS 2 Optimizing code for YYC

    Hey everyone, yesterday I started fiddling around with C++ files generated by YYC (the path to the files can be found in the console upon start of running the project with YYC, for me it was C:\Users\kraif\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE) and I found that there are situations...
  17. K

    Legacy GM Using Shader Scripts[SOLVED]

    i search internet for an appropriate shader tutorial begginer to advance, in game maker, almost nothing, people ruined internet, so i forced to get a 24 Hour Course in udemy about (How to programming Opengl with c++) can that tutorial help me write a shader in game maker ? or opengl is writting...
  18. L

    GML drawing live video to surface? ( need help from CS wizards )

    Hello everybody im currently working on a project and want to know if it is somehow possible to write some kind of dll that will allow gms2 to receive some kind of video input as a surface. perhaps im too ignorant about this subject and im asking something next to impossible. my current...
  19. Furkan Karabudak

    Linux [MAYBE SOLVED]• How can I use .SO files ?

    Actually there are a few questions that I want to ask. EDIT : I got the answer to the first two questions in another forum. I just need help with the third question. 1• I don't know much about Linux. .so files on Linux = .dll files on Windows, is it correct ? I mean, does both types of files...
  20. N

    Legacy GM [EDITED}

    I think i am going to see if there is some built - in alternatives that GM:S 1.4 has.
Top