Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Objective-C for MacOS builds C++ for Windows APIs

A topic by ArtificeQuill created Jan 03, 2022 Views: 247 Replies: 3
Viewing posts 1 to 3
(+2)

Hey there, just wanted to toss out there that for MacOS builds Objective-C is pretty much a requirement (even single header c libs like sokol use it). At the same time, I believe most Windows APIs to get a window and OpenGL/D3D context up use C++.

If anyone knows of a way to rely purely on C for those features, I’d love to hear about it :)

Anywhoozle, I figured if there’s a place to be pedantic it’s in the game jam about writing only in C. (Silly joke, love C).

Thanks! Love this jam idea!

Host (1 edit)

Hello, yes that's allowed, I'll clarify that, thanks!

You can create OpenGL contexts on Windows without C++. Not sure about DirectX, haven’t ever used it.

See this piece of code that I wrote: https://github.com/veridisquot/openmv/blob/master/core/src/platform_windows.c#L177.

Neat! Thank you for sharing this.