@stungeye@mastodon.gamedev.place
@stungeye@mastodon.gamedev.place avatar

stungeye

@stungeye@mastodon.gamedev.place

Peg city coder. Red River College #GameDev educator. Open Democracy Manitoba co-founder. Born and raised on Treaty 1 land in #Winnipeg, #Manitoba, Canada.

Learn to Question. Question to Learn.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

stungeye, to gamedev
@stungeye@mastodon.gamedev.place avatar

Created an example C++ project using the Simple DirectMedia Layer library () with Visual Studio on Windows.

https://github.com/stungeye/VSVcpkgSDL2

Uses for dependency management. Build instructions are at the bottom of the readme.

Good starter project if you want to try some low-level coding.

stungeye,
@stungeye@mastodon.gamedev.place avatar

@raptor85 Oh, thanks! This is great info. I used WinMain as a way of getting rid of the extra console terminal that was opening up along with the SDL window.

Also, when I had my own main() I got a compiler error that I could only get rid of by adding a SDL_MAIN_HANDLED before the SDL.h include. Is using that okay, or is there a better way?

stungeye,
@stungeye@mastodon.gamedev.place avatar

@raptor85 Thanks again. I'll work on fixing the project tomorrow to revert back to the standard main. Do you know if this will rid me of the extra terminal console? I don't mind it for some println debugging, but it feels odd for a production build.

stungeye,
@stungeye@mastodon.gamedev.place avatar

@raptor85 That's super cool. I appreciate all the knowledge you just shared! A lovely example of Cunningham's Law in action. :)

stungeye,
@stungeye@mastodon.gamedev.place avatar

@raptor85 I've got things going now with the standard int main(...). The one extra thing I needed to do was to manually have visual studio's linker link to sdl2main.dll. I can now also toggle the linker subsystem between console and windows to show or hide the extra console window. Thanks again for all your help!

stungeye,
@stungeye@mastodon.gamedev.place avatar

@raptor85 I used vcpkg to import SDL2 so I was hoping it might auto-configure the linking, but then I saw that the vcpkg docs specifically mention SDL2 and the need to manually link: https://learn.microsoft.com/en-ca/vcpkg/users/buildsystems/msbuild-integration

stungeye, to random
@stungeye@mastodon.gamedev.place avatar

Google, OpenAI, et al. claim to have safeguards in place around what their models will generate.

Their AIs aren't actually intelligent. You just need to know how to ask. ๐Ÿ”ฅ๐Ÿฆ๐Ÿ”ฅ

Using language games to circumvent ai safeguards is called jailbreaking, and is widely known by ai creators and user.

Using a "jailbreak" to circumvent Google Gemini safeguard intended to prevent violent and/or destructive images.
Winnipeg on fire as generated by OpenAi's ChatGPT / DALLE using a "safeguards" jailbreaking technique.

stungeye, to ai
@stungeye@mastodon.gamedev.place avatar

Have you seen LLaVA?

The Large Language and Vision Assistant is a multimodal (image & text) model.

It's an open-source approach to visual & language prompting, combining a vision encoder & a large language model ( ).

It's surprisingly good!

๐Ÿงต1/n

stungeye,
@stungeye@mastodon.gamedev.place avatar

@AngryAnt Nice! What have you been using it for?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • provamag3
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • DreamBathrooms
  • megavids
  • ngwrru68w68
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • JUstTest
  • All magazines